James Henstridge wrote:
>On Sat, 30 Jun 2001, Scott Russell wrote:
>
>>Hi, all.
>>
>> I'm doing drag-drop operations using the tabs of a GtkNotebook.
>> Unfortunately, the label doesn't seem to be a 'real' widget, and does
>>not support being a drag source. What can I use in it's place that will
>>
>
>A label is a real widget -- just a NOWINDOW widget, which means that it
>can't receive events.
>
>>still automatically resize and act like a label? Buttons resize (and
>>kind of look nice), but do not pass the click (or whatever) event down
>>to the Notebook in order to switch pages - not surprising, since they
>>use that click themselves.. I assume it's a pass-through in labels,
>>simply because they have this 'not a widget' status.
>>
>
>Try packing the label inside a GtkEventBox (a widget that has a window,
>and takes a single child) and using that as the notebook tab. You should
>be able to receive events with the event box.
>
>James.
>
I've seen this method used elsewhere, and It seems to fine - except it
still does not "pass through" the events that the Notebook needs to
switch pages. Do I need to catch them from the eventbox and reissue them
to the Notebook, and if so, which signals need to be passed?
- Scott
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk