creating custom options for custom widgets?

Alexandre Guimond ag at mirada-solutions.com
Wed Mar 22 12:55:34 EST 2006


Hi all.

I'm creating a new widget class using Tkinter (class inherited form
Tkinter.Frame). This class creates a bunch of other widgets inside it
that can be "gridded" either horizontally or vertically. I would like
to provide the user of the class an option to change this layout on the
fly, using something like "widget[ 'layout' ] = 'vertical'". Does
anyone have experience with that? I'm afraid i just down know how to
proceed or where to look for an example.

thx for any help.

alex.




More information about the Python-list mailing list