Python PySimpleGUI - popups Tutorial #01

Поделиться
HTML-код
  • Опубликовано: 5 ноя 2024

Комментарии • 17

  • @cabaoofc
    @cabaoofc 4 месяца назад +1

    how to make the window bigger?

    • @codingisamazing
      @codingisamazing  4 месяца назад +2

      Unfortunately popup function does not directly support specifying the window size but you can create a custom popup with the desired size by defining your own window.
      I created an example for you here is how:
      github.com/amuza2/100DaysOfCode/blob/main/Day87/testing2.py

    • @cabaoofc
      @cabaoofc 4 месяца назад +1

      @@codingisamazing thks

  • @juliocesar-sq3fy
    @juliocesar-sq3fy 11 месяцев назад

    thanks for the lesson.

  • @TokaGado
    @TokaGado 2 года назад +2

    I would like to do something like:
    if popup == cancel:
    (back last page)
    elif popup == ok:
    close window

    • @codingisamazing
      @codingisamazing  2 года назад

      I explained that in the next vids
      you use keys to access any element you want
      you can go straight to video number 8 which is the first project building a calculator.

  • @havenia
    @havenia Год назад

    what is application you use?vscode, isn't right?

    • @codingisamazing
      @codingisamazing  Год назад

      it's Sublime text

    • @ikarus2508
      @ikarus2508 Год назад

      @@codingisamazing
      OK, but how you set the support of PySimpleGUI at SimpleGUI to show autocompletes after import the sg library

    • @BestMomentsPro
      @BestMomentsPro 10 месяцев назад

      @@ikarus2508 +

    • @BestMomentsPro
      @BestMomentsPro 10 месяцев назад

      @@codingisamazing ?

  • @aamb_c133
    @aamb_c133 2 года назад

    how to add functions to popup yes no?

    • @codingisamazing
      @codingisamazing  2 года назад

      I think you mean arguments
      popup_yes_no(args=*,
      title = None,
      button_color = None,
      background_color = None,
      text_color = None,
      button_type = 0,
      auto_close = False,
      auto_close_duration = None,
      custom_text = (None, None),
      non_blocking = False,
      icon = None,
      line_width = None,
      font = None,
      no_titlebar = False,
      grab_anywhere = False,
      keep_on_top = None,
      location = (None, None),
      relative_location = (None, None),
      any_key_closes = False,
      image = None,
      modal = True)

  • @tancheeken
    @tancheeken Год назад

    The audio is too soft. I turn up full volume and still struggle to hear you.