On Thu, Jun 06, 2002 at 10:00:30PM +0800, James Henstridge wrote: > Collins wrote: > > >1. I have a gui compile tool that presents a dialog box(do you want to > >rename temporary file?) that appears when each operation completes. > >Howdo I make this dialog box obtain complete control so that the user > >cannot continue use of the main window until the question in the > >dialog has been answered? > > > call "window.set_modal(gtk.TRUE)". When the window gets shown, it will > be modal (no other window in the app will accept input). If you are > using the 2.0 version of pygtk, you can use the dialog.run() method, > which "runs" the dialog, and returns the number of the button that got > pressed.
-> FAQ 10.4 http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.004.htp > >2. How do I obtain the current geometry settings (really just the top > >left corner) of the main window so that I can position the dialog box > >to overlay the main window? > > > call "window.set_transient_for(parent_window)". Your window manager > should position the window appropriately. -> Updated FAQ 10.3 http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.003.htp > >3. Even though I use clist.freeze(), update the clist, > >clist.unthaw(), I get a lot of screen flickering. Any idea how to > >control this? > > > If you want flicker free opperation, use gtk 2.0. The new tree/list > widget is a lot more powerful than CList. -> Sidenote to new FAQ 13.9 http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq13.009.htp Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL _______________________________________________ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
