[pygtk] Modal Dialog focus
Danny Milosavljevic
danny.milo at gmx.net
Tue Jun 1 00:42:18 WST 2004
Am Sam, den 29.05.2004 um 2:04 Uhr +0100 schrieb Prashant Kumar:
> Hi
>
> How do I prevent a modal dialog going out of focus? (I want it to remain
> always on top of the window)
pass the parent like
d = Dialog(parent = window)
d.run()
there is usually no reason to manually mess with focus-out etc since the
window manager will hit you on the head anyways ;)
Or what do you mean ?
For glade its like
dialog = ...get_widget(whatever)
dialog.set_transient_for(window)
dialog.run()
dialog.hide()
>
> I've identified the signal handler focus_out_event but what should I do
> there to keep it on top?
>
> I'm using glade with pygtk.
>
>
> Also if you could let me know which event is triggered when a user
> enters or deletes in a textview? (There is no "changed" event there)
textview.get_buffer().connect("changed", blahblah)
[ or manually connect insert-text, or use "modified-changed" <-- dunno
whats the difference? ]
>
> Thanks
>
> _______________________________________________
> pygtk mailing list pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde geschreddert...
Dateiname : nicht verfügbar
Dateityp : application/pgp-signature
Dateigröße : 189 bytes
Beschreibung: Dies ist ein digital signierter Nachrichtenteil
URL : http://www.daa.com.au/pipermail/pygtk/attachments/20040531/03265320/attachment.bin
More information about the pygtk
mailing list