Option Menu - Tkinter CustomTkinter 18

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

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

  • @TkinterPython
    @TkinterPython  10 месяцев назад +3

    ▶ Watch CustomTkinter Playlist ✅ FREE Tkinter Widget Book
    bit.ly/45iO4OP bit.ly/3K4qlZC
    ▶ See More At: ✅ Subscribe To My RUclips Channel:
    Tkinter.com bit.ly/3Pk1By4
    ▶ MASSIVE TKINTER.COM DISCOUNT ✅ Join My Facebook Group:
    30% off with coupon code: youtube bit.ly/2GFmOBz
    ▶ Get The Code For This Video
    bit.ly/3dCzz2K

  • @skyagnitti
    @skyagnitti 2 месяца назад

    Awesome video as always!
    Wondering if its possible to do a .get() on the menu option being hovered over so I can pull that into a variable. As of now, I have to click a menu option to get my function to run but I'd like to just be able to use the arrow up and down keys to scroll through the list and have the function run each time.
    I have bound hover to enter and leave like this:
    # using '+' to avoid overwriting the existing binding
    optionmenu.bind('', on_enter_monster, add='+')
    optionmenu.bind("", on_leave_monster, add='+')

  • @smosavalery3056
    @smosavalery3056 10 месяцев назад +1

    is that possible to create a nested sub-menu in customtkinter?

  • @Bars-if6bl
    @Bars-if6bl 10 месяцев назад

    hello, can u make a vidio how to make button in scrolable frame with image? i dont know how to do it

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

    Hello! I am trying to get a user to select an option and for that option selected to be used throughout the entire script. However, I cant seem to get that information out from the Tk.Combobox command function! eg. I can return the variable selected to be used for further analysis in the code. Is there a way to do this?

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

      Assign it to a variable and make the variable global in the normal way

  • @ros0l603
    @ros0l603 5 месяцев назад

    Hi, how to make scrollbar in option menu?

  • @MSTSLive
    @MSTSLive 6 месяцев назад

    Sir how can I add the Menubar on the top like most other apps. I have tried to put the menubar of the normal tkinter but in dark mode it is showing in white. Is there any way to fix this?

    • @skyagnitti
      @skyagnitti 2 месяца назад

      try looking into this: CTkMenuBar

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

    I have 2 problem.
    1: There is no way i can change the list options of CTkOptionMenu and CTkComboBox. My program requires update the list option while running to show and let user choose new options.
    2: When i change the width of CTkOptionMenu or CTkComboBox, the dropdown menu wont change width size. This is a strategy of designing.
    Pls help!
    I commented before whatching the video, sorry if the answer is inside the video already

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

      Ok problem 2 solved althought I have to accept the scale of dropdown_with and dropdown_font_size is unchangeable

    • @trandinhnamz
      @trandinhnamz 10 месяцев назад +1

      Ok problem 1 solved by // option.configure(values=('Tùy chọn 3', 'Tùy chọn 4', 'Tùy chọn 5')) //. Guess someone with need this since it didnt appear in the video maybe.

    • @luked9362
      @luked9362 7 месяцев назад

      @@trandinhnamzreally handy, thankyou!

  • @LordMegabite
    @LordMegabite 8 месяцев назад

    Is there anyway to remove the menu border?

  • @this_is_mike1991
    @this_is_mike1991 4 месяца назад

    00:01 Tutorial on Option Menu in Tkinter CustomTkinter
    01:30 Setting up custom OptionMenu in Tkinter
    03:16 Implementing command function for custom Tkinter option menu.
    05:20 Creating a color picker function for an Option Menu in Tkinter.
    07:19 Creating and customizing a yellow button using Tkinter
    09:24 Customizing appearance options in Tkinter Option Menu
    11:13 Customize appearance and behavior of the combo box.
    13:27 Option menu vs combo box: Use option menu if you don't want user input, use combo box if you want user input.

  • @netistul
    @netistul 7 месяцев назад

    dropdowns items should be more customizable. on macos, they look great, but on windows, not so much.

    • @TkinterPython
      @TkinterPython  7 месяцев назад

      you can make them look however you want

    • @NICHTMALBRONZE
      @NICHTMALBRONZE 3 месяца назад +1

      @@TkinterPython How can I change the border of the OptionMenu[Menu] to 0 (the white rectangle around the options), on Mac you can just do border=0 but on windows that doesn't work.