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.

>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.

>
>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.

James.

-- 
Email: [EMAIL PROTECTED]              | Linux.conf.au 2003 Call for Papers out
WWW:   http://www.daa.com.au/~james/ |   http://conf.linux.org.au/cfp.html




_______________________________________________
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