Tkinter․com
Tkinter․com
  • Видео 94
  • Просмотров 1 018 416
Free Tkinter Widget Quick Reference Guide Book
Download Free: Tkinter.com/widget-book
📘 Get your totally free PDF copy of my Tkinter Widget Quick Reference Guide book right now! 📘
👋 My name is John Elder, and I'm the founder of Tkinter.com where I've been teaching people to build awesome GUI apps for years. 🚀
📖 This book might just be the most useful tool for building out Tkinter apps because it lists every single regular and TTK widget and their attributes.
🔧 Anytime you want to change the look or feel of a widget, you need to modify their attributes... and there are hundreds to choose from - no one memorizes them all! 🤯
✅ Sure, all the widgets have things like height, width, background and foreground color, borders... and basic things li...
Просмотров: 437

Видео

Menu Buttons - Intro To Tkinter 11
Просмотров 9603 месяца назад
In this video we'll learn how to use Menu Button popups for Tkinter. Menu buttons are similar to the regular Menu bars we looked at several videos ago... Except they aren't bars, they're buttons located anywhere you want! Click them and a menu pops up! #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:03 - Create Menu Button 1:46 - Add Button Relief 2:45 - Define Menu 4:09 - Add Men...
Status Bars - Intro To Tkinter 10
Просмотров 8634 месяца назад
In this video we'll learn how to create Status Bars for Tkinter and Python. Tkinter doesn't have a status bar widget, so we have to hack together our own. We can modify a regular label widget and position it in the bottom right corner and change it's look with a different relief to do this... #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:00 - Create a Button 1:37 - Create Next F...
Menus - Intro To Tkinter 9
Просмотров 9754 месяца назад
In this video we'll look at the Menu Widget for Tkinter and Python. Menus are super important for any app. They go at the top of your app. If you want a professional looking app, you'll almost certainly want a menu. #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:02 - Create Label 1:33 - Create Main Menu 2:19 - Config The Root App 2:47 - Create Menu Category Item 4:10 - File Menu ...
Combo Boxes - Intro To Tkinter 8
Просмотров 6894 месяца назад
In this video we'll learn about ComboBoxes in Tkinter and Python. A Combo Box is a drop down menu for TKinter. It's actually a TTK Widget, and I'll show you how to create them and manipulate them programatically in this video. #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:03 - Create Label 1:23 - Create Button 1:48 - Define Submit Function 2:08 - Import TTK 2:37 - Create ComboBo...
Checkboxes - Intro To Tkinter 7
Просмотров 5344 месяца назад
In this video we'll look at Checkboxes in Tkinter and Python. Check boxes are great because they allow you to make a choice from a list of items. Unlike Radio Buttons, with checkboxes you can select more than one item at any given time. #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:00 - Create Three IntVars 1:48 - Create Three Checkbuttons 4:25 - Command When Checked 4:57 - Crea...
Radio Buttons - Intro To Tkinter 6
Просмотров 6885 месяцев назад
In this video we'll learn all about Radio Buttons in Tkinter with Python. Radio buttons allow you to make selections from a list of items. Only one radio button can be selected at any time. #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:06 - StringVar() 2:04 - Create Radio Buttons 4:40 - Create Clicked Function 5:02 - Create Label 5:22 - Get Radio Button Selection 6:05 - Set Defa...
Adding Images To Your Apps - Intro To Tkinter 5
Просмотров 1,2 тыс.5 месяцев назад
In this video we'll learn how to add Images to our apps with Tkinter and Python. Generally, to add an image to your TKinter app you'll create a label, and then add the image to the label. We'll use the PIL (Python Imaging Library) to add the image to our app and I'll also show you how to resize the image. I'll also show you how to add images to buttons. #tkinter #codemy #JohnElder Timecodes 0:0...
This is Huge! Please Help! - Tkinter.com
Просмотров 3,9 тыс.5 месяцев назад
Guys the Tkinter.com RUclips channel is at around 97,000 subscribers! Please help push us over the line to 100,000 and I've got a special bonus for everyone who helps! ....what bonus you say? Well you'll have to watch the video to see!
Create Custom Widgets and Components! - Object Oriented Tkinter 6
Просмотров 3,4 тыс.5 месяцев назад
In this video we'll learn how to use Classes and Object Oriented Python to build our own widgets and components. Tkinter is great, but it becomes super powerful when you can create your own components. And it's actually pretty easy! Customize your own widgets and components and then call them any time you want! #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:35 - Create My_Widget ...
Pack/Grid Forget and Destroy! - Intro To Tkinter 4
Просмотров 1,5 тыс.5 месяцев назад
In this video we'll learn about Pack/Grid Forget and Destroy. With Pack or Grid Forget, you can hide any widget at any time, and bring them back whenever you want. With Pack or Grid Destroy, you can delete any widget but cannot bring them back without recreating them completely. We'll look at both in this video.. #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:12 - Create Some Lab...
Pack Vs Grid For Placement - Intro To Tkinter 3
Просмотров 2,5 тыс.5 месяцев назад
In this video we'll learn about Pack and Grid for placement with Tkinter and Python. Pack and Grid are two very different ways to place widgets in Tkinter.. In this video we'll learn how to use each, and also when to use each! We'll also look at a hack that allows you to use both pack and grid at the same time! #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 1:10 - Pack Some Buttons...
Entry Boxes for Text - Intro To Tkinter 2
Просмотров 1,3 тыс.6 месяцев назад
In this video we'll learn about the Entry Widget for Tkinter and Python. The Entry Widget is a text box that allows users to type text into your GUI app. We'll learn how to create an entry widget, and how to retrieve the text from it and do things with it! We'll also learn how to delete text from the entry box, and add text programatically. #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introdu...
Build GUI Apps With Python! - Intro To Tkinter 1
Просмотров 19 тыс.6 месяцев назад
In this video I'll start to teach you how to build Graphical User Interface Apps (GUI Apps) with Python and Tkinter! Tkinter is a GUI framework that comes with Python and let's you easily create apps with ease! In Tkinter, everything is a widget...a button widget, a label widget, etc. In this playlist I'll teach you all the widgets and how to use them to build your own app with Python! #tkinter...
OOP Calculator Part 2 - Object Oriented Tkinter 5
Просмотров 15 тыс.6 месяцев назад
In this video we'll finish building our Calculator app with Object Oriented Tkinter and Python. In the last video we built out the GUI for our app. In this video we'll create the functionality for the calculator...we'll make it calculate! #tkinter #codemy #JohnElder Timecodes 0:00​​ - Introduction 0:49 - Button Clicks Lambda 2:23 - Num_Press Function 3:45 - Math Sign Buttons 5:15 - Signage Func...
It's My Birthday! - Tkinter.com
Просмотров 4986 месяцев назад
It's My Birthday! - Tkinter.com
Let's Build A Calculator - Object Oriented Tkinter 4
Просмотров 15 тыс.6 месяцев назад
Let's Build A Calculator - Object Oriented Tkinter 4
File Dialog Boxes - Object Oriented Tkinter 3
Просмотров 2,3 тыс.7 месяцев назад
File Dialog Boxes - Object Oriented Tkinter 3
Popup Boxes - Object Oriented Tkinter 2
Просмотров 2,1 тыс.7 месяцев назад
Popup Boxes - Object Oriented Tkinter 2
Intro To Object Oriented Tkinter - Object Oriented Tkinter 1
Просмотров 18 тыс.7 месяцев назад
Intro To Object Oriented Tkinter - Object Oriented Tkinter 1
Widget Animation - Tkinter CustomTkinter 23
Просмотров 10 тыс.7 месяцев назад
Widget Animation - Tkinter CustomTkinter 23
Object Oriented CustomTkinter - Tkinter CustomTkinter 22
Просмотров 18 тыс.7 месяцев назад
Object Oriented CustomTkinter - Tkinter CustomTkinter 22
High Definition App Scaling - Tkinter CustomTkinter 21
Просмотров 4,6 тыс.8 месяцев назад
High Definition App Scaling - Tkinter CustomTkinter 21
Custom Color Themes - Tkinter CustomTkinter 20
Просмотров 5 тыс.8 месяцев назад
Custom Color Themes - Tkinter CustomTkinter 20
Switching Between Light and Dark Mode - Tkinter CustomTkinter 19
Просмотров 4,6 тыс.8 месяцев назад
Switching Between Light and Dark Mode - Tkinter CustomTkinter 19
Option Menu - Tkinter CustomTkinter 18
Просмотров 10 тыс.8 месяцев назад
Option Menu - Tkinter CustomTkinter 18
Images in CustomTkinter - Tkinter CustomTkinter 17
Просмотров 11 тыс.9 месяцев назад
Images in CustomTkinter - Tkinter CustomTkinter 17
Custom Fonts Widget - Tkinter CustomTkinter 16
Просмотров 6 тыс.9 месяцев назад
Custom Fonts Widget - Tkinter CustomTkinter 16
MASSIVE Tkinter.com Black Friday Sale | $120 Off Membership!!
Просмотров 2869 месяцев назад
MASSIVE Tkinter.com Black Friday Sale | $120 Off Membership!!
New Top Level Windows - Tkinter CustomTkinter 15
Просмотров 11 тыс.9 месяцев назад
New Top Level Windows - Tkinter CustomTkinter 15

Комментарии

  • @2dapoint424
    @2dapoint424 День назад

    The themes button dont seem to have any effect? How are you _set_default_color_theme_ dynamically?

  • @Pad6
    @Pad6 6 дней назад

    Also, I'd recommend using a text to voice like pyttsx3 for all the promotional content, I'm surprised you still have a voice from all the videos you've done over the years.

  • @Pad6
    @Pad6 6 дней назад

    but what if you want the contents to be center, and say tab 2 is a treeview table which is much wider, so my question is can we change the size of the individual tabs? Or maybe put a form on them and then size it accordingly?

  • @Pad6
    @Pad6 8 дней назад

    would love to see how to add a tkinter treeview widget to tab 2, it gets a bit odd

    • @Pad6
      @Pad6 6 дней назад

      Nevermind my _init_ was out of order, class MacroApp(ctk.CTk): def __init__(GDN): # On Initialization run the following code first super().__init__() GDN.title("Guardian") GDN.iconbitmap(r'D:\Python\Guardian\BF.ico') # File Path & in the same folder as program file GDN.geometry("560x740") GDN.eval('tk::PlaceWindow . center') GDN.attributes('-topmost', True) # Create tabview and tabs GDN.tabview = ctk.CTkTabview(GDN, width=510) GDN.tabview.grid(row=0, column=0, padx=10, pady=0, sticky="ew") GDN.tab1 = GDN.tabview.add("Main") GDN.tab2 = GDN.tabview.add("Database") GDN.tab3 = GDN.tabview.add("Xpath Practice") #then build the treeview # Create a style for the Treeview style = ttk.Style() style.theme_use("default") style.configure("Custom.Treeview", background="#0d131c", foreground="white", fieldbackground="#141d29", borderwidth=0, relief="flat") style.configure("Custom.Treeview.Heading", background="#0d131c", foreground="#8ca0ae", borderwidth=0, relief="flat") GDN.tree = ttk.Treeview(GDN.frame6, columns=("Date", "Time", "Strategy", "Balance", "Stoploss", "Base Bet", "Max Bet"), show='headings', style="Custom.Treeview", height=30) # Define headings GDN.tree.heading("Date", text="Date") GDN.tree.heading("Time", text="Time") GDN.tree.heading("Strategy", text="Strategy") GDN.tree.heading("Balance", text="Balance") GDN.tree.heading("Stoploss", text="Stoploss") GDN.tree.heading("Base Bet", text="Base Bet") GDN.tree.heading("Max Bet", text="Max Bet") # Set column widths GDN.tree.column("Date", width=60, anchor="center") GDN.tree.column("Time", width=50, anchor="center") GDN.tree.column("Strategy", width=50, anchor="center") GDN.tree.column("Balance", width=80, anchor="center") GDN.tree.column("Stoploss", width=80, anchor="center") GDN.tree.column("Base Bet", width=80, anchor="center") GDN.tree.column("Max Bet", width=80, anchor="center") # Pack the Treeview GDN.tree.pack(side="top", fill="both", expand=True, padx=5, pady=5) and at 2:04 when you said this outline looking box thing, it's not very big and..... That's what she said..........

  • @studies547
    @studies547 8 дней назад

    Do you have custom tkinter PDF please send me❤❤❤❤

  • @skyagnitti
    @skyagnitti 10 дней назад

    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('<Enter>', on_enter_monster, add='+') optionmenu.bind("<Leave>", on_leave_monster, add='+')

  • @krishnamurari88
    @krishnamurari88 11 дней назад

    Sir please make videos on python library U2Net, U2net-fast, dis-bg-remove, backgroundremover and etc please

  • @avibank
    @avibank 17 дней назад

    On Mac OS, it seems the auto function does not work as shown in the video - nothing happens to the bar while the value increments (I printed the x iterator) until *after* the last increment, then the bar goes to 100%... Tkinter on Mac in general has given me quite a few headaches.

  • @maximekghz8536
    @maximekghz8536 23 дня назад

    Heeyn im looking for load différent theme. soo hard.

  • @krishnamurari88
    @krishnamurari88 24 дня назад

    "dis-bg-remover" how to use in in our program for background removing please sir 🙏

  • @gustavoalejandromorletavil426
    @gustavoalejandromorletavil426 25 дней назад

    If you see a problem with the END keyword, just use "end" instead.

  • @sudipsarkar1400
    @sudipsarkar1400 29 дней назад

    Thanks that really helpful

  • @gustavoalejandromorletavil426
    @gustavoalejandromorletavil426 Месяц назад

    You can use: def adv(): meter.amountusedvar.set(meter.amountusedvar.get()+5) def dec(): meter.amountusedvar.set(meter.amountusedvar.get()-5) in order to avoid using global variables.

  • @MohamedMarzouk-tl6bj
    @MohamedMarzouk-tl6bj Месяц назад

    is there a way to change the iconbitmap for the dialog box as well ?

    • @MohamedMarzouk-tl6bj
      @MohamedMarzouk-tl6bj Месяц назад

      self.after(200, lambda: dialogbox.iconbitmap(self.icon_path))

  • @yarbio
    @yarbio Месяц назад

    i really love your videos, some can be hard to understand but your presentation and the way you show it all is very simple and i am LOVING it. thank you.

  • @ggamerplayzz1905
    @ggamerplayzz1905 Месяц назад

    Is there a way to change height of the button

  • @RoshiAILol
    @RoshiAILol Месяц назад

    So ummm there is no attribute called .open in Image

  • @RoshiAILol
    @RoshiAILol Месяц назад

    For some reason the program thinks that my new_window.destroy() is a subprogram and asks me to add an indentation

  • @rachelpiteck
    @rachelpiteck Месяц назад

    I just want to say that I love your videos! It got me back into coding for fun. I have really enjoyed using Tkinter for some dnd programs I am doing. I usually use python for physics but it has been way fun getting into tkinter. Thank you for the great tuturials!!!

  • @bluewhale656
    @bluewhale656 Месяц назад

    I have a quick question about tkinter buttons: If I use a png image for the button, will the button only activate if I click on the opaque pixels or will it also activate if I click on transparent pixels?

  • @SimTekGameDevelopment
    @SimTekGameDevelopment Месяц назад

    This playlist is great, I like the short videos too.

  • @sulaimonmueezoluwaseun4145
    @sulaimonmueezoluwaseun4145 Месяц назад

    I am doing self-learning, and I have completed many tasks using your channel. i am looking out for projects and wish to work with experts

  • @thefambam9305
    @thefambam9305 Месяц назад

    I installed it exactly how you said but I got an error (import "PIL" could not be resolved from sourcePylancereportMissingModuleSource). It said pillow was successfully installed but when I put from PIL import ImagesTk please help

  • @Arkaitz.M.A
    @Arkaitz.M.A Месяц назад

    Is there any possibility to play a video in the customTkinter label, just as it is done in tkinter. The images would come from the acquisition of frames in opencv. cap=cv2.VideoCapture(0,cv2.CAP_DSHOW) def visualize(): global cap ret, frame = cap.read() if ret: frame=imutils.resize(frame,width=350) frame=cv2.flip(frame,1) frame = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) im = Image.fromarray(frame) img = ImageTk.PhotoImage(image=im) lblVideo.configure(image=img) lblVideo.image = img lblVideo.after(10, visualize)

  • @WFPB.Artist
    @WFPB.Artist Месяц назад

    Thanks for your tutorials. They have been very helpful. I decided to see if I could simplify the pos_neg so I removed all of the if checking and put the three lines of code in a try ... except block with pass in the except. Worked like a charm and was much cleaner.

  • @SPTutor-l6n
    @SPTutor-l6n Месяц назад

    Hi, thanks for the video! After assigning different text to each button, I'm having trouble using .get or .cget to retrieve the text from the clicked button in the scrollable frame(so the text can be either printed or used in a function) I have OOP code that can do it but I can't reproduce it with functional programming which is the format I need it in. Any help would be greatly appreciated.

  • @shaunwhite8204
    @shaunwhite8204 Месяц назад

    How do i get data from an entry widget on the top level window back to the main window? Say i enter a name in the second/child window and i want to "get" that entry box variable and use it on the main window?

    • @TkinterPython
      @TkinterPython Месяц назад

      Turn it into a global variable

    • @perelmanych
      @perelmanych 16 дней назад

      Pass a dictionary to your new window function. Modify it inside and then you can use it in your main program.

  • @Tyrone-Ward
    @Tyrone-Ward Месяц назад

    Is this code hosted anywhere? GitHub perhaps.

    • @TkinterPython
      @TkinterPython Месяц назад

      yeah code always in the pinned comment

  • @antonindounat5498
    @antonindounat5498 Месяц назад

    What is the difference between get_input() function and get() ?

    • @TkinterPython
      @TkinterPython Месяц назад

      get_input() is just for dialog boxes

  • @sharkonet3636
    @sharkonet3636 Месяц назад

    Should probably have used a loop for the digit buttons, quite some repetivite code there :) But I guess for a demo this is fine and less confusing for beginners :p

    • @TkinterPython
      @TkinterPython Месяц назад

      yup

    • @sharkonet3636
      @sharkonet3636 Месяц назад

      @@TkinterPython Btw tkinter is a very cool lib. Currently using it to build an AI playground for images manipulation 😉

  • @Test-xn9jq
    @Test-xn9jq Месяц назад

    Your real name is John Eldor?

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

    One super annoying thing about the CTkComboBox widget is that if the list of values is pretty big, instead of popping open a small dropdown with a scroll bar it just fills the entire height of your screen and puts arrow buttons at the top and bottom. Extremely inconvenient for what I need it for, and I'm not sure if there's a way to change it to being able to use the scroll wheel. That's why I came here, to see if that was an option. Also, I'm not sure what I'm doing wrong but I can't programmatically change what the combo box is set to the same way shown because using the set method raises an AttributeError.

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

    Always learned new stuff w this man. Thank you. Is codemy still running tho

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

    is it tkinter??

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

    Hi, good job. Is there a way to get the files used in the live?

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

    Your code line root.iconbitmap('tkinter.ico') not working in windows 11 visual studio code. Request can you include code for removing tkinter system icon feather and including own icon

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

    thank for the tutorial, i wan to remove the focus Cursor from the entry box, got any code that can do that?

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

    "Insert John" 😂

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

    John, you're simply the best

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

    I was trying to save the date into the Table in sqlite3 but faced a challenge. Kindly make a video on how to save the date into the table

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

    Does anyone know why on my Linux Mint system, the lettering for 'Hello World!' appears jagged, while on the video it look more like vector graphics? Great video by the way.

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

    Hello. Is it possible to set custom default font for the whole App in cutomtkinter ?? I already tried different approaches from Stack Overflow but nothing works.

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

    Can you possibly show us the side by side comparison of bootstrap and customtkinter?

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

      No sorry, they are too different. I have entire playlists for both...

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

      I understand, and thanks for all your hard work!

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

    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.

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

    Hi, nice content. Note that the anchor works inside the pack function. You were trying it inside the CTkTabview object.

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

      the anchor works for me on linux in the tabview object, but has to be capital letters.

    • @pixel-ez1qo
      @pixel-ez1qo 2 месяца назад

      @@Terrasqule its work with a uppercase W

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

    What if i don't want any text and the space doesn't get filled with the width of the previous part of the code?

  • @user-pd9il8dn9u
    @user-pd9il8dn9u 2 месяца назад

    nice thank you

  • @akshatyadav9893
    @akshatyadav9893 3 месяца назад

    I have created a voice operated game , i have used Floodgauge to create a timer but the voice module is blocking the main thread which stops the timer untill the voice function stops i have tried puting the voice function in thread but it is not working i have also tried to put the updatetimer function in a thread but you can not update widgets from another thread in tkinter

  • @danroyo2427
    @danroyo2427 3 месяца назад

    It was great, hope there are more about layouts

  • @joaocamilo2521
    @joaocamilo2521 3 месяца назад

    How to display a Base64 encoded image?