summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-11-07 20:38:49 (GMT)
committerGuido van Rossum <guido@python.org>1997-11-07 20:38:49 (GMT)
commit368e06b6f06cf843f1c375f93cbda7e241719f2c (patch)
tree60de02acd9c9d8f9935761656250e0b199480042 /Misc
parent1abbd7f3f1e46f32c745b9eb44254ea12c0ddcf9 (diff)
downloadcpython-368e06b6f06cf843f1c375f93cbda7e241719f2c.zip
cpython-368e06b6f06cf843f1c375f93cbda7e241719f2c.tar.gz
cpython-368e06b6f06cf843f1c375f93cbda7e241719f2c.tar.bz2
Some restructuring.
All geometry manager methods that apply to a master widget instead of to a slave widget have been moved to the Misc class, which is inherited by all of Tk(), Toplevel() and Widget(). They have been renamed to have their geometry manager name as a prefix, e.g. pack_propagate(); the short names can still be used where ambiguities are resolved so that pack has priority over place has priority over grid (since this was the old rule). Also, the method definitions in the Pack, Place and Grid classes now all have their respective geometry manager name as a prefix (e.g. pack_configure); the shorter names are aliases defined through assignment. A similar renaming has been done for all config() methods found elsewhere; these have been renamed to configure() with config being the alias (instead of the other way around). (This may not make much of a difference but the official Tk command name is now 'configure' and it may help in debugging tracebacks.) Finally, a new base class BaseWidget has been introduced, which implements the methods common between Widget and Toplevel (the difference between those two classes is that Toplevel has a different __init__() but also that Toplevel doesn't inherit from Pack, Place or Grid.
Diffstat (limited to 'Misc')
0 files changed, 0 insertions, 0 deletions