Sorry for replying late, Danny.
How do I do this in glade? I'e selected "top level" in dialog type and
it is modal. They cant do anything on main window until they've closed
the dialog. But when someone clicks on the main window the dialog box
goes behind the window. I want the dialog box to always remain on top.
On Mon, 2004-05-31 at 17:42, Danny Milosavljevic wrote:
> 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 [EMAIL PROTECTED]
> > http://www.daa.com.au/mailman/listinfo/pygtk
> > Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
> >
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/