splitting Tkinter gui into several files

jarhead at mc.us jarhead at mc.us
Sun Nov 13 18:21:23 CET 2005


My Tkinter app's gui file grew to the point that i wanted to split it
into several files: menus.py, mainFrame,py, buttons.py, etc. Of
course, when i moved the menu code into its own file, then did "import
menus" in the main gui file, it died because of references in the
menus file to stuff in the main gui file. What's the right way, or the
cleanest way, to split up my main gui file into its several conceptual
component files?

tia,
Eric

-- 



More information about the Python-list mailing list