Pyglade, gtk, howto write more efficiently, and waste less code?

Pipiten pipiten at
Wed Sep 20 15:06:28 CEST 2006

Thanks thomas!, i did it that way ;).

maybe someone can help me with this, it seems simple, but i don`t know
how to do it.

I have:
        self.paths = ["","path1","path2","path3","path4","path5"]
	self.paths[1] = self.wTree.get_widget("path1")
	self.paths[2] = self.wTree.get_widget("path2")
	self.paths[3] = self.wTree.get_widget("path3")
	self.paths[4] = self.wTree.get_widget("path4")
	self.paths[5] = self.wTree.get_widget("path5")

what about if i have 30 widgets? how can i "get" them all?

.. variables variables?  ¬¬

thanks everybody, good luck

More information about the Python-list mailing list