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


沒有留言:

張貼留言

Messaging API作為替代方案

  LINE超好用功能要沒了!LINE Notify明年3月底終止服務,有什麼替代方案? LINE Notify將於2025年3月31日結束服務,官方建議改用Messaging API作為替代方案。 //CHANNEL_ACCESS_TOKEN = 'Messaging ...