Re: [pygtk] GdkRectangles
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/
Re: [pygtk] GtkToolTips & tip_private
> 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] GtkToolTips & tip_private
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 [(, , '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/
[pygtk] GtkToolTips & tip_private
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. For ex: button = gtk.GtkButton(label="Put mouse here for tooltip") tooltip = gtk.GtkToolTips() tooltip.set_tip(button, "Itsy bitsy", "yellow polkadot bikini") The tip "Itsy bitsy" shows up fine. I figured I could access it via the get_data("tip") and change it with set_data("tip"). The same for "tip_private", but no cigar. Any pointer would be appreciated. tia -- Luc Lefebvre o /`-' Open Source, a strategic choice \ www.eff.org for mission-critical applications___/___./ www.publicknowledge.org http://www.gnu.org/philosophy/no-word-attachments.html Key fingerprint = D2E5 5E35 B910 6F4E 0242 EC63 0FD9 96D0 C7F4 784E ___ 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
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/
[pygtk] IOError: [Errno 4] Interrupted system call
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] GdkRectangles
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/