[pygtk] gtk.main()

Paul Malherbe paul at tartan.co.za
Wed Jan 18 04:17:56 WST 2006


Hello

I am currently using the following and I am sure it is not the correct 
way but it seems working.

a = A-class()
gtk.main()

b = B-class()         # Started within the A class
gtk.main()

gtk.main_quit()    # end the B class

c = C-class()         # Started within the A class
gtk.main()

gtk.main_quit()    # end the C class

d = D-class()        # Started within the A class

gtk.main_quit()    # end the D class

gtk.main_quit()    # end the A class

Is there a better way to achieve this?

Thanks Paul


More information about the pygtk mailing list