Christian Robottom Reis wrote:

       self.gantt = Gantt()
       self.box.pack_start(self.gantt, True, True, 0)


If Gantt is a window, why are you trying to pack it into a container?

Good point.



I think I need the answer to the reverse of your question.

What base class should be derived from such that
a) other widgets can be packed into the derived class, and
b) the derived class can be packed into a surrounding container?

While formulating the above question, I found the answer, namely, a concrete container (ie a HBox, VBox, or Table) rather than the abstract Container class. At least for the simple example it works.


Tnx!


It is probably my Qt background that steered me in the wrong direction. There, a base class Widget is used to derive new widgets. I was looking for something similar but could not find it. Also, the tutorial didn't show how to do this.


Albert

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to