Re: [pygtk] limit width of gtk.ComboBox

2008-10-01 Thread Casey McGinty
I think this is what you want. cell = gtk.CellRendererText() cell.props.ellipsize = pango.ELLIPSIZE_END ls = gtk.ListStore( object) cb = gtk.ComboBox( ls) cb.pack_start( cell, True) - Casey ___ pygtk mailing list

[pygtk] Fwd: dbus and main loops

2008-08-27 Thread Casey McGinty
2008/8/26 helder fraga [EMAIL PROTECTED] hi. i have 2 python files , one sends dbus messages to the other (receiver) The receiver, when it gets the message signal starts a new gtk.main , however this only works once, after the first time it doesnt receive any messages , but the sender still

Re: [pygtk] Apparent PyGTK Segmentation Fault

2008-08-23 Thread Casey McGinty
I have more details on this failure starting with a Valgrind backtrace that matches the previous segfault backtrace stack. ==19113== Invalid read of size 4 ==19113==at 0x4926B80: _wrap_gtk_menu_popup (gtk.override:1554) ==19113==by 0x80C9AB2: PyEval_EvalFrameEx (ceval.c:3573) ==19113==

Re: [pygtk] Apparent PyGTK Segmentation Fault

2008-08-23 Thread Casey McGinty
Can you please file a bug in our bugzilla? http://bugzilla.gnome.org/show_bug.cgi?id=549151 ___ pygtk mailing list pygtk@daa.com.au http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

[pygtk] Apparent PyGTK Segmentation Fault

2008-08-21 Thread Casey McGinty
I've come across a strange segmentation fault in PyGTK. Some other interesting debug notes: 1) The failure occurs when I click on a button widget that calls a gtk.Menu.popup() function. 2) I notice the failure only when I connect to the gtk.Menu 'deactivate' signal. 3) The failure only occurs on

[pygtk] TreeView Column Show/Hide MenuItem

2008-08-08 Thread Casey McGinty
Hey, I noticed that Thunderbird has a nice method of turning on and off specific columns in a TreeView widget. It is a MenuItem in the top right of the widget (see attachment) that displays a check box for each column name. Is there an easy way to enable this in PyGTK, or even a standardized

Re: [pygtk] Change state of a button

2008-07-11 Thread Casey McGinty
On Fri, Jul 11, 2008 at 1:37 AM, Frédéric [EMAIL PROTECTED] wrote: I would like to see the corresponding button pressed, as if I did it with the mouse. http://www.async.com.br/faq/pygtk/ So you want to see the button go in and then out, like in real time? I don't think you can do this with

Re: [pygtk] combobox question

2008-07-03 Thread Casey McGinty
On Tue, Jul 1, 2008 at 11:23 AM, Chris Cole [EMAIL PROTECTED] wrote: Hey all, I have a simple combobox that i've created with glade. I was just wondering if i could set the sensitivity of the individual elements in the combobox? like setting a widget set_sensitive(False) ? I think you can

Re: [pygtk] combobox question

2008-07-03 Thread Casey McGinty
On Wed, Jul 2, 2008 at 10:32 PM, Casey McGinty [EMAIL PROTECTED] wrote: On Tue, Jul 1, 2008 at 11:23 AM, Chris Cole [EMAIL PROTECTED] wrote: Hey all, I have a simple combobox that i've created with glade. I was just wondering if i could set the sensitivity of the individual elements

[pygtk] Re: How to size widgets below min size

2008-06-22 Thread Casey McGinty
On Tue, Jun 17, 2008 at 11:28 PM, Casey McGinty [EMAIL PROTECTED] wrote: I'm trying to create a combobox object than can be sized smaller than the text. What is the best way to go about doing this? Posting the solution to my previous question. Any comments are welcome. Hope someone can use

[pygtk] How to size widgets below min size

2008-06-18 Thread Casey McGinty
Hi, I'm trying to create a combobox object than can be sized smaller than the text. What is the best way to go about doing this? For example, with the code below, the width is fixed at the value needed for the max length string. But I would like to allow it to shrink to a smaller width, in which

[pygtk] When to Initialize Non-Main Windows?

2008-05-30 Thread Casey McGinty
Hi, Is there a best coding practice for the best point in the program execution to initialize secondary PyGtk windows? For example, all the background windows can be created during program init, but this might slow down the program startup. The other option is to create dialogs on first access,