Re: [pygtk] ZvtTerm question
On Thu, Sep 05, 2002 at 11:46:26AM -0400, Steve McClure wrote: First of all, you can get the character cell size as term.charwidth and term.charheight. You can then use the set_geometry_hints() method on the toplevel GtkWindow: win.set_geometry_hints(geometry_widget=term, width_inc=term.charwidth, height_inc=term.charheight) This should get the window to resize in the desired increments. Thanks for the info. Only problem is when I run get_window() on the GtkDialog instance, I get a GdkWindow type not a GtkWindow type and it doesn't have that method.adkadmin dynacenter The GtkDialog is already a GtkWindow (class inheritance), it will support set_geometry_hints(). The GdkWindow is a lower-level abstraction. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | 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] ZvtTerm question
On Thu, 2002-09-05 at 11:58, Christian Reis wrote: On Thu, Sep 05, 2002 at 11:46:26AM -0400, Steve McClure wrote: First of all, you can get the character cell size as term.charwidth and term.charheight. You can then use the set_geometry_hints() method on the toplevel GtkWindow: win.set_geometry_hints(geometry_widget=term, width_inc=term.charwidth, height_inc=term.charheight) This should get the window to resize in the desired increments. Thanks for the info. Only problem is when I run get_window() on the GtkDialog instance, I get a GdkWindow type not a GtkWindow type and it doesn't have that method.adkadmin dynacenter The GtkDialog is already a GtkWindow (class inheritance), it will support set_geometry_hints(). The GdkWindow is a lower-level abstraction. Sometimes it is hard being dumb. At least, too dumb to read the code and think for 10 seconds. Thanks for pointing out my transgressions. 8-) And of course, James' code works like a charm. Take care, -- Christian Reis, Senior Engineer, Async Open Source, Brazil. http://async.com.br/~kiko/ | [+55 16] 261 2331 | 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] ZvtTerm question
On Fri, 2002-09-06 at 05:17, Steve McClure wrote: Sometimes it is hard being dumb. At least, too dumb to read the code and think for 10 seconds. Thanks for pointing out my transgressions. 8-) Don't be so hard on yourself, at least once a week I post a question, have a coffee, look at my code and realise how silly I was, post a quick thanks, got it sorted in reply to my first message. and I haven't even received a friendly complaint yet alone a real flame ;o) -- * * Rob Brown-Bayliss * ___ 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] ZvtTerm question
I guess this might not strictly be a PyGnome (is there a mailing list for PyGnome) question but, is there anyway to set the hints so that I can limit the resize to character size blocks? I'm having a problem where some parts of the screen will become black after executing a shell in the ZvtTerm and then doing an ls -l. I'm setting the COLORTERM environment variable. Once the window is resized by the user the problem goes away. This is with pygnome 1.4.1-1, and pygtk 0.6.8-3. Any clues would be greatly appreciated. -- 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] ZvtTerm question
Steve McClure wrote: I guess this might not strictly be a PyGnome (is there a mailing list for PyGnome) question but, is there anyway to set the hints so that I can limit the resize to character size blocks? I'm having a problem where some parts of the screen will become black after executing a shell in the ZvtTerm and then doing an ls -l. I'm setting the COLORTERM environment variable. Once the window is resized by the user the problem goes away. This is with pygnome 1.4.1-1, and pygtk 0.6.8-3. Any clues would be greatly appreciated. First of all, you can get the character cell size as term.charwidth and term.charheight. You can then use the set_geometry_hints() method on the toplevel GtkWindow: win.set_geometry_hints(geometry_widget=term, width_inc=term.charwidth, height_inc=term.charheight) This should get the window to resize in the desired increments. James. -- Email: [EMAIL PROTECTED] | Linux.conf.au http://linux.conf.au/ WWW: http://www.daa.com.au/~james/ | Jan 22-25 Perth, Western Australia. ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/