Re: [pygtk] A few simple questions
On Thu, 2002-06-06 at 15:10, Christian Reis wrote: > On Thu, Jun 06, 2002 at 02:27:04PM -0400, Steve McClure wrote: > > > > call "window.set_transient_for(parent_window)". Your window manager > > > > should position the window appropriately. > > > > Does anyone know if it possible to make this happen with dialogs that > > are defined in glade files? > > Sure, you can get_widget them and call set_transient_for() them. Ah, you > mean in glade itself? IIRC, no. Yes, that is what I meant. Thanks. > > Take care, > -- > Christian Reis, Senior Engineer, Async Open Source, Brazil. > http://async.com.br/~kiko/ | [+55 16] 272 3330 | NMFL -- Steve McClure 430 10th St NW Racemi Suite N-210 http://www.racemi.com Atlanta, GA 30318 [EMAIL PROTECTED] voice/fax: 404-892-5850 signature.asc Description: This is a digitally signed message part
Re: [pygtk] A few simple questions
On Thu, Jun 06, 2002 at 02:27:04PM -0400, Steve McClure wrote: > > > call "window.set_transient_for(parent_window)". Your window manager > > > should position the window appropriately. > > Does anyone know if it possible to make this happen with dialogs that > are defined in glade files? Sure, you can get_widget them and call set_transient_for() them. Ah, you mean in glade itself? IIRC, no. 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/
Re: [pygtk] A few simple questions
On Thu, 2002-06-06 at 14:23, Christian Reis wrote: > On Thu, Jun 06, 2002 at 10:00:30PM +0800, James Henstridge wrote: > > Collins wrote: > > [ first question deleted ] > > > >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. Does anyone know if it possible to make this happen with dialogs that are defined in glade files? > > -> Updated FAQ 10.3 > http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq10.003.htp [ question 3 deleted ] > > 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/ -- Steve McClure 430 10th St NW Racemi Suite N-210 http://www.racemi.com Atlanta, GA 30318 [EMAIL PROTECTED] voice/fax: 404-892-5850 signature.asc Description: This is a digitally signed message part
Re: [pygtk] A few simple questions
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/
Re: [pygtk] A few simple questions
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/
[pygtk] A few simple questions
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? 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? 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? TIA, -- Collins Richey - Denver Area - WWTLRD? gentoo(since 01/01/01) 2.4.18+(ext3) xfce-sylpheed-mozilla ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/