switching between frames

James Logajan JamesL at Lugoj.Com
Mon Jul 30 12:30:55 EDT 2001


phillip wrote:
> I have a GUI that displays the contents of a properties file and
> allows for a user to edit the values and rewrite the file.
> 
> But I have more that one file and want to display the values  on a
> frame and then click a button to display the contents of the other
> file.

I'm not clear on whether you want to allow the user to be able to bring up
multiple property file windows, or only want one whose content appears to
change when a new file is selected.

If the former, then I would suggest instantiating a transient toplevel
window each time and then using destroy() or similar technique when the user
selects a button that quits that file edit.

If the latter, I would suggest using configure() calls to change the
contents of your frame and any auxilary widgets whenever a new properties
file is loaded.

By the way, for top level windows you can use the deiconify() and withdraw()
methods to control the display of a window.



More information about the Python-list mailing list