[pygtk] GdkRectangles

2002-12-02 Thread David M. Cook
Are GdkRectangles always represented by 4-tuples in pygtk?  The reason I ask
is that functions like TreeView.get_cell_area() and
TreeView.get_background_area seem to want GdkRectangles as input/output
parameters.  Immutable types don't make good input/output parameters.

Dave Cook
___
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] IOError: [Errno 4] Interrupted system call

2002-12-02 Thread Oistein Aanensen
Hi,

I'm getting some strange behaviour when i'm trying to use either
os.popen m popen2.Popen3 or popen2.Popen4 in my pygtk programs.
Occasionally i'm receiving 

IOError: [Errno 4] Interrupted system call

when i issue the readlines() call on fromchild descriptor, or reads from
the fd that comes from fd.os.popen(cmd,'r'). Trying this code
standalone, i.e. not pygtk they works fine each time. When i run the
code from hitting a button in a libglade, pygtk program i receive this
weird behaviour.

Anybody have a clue.

Thanks for all feedback.

Best regards
Øistein Aanensen



___
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] Frozen pygtk code

2002-12-02 Thread Roberto Cavada
Has someone ever tried to freeze pygtk code, in order to produce a 
more easily distributable code? 
rob
--
Roberto Cavada
ITC-irst Institute for Scientific and Technological Research
Automated Reasoning Systems - Formal Methods Group
Via Sommarive, 18 - 38050 Povo (TN) - Italy
Tel: +39 0461 314 321   Fax: +39 0461 302 040
[EMAIL PROTECTED]  http://sra.itc.it/people/cavada/
--
___
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] GtkToolTips tip_private

2002-12-02 Thread Johan Dahlin
mån 2002-12-02 klockan 16.36 skrev Luc Lefebvre:
 Hi,
 
 I was trying to access the tip_private field in GtkToolTips without any 
 success.  The tip part does show, but I can't access it using get_data.

It seemed that a few things were missing in the bindings, so i added
them (committed to cvs just a few minutes ago)

tips_data_list is a list with 4 sizes tuples, which containes:
GtkToolTips, GtkButton, tooltip and tooltip-private.

Example:

 t = gtk.Tooltips()
 t.tips_data_list
[]
 b = gtk.Button()
 t.set_tip(b, 'foo', 'bar')
 t.tips_data_list
[(gtk.Tooltips object (GtkTooltips) at 0x81a0cb4, gtk.Button object
(GtkButton) at 0x81a0c34, 'foo', 'bar')]


Does this solve everything for you?

-- 
Johan Dahlin [EMAIL PROTECTED]
Async Open Source

___
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] GtkToolTips tip_private

2002-12-02 Thread Johan Dahlin
 This would solve it.  If I understand you correctly, the current bindings 
 (ie. the ones without the tips_data_list attribute) don't support 
 retrieving the tips_private field.  Correct?

Yes, the last item in tuple is the tip_private field in the
GtkTooltipsData structure.

-- 
Johan Dahlin [EMAIL PROTECTED]
Async Open Source

___
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] GdkRectangles

2002-12-02 Thread David M. Cook
On Mon, Dec 02, 2002 at 12:52:58AM -0800, David M. Cook wrote:

 Are GdkRectangles always represented by 4-tuples in pygtk?  The reason I ask
 is that functions like TreeView.get_cell_area() and
 TreeView.get_background_area seem to want GdkRectangles as input/output
 parameters.  Immutable types don't make good input/output parameters.

Sorry, I figured this out with a little introspection.  I think I knew this
at one time and forgot it.

Senile Dave
___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/