> class Win(gtk.Window):
> def __init__(self, width, height, title):
> gtk.Window.__init__(self)
> self.__gobject_init__()
> self.wind = gtk.Window()
> self.wind.set_title(title)
> self.wind.set_default_size(width, height)
This is not how you subclass in python, you need shouldn't create two
windows, use something like this instead to set the title and the
geometry on the first widget instead of creating a new one (which was
unused in your code)
class Win(gtk.Window):
def __init__(self, width, height, title):
gtk.Window.__init__(self)
self.set_title(title)
self.set_default_size(width, height)
Note: You don't need to call self.__gobject_init__() if you're using
pygtk 2.4.0.
--
Johan Dahlin <[EMAIL PROTECTED]>
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/