Diez B. Roggisch wrote: > Looks (or better smells) like a design smell to me. In Qt,and especially > PyQt, you rarely subclass widgets, as that makes you lose the > possibility to use the fabulous designer. The only thing I subclass in > PyQt are the designer-generetaed top-level-classes. Can be a widget, or > sometimes dialogs. > > QObjects usually communicate using signals/slots. That ensures a nice > weak coupling of components and enforces good MVC design. If you > absolutely must share state by means of instances of widgets, > explicietly introduce them to each other. No globals needed! > > > Additionally, what you experience is the fact that python only knows > module-global variables. See > > > http://www.faqs.org/docs/diveintopython/dialect_locals.html > > > for an introduction. > > > Regards, > > > Diez
Thanks for the reply. Makes perfect sense now that you point this out! -- http://mail.python.org/mailman/listinfo/python-list