(Exam PCPP-32-10x)
Notes and small sample applications for the Python PCPP1 course and exam
brew install [email protected]
# Install Tkinter on macOS
- Label - not clickable, no
command
attribute or callback functionality - Button - has a
command
attribute that is a callback function - Entry
-
Text - Frame - not clickable, no
command
attribute or callback functionality - Canvas
- pack - simple "box" layout. Stacks widgets vertically or horizontally. Good for simple layouts. Uses
side='top'
,side='bottom'
etc... - grid - uses rows and columns, like a table. Best for forms and structured layouts. Uses
row=x
,column=y
etc... - place - places widgets at exact x and y coordinates. Not recommended for responsive UIs. Uses
.place(x=X, y=Y)
.
- bind / event handlers
- unbind
- StringVar / IntVar
- Command binding
- messagebox
- PhotoImage
- destroy
- config method
Data is retrieved from the free APIs at https://www.api-football.com/