2022年11月17日 星期四

Python GUI Tkinter widgets

 List of widgets in Tkinter

askopenfileDialog box to show file browser & upload file from local system
askopenfileUpload and display images using file browser
ButtonAdd button with click events and style
CanvasDraw Line, Arc, Oval, Polygon ,rectangle etc
CheckbuttonRead data and manage (set or get) of a checkbutton
ComboboxManaging options of a dropdown Combobox
colorsTkinter supported colors list
colorchooseraccess the native colour picker dialog
config()access the access the object's attributes after its initialization
EntryAdd Text box , Single line text entry
EventsMouse and Keyboard Events using Call back functions
frameGroup widgets and add separator to window
imageDisplaying icon and Images on Window
LabelAdd Label and change text & other attributes
LabelFrameGroup Widgets and add Label
ListboxRead selection , add elements to a listbox
MessageBoxShow Message box and take user choice
MenuMenu with option and methods
NotebookMethods and options to manage Tabs
OptionMenuDrop down box to select one of many options
PanedWindowContainer allowing user to adjust the size by using the mouse
ProgressbarDisplaying status of process with options and methods
RadiobuttonRead data and manage (set or get) of a Radio button
ScaleUse slider to fix value
ScrollbarScrollbar options and uses
simpledialogDialog box to take user input.
StringVartk.StringVar() and trace with callback functions
SpinboxUser selection from a range of options
TextAdd Text box , Multi line text entry
ToplevelDisplay pop-up or child window from Parent
Parent-childParent Child node of Treeview
TreeviewBasics of Treeview
TreeviewAdding row to Treeview using insert()
TreeviewAdding row to Treeview after inserting data to MySQL table
validationValidating user inputs
clockDisplay time with Date
CalendarDisplay Date picker
DateEntryDisplay Drop-down Date entry

Layout of widgets in Tkinter window

gridAdd grid for layout management
packPack for layout management
placeplace for absolute and relative coordinates for layout management


沒有留言:

張貼留言

2024產專班 作業2 (純模擬)

2024產專班 作業2  (純模擬) 1) LED ON,OFF,TIMER,FLASH 模擬 (switch 控制) 2)RFID卡號模擬 (buttom  模擬RFID UID(不從ESP32) Node-Red 程式 [{"id":"d8886...