
Discover the basics of tkinter for Python, learning to build desktop GUI apps with widgets like buttons, labels, and menus, and how to create executables to share your apps.
Check out my student Facebook Group...
It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...
Join Now!
https://www.facebook.com/groups/codemycom/
Download and install python from python.org, add python to path during install, choose 32-bit rather than 64-bit, and reinstall if you've installed it before.
Create a project directory, then set up and activate a python virtual environment to isolate dependencies for your tkinter gui course work.
Create your first Tkinter GUI in Python by saving a Hello World project, configuring a root window with a title and geometry, and running the app.
Create a label widget, set its text, and place it on the root window. Learn the two-step process—create the widget, then put it on screen—using pack and the grid system.
Learn to customize Tkinter labels in Python GUI apps by adjusting foreground and background colors, font, size, relief, height, width, state, and padding, with pack and grid layout considerations.
Discover Tkinter's grid system to place widgets in rows and columns starting at zero, as an alternative to pack for precise layouts, and note not to mix pack and grid.
Master Tkinter grid options, including sticky positioning to place widgets on west or east sides and use column span and row span to stretch across multiple columns or rows.
Learn to create a Tkinter button, pack it into the root window, and assign a command that updates a label when clicked, with optional lambda usage.
Explore how to create and customize input entry widgets in Tkinter, including sizing, padding, font, and retrieving user input with e.get for interactive apps.
Learn how to add an icon to a Python GUI app using a .ico file, placing it in your directory, and calling the icon bitmap function with the file path.
Learn to use pillow as the image library for tkinter, install it with pip, import ImageTk and PhotoImage, open an image, and display it in a label in your GUI.
Discover how to hide and show a label in a Tkinter app using pack forget and grid forget, and understand when to destroy or recreate widgets.
Grab the Course Sourcecode at:
https://github.com/flatplanet/Intro-To-Tkinter
Learn to build Tkinter menus by attaching a main menu to the root window and adding a file submenu with items like new, open, exit, plus a separator and commands.
Add a second menu in a Tkinter app by creating an edit menu with commands like cut, copy, and paste, and wiring actions to update a label on click.
Learn how frames group widgets in Tkinter, set size, color, borders, and resize to contents, using grid or pack to place content, with show and hide controls.
Explore adding frames to Tkinter menus by creating file frame and edit frame, wiring a new command and a cut command to show and switch frames.
Learn to hide and switch between frames in a Tkinter GUI by using a hide_menu_frames function and grid forget, enabling seamless transitions between edit, cut, and file frames.
Build a practical status bar in tkinter using a label that spans the window and appears sunken. Update it with a string variable to show waiting or file status.
Explore how to create radio buttons in Tkinter, link them to a shared variable (int var or string var), and display the selected value with a label as users click.
Illustrate how to use checkboxes in tkinter by configuring a check button with on and off values, default unchecked, and updating a label to show selected toppings, such as pepperoni.
Explore Tkinter pop up message boxes in Python by pressing a button to display info, warning, error, and question dialogs, including title and message, with import and usage notes.
Learn how to use tkinter pop up boxes to capture user responses and drive actions with a response variable. Map yes, no, okay, and cancel to conditional updates and labels.
Create multiple windows in Tkinter by using a top level window opened from a button, set the second window’s title and size, and display a label with a main loop.
Learn to display an image in a tkinter window by loading Aspen.png with PhotoImage, placing it in a label, and managing the main loop and references to prevent garbage collection.
Learn to create an open file dialog in Tkinter for Python gui apps, configure the initial directory, set the dialog title, and filter by png, jpeg, and all files.
Trigger an open file dialog with a button, capture the selected image path, and display the image in a Tkinter GUI using a label.
Learn how to overwrite, clear, and manage labels in a Tkinter Python GUI using grid forget and destroy, with entry, submit, and a clear button.
Explore how grid forget and destroy manage labels and other widgets in tkinter, preventing overwritten input, and learn when to use clear, grid forget, or destroy.
Learn to import tkinter color chooser, open a color picker, and use the red, green, blue values or hex code returned to update colors in a Python GUI.
Explore a Tkinter color picker to obtain a hex color code and apply it to a label’s text and background using a Helvetica 32 font.
Create a standalone exe file from a python program using pi installer, set a custom icon and windowed mode, and locate the executable in the build folder.
Create add, subtract, multiply, and divide functions and dedicated frames in a tkinter app, using pack to display each frame and a hiding mechanism to switch between them.
Implement the correct-answer function triggered by the button to compute num1 plus num2, convert the input to int, compare with the sum, and update the result label.
Improve the flashcard app feedback by concatenating a descriptive message with dynamic numbers, converting integers to strings, and updating the correct or incorrect output in the Tkinter interface.
clear the answer box, generate new random numbers, and update the flashcard labels in a tkinter app.
Tailor the flashcard app from addition to multiplication in Tkinter for Python apps, updating functions and frames, then test and debug to ensure correct multiplication answers.
Extend the flashcard app division by duplicating the add function pattern, renaming to divide, updating labels, and handling floats and division by zero for valid results.
Learn how to destroy all widgets in a Tkinter frame using winfo_children to reset a flashcard app's frames (add, subtract, multiply, divide) when switching views.
Create a start frame in tkinter, set a 400 by 400 root, add a welcome label and four operation buttons wired to add, subtract, multiply, and divide.
Toggle between the menu and the start screen in a Tkinter flashcard app by creating a home function, managing frames, and hiding/showing content.
Explore Tkinter for Python GUI apps with hands-on projects like a paint app and a Tkinter mp3 player. Access a library of Python and other programming courses with lifetime membership.
In this course I'll teach you how to make graphical user interfaces for Python using TKinter. You'll be surprised just how quickly you can create some pretty cool looking apps!
I'll show you the ins and outs of tKinter, and then I'll show you how to package your app as an .exe file that you can share with others!
We'll start out by learning all about the main TKinter widgets. Everything in tKinter is a widget...from labels, to buttons, input boxes, and more.
After we've learned all the major Widgets, we'll build a fun Math Flashcard app. Our app will have addition, subtraction, multiplication, and division flashcards.
If you've ever wanted to create GUI apps with Python, this is the course for you!