Learning Python- Intermediate course: Day 20, Tkinter — Types of Widgets part 3

Aatmaj - Sep 3 '21 - - Dev Community

Today let us finish off with the remaining Tkinter widgets


Summary of the week

This week we learnt about Tkinter. We also checked out the various widgets supported by Tkinter. Today let us finish of the remaining widgets.

Types of widgets in Tkinter continued..........

  • menu
    The Menu widget is used to create various types of menus in the python application. The types of menus include top level, pull down, and pop up
    image

  • message
    The message widget is used to display a message in the application. It looks similar to the label widget.
    image

  • Toplevel
    This widget is used to make a pop-up like effect. It creates another window. It can be used to represent some extra info. This window is managed internally by the system. (Window manager in Windows)
    image
    In this program, clicking on the open buttons activates the Toplevel widgets and creates another blank window.
    image

image

Closing the main application window closes all windows.

  • spinbox
    Spinbox is a less attractive version of the slider widget. Again, It is useful over the Entry widget when the user is forced to select only one value from the given range of values.
    image
    We can also type in the spinbox.
    image

  • panelWindow
    The PanedWindow widget is a resizable frame widget. It contains one or more child widgets arranged horizontally or vertically. Unlike the frame widget, child widgets can be resized by the user, by moving the separator lines. These separator lines are called as sashes.
    image
    image

  • LabelFrame
    LabelFrame is also a type of frame, but we can add borders to the widgets.
    image

  • MessageBox
    The messagebox module is used to display the message boxes in the python applications.
    It is a kind of alert in the application.
    image
    image


Image credits- All images in the text are my own screenshots.


🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
Follow me on GitHub for updates.......

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .