From the course: Python GUI Development with Tkinter
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Building cascading menus
From the course: Python GUI Development with Tkinter
Building cascading menus
- [Instructor] Drop-down menus are a ubiquitous element of windowed user interfaces, and an area that you'll want to put extra care into when planning your application. They provide a means for organizing and presenting a multitude of actions to the user. In this video I'll go through the process of creating and populating a standard menu bar and the ways for organizing the menu options, such as separators and sub-menus. This video won't go into detail on human computer interface design or recommended ways to organize and layout your menus. That's a philosophical discussion beyond the scope of this course. In general, though, it's good to avoid letting menus grow too long or become too deeply nested, and always let other users test drive your GUI before releasing it to the wild. Menus are not part of the theme Tk GUI set, so I only need to import the tkinter package. Next I'm going to create my top level root window, with the Tk constructor. And when using menus, you also want to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Entering and displaying multiple lines with the Text widget11m 31s
-
(Locked)
Adding tags, marks, images, and widgets to the Text widget9m 57s
-
(Locked)
Building a hierarchical treeview7m 19s
-
(Locked)
Adding columns and selecting items in the Treeview7m 12s
-
(Locked)
Building cascading menus11m 5s
-
(Locked)
Drawing a basic line on the Canvas5m 21s
-
(Locked)
Drawing complex shapes on the Canvas9m 58s
-
(Locked)
Attaching a scroll bar to widgets6m 21s
-
(Locked)
Configuring widget styles9m 49s
-
(Locked)
Prompting users with the Messagebox and dialogs6m 11s
-
(Locked)
-
-
-
-