[pygtk] help with two main windows in pygtk
Prashant Shah
elite.mumbai at gmail.com
Fri Feb 22 01:28:07 WST 2008
> self.new_comp_glade = self.mwglade.get_widget("new_company")
> self.vbox_main = self.mwglade.get_widget("vbox_main")
>
> child = self.new_comp_glade.get_child()
> if child:
> # remove the child from the top window
> self.new_comp_glade.remove(child)
> self.vbox_main.add(child)
Cool !! It works :) Thanks a lot !!!
I am making a small financial app in pygtk (gpl)
glade file :
http://rapidshare.com/files/93713518/main.glade.html
I have a =MainWindow= window (hbox: menubar, statusbar, a central main
area where all the stuff is displayed) with a menu item called create
company. On clicking create company - it has to open the
=CreateCompany= window in the central main area.
I have made different windows for vouchers/reports. For every action
it will load the windows in the central main area.
I dont know whether this is the rightway - I just took a guess.
Also should I use seperate python files for each gtk window or how is it done ??
More information about the pygtk
mailing list