Jeffrey Barish wrote:
As an exercise in preparation for bigger things, I am trying to create a
custom widget that is a gtk.Entry with an added label.  I borrowed
liberally from examples, but I am not aware of any examples that do quite
what I am trying to do.  I can make this widget work by subclassing gtk.Bin
and adding the entry as a child, but what I really want is to have
a "self-contained" widget.  I think that I am close, but I have two
problems (that I know about) that have me completely stumped.  The first is
that I can't get the label to appear, although there appears to be space
for it.  The second is that the entry does not resize when I resize the
window.  Any suggestions would be greatly appreciated.  I'm hoping that
creating custom widgets gets easier after the first one.

I am not sure if it's actually possible to do what you want to do.
But, you could try to set the parent of the widget to the same parent the entry has. It may or might not help you.
The parent is responsible for propagating the drawing requests to all children.

Johan
_______________________________________________
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