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


沒有留言:

張貼留言

MQTT 協定與 Modbus 通訊的遠端監控與控制系統架構

MQTT 協定與 Modbus 通訊的遠端監控與控制系統架構 這張圖片展示了一個 結合 MQTT 協定與 Modbus 通訊的遠端監控與控制系統架構 (主要透過 Node-RED 進行資料整合)。 系統包含三個核心部分,其運作功能說明如下: 1. ESP32 終端設備(硬體控制層...