[pygtk] help with two main windows in pygtk
Prashant Shah
elite.mumbai at gmail.com
Mon Feb 25 17:53:35 WST 2008
I have two gtk main windows each with its own .py file and its own class.
In the first gtk main window there is a gtk button "Open journal". I
want the second gtk window to open on clicking it.
Since the second main window has its own .py file and it has its own
class - how do I create the object and show it ?
Also I have a global varaible in the first main window that has the
database connection details which I am using inside the second main
window .py file.
When I try import the second file - it says the varaible not defined !!
ps : the pygtk documentation lacks on how to write applications with
multiple windows (or maybe i couldnt locate it). I intend to write
that once I know how to do it :) Also lacking is how to connect a
database to a TreeView.
More information about the pygtk
mailing list