I am trying to create multable pyGtk objects with different names based on a list
for objects in object_list:
self.'%s'_entry % objects.upper() = gtk.Entry(max=0)
self.vbox_entry.add(self.'%s'_entry % objects.upper())
File “gtk test.py”, line 113
self.’%s’_entry % objects.upper() = gtk.Entry(max=0)
^
SyntaxError: invalid syntax
Is this possible. If not is there another way to do what i want to do?
Make your life easier and just use a list.