4 The Entry widget is used to display a single-line text field for accepting values from a user. The user can select multiple options at a time. 3 The Checkbutton widget is used to display a number of options as checkboxes. 2 The Canvas widget is used to draw shapes, such as lines, ovals, polygons and rectangles, in your application. Operator & Description 1 The Button widget is used to display buttons in your application. We present these widgets as well as a brief description in the following table − Sr.No. There are currently 15 types of widgets in Tkinter. These controls are commonly called widgets. Top.mainloop() This would create a following window − Tkinter Widgets Tkinter provides various controls, such as buttons, labels and text boxes used in a GUI application. Example #!/usr/bin/python import tkinter top = tkinter.Tk() # Code to add widgets will go here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |