Jan Weil wrote:
> Of course you can design top-level windows in glade.
> The only difference is that doing so you don't
> subclass gtk.Window.
> Every time you need one of your toplevel windows you
> call
> g = glade.XML('file', 'toplevelname')
> w = g.get_widget('toplevelname')
> And you get a regular widget for which you can set
> properties afterwards.
>
> I think it only feels less OOP-like which is why I
> usually don't do it that way.
> Actually that means I have to set w's properties
> (like border_width) 'by hand'.But that usually only
> results in adding few more lines of code.
I think python metaclasses CAN SOLVE the problem.
I am justing getting my hands into metaclasses now.
Seems like one can assign a custom __new__ function in
the metaclass so that the widget can be created from
gladeXML inside our new __new__ function.
Have anybody got the solution (program) yet?
I am researching on this now. I'll post it if I
can find the solution.
May be if it worked, then next version of pygtk
should include it. ;-)
=====
Sridhar R
Email: [EMAIL PROTECTED]
WWW: http://sridhar.has.it
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/