MCS 260 Fall 2021
Idle is a graphical code development environment (or integrated development environment, IDE) for Python.
It is the officially-supported IDE for Python.
Continue working on the GUI password generator we started in lecture 38.
So far: Built GUI controls.
Remaining: Connect controls to program logic.
tkinter has its own variable classes (
Widgets support these, e.g. with
textvariable constructor argument.
Can ask to call a function of three arguments when a variable is changed:
This widget's constructor accepts many args, including:
from_— minimum value
to— maximum value
variable— variable in which to store slider value
command— function to call on change
A big topic we didn't discuss is adding menus to tkinter applications.
TkDocs has a nice discussion and tutorial.