Can+~
February 20th, 2008, 04:01 AM
So, I've been following the tutorial of pygtk, and decided to start my own application, which was rather simple, but with some tabs ("notebook") on it.
Anyway, when starting, it was easy to "show" elements:
self.widget.show()
But, as the list grew bigger, I'm having problems managing all the shows, I even tried an array, but it sucked.
So, my question is, if there's a reduced mode to show everything, I tried for instance:
for i in dir(self):
i.show()
Produces:
AttributeError: 'str' object has no attribute 'show'
That won't work, since dir produces a list of strings, not objects, so either (and, btw, I would add a regular expression to that to avoid the __init__ and any other non-gtk thing being dragged into):
Convert the string into an object, which I don't know how to do.
Or, another method.
Any ideas?
Thanks in advance.
Anyway, when starting, it was easy to "show" elements:
self.widget.show()
But, as the list grew bigger, I'm having problems managing all the shows, I even tried an array, but it sucked.
So, my question is, if there's a reduced mode to show everything, I tried for instance:
for i in dir(self):
i.show()
Produces:
AttributeError: 'str' object has no attribute 'show'
That won't work, since dir produces a list of strings, not objects, so either (and, btw, I would add a regular expression to that to avoid the __init__ and any other non-gtk thing being dragged into):
Convert the string into an object, which I don't know how to do.
Or, another method.
Any ideas?
Thanks in advance.