Re: [pygtk] SpinButton and a value of None

2005-11-28 Thread N. Volbers
Graham Ashton schrieb: On Thursday 24 November, N. Volbers wrote: My second problem arises due to the fact that it should be possible to specify no value at all. [snip] Am I missing something obvious? I would appreciate any suggestions on this. If you want a single widget that al

Re: [pygtk] [Fwd: Label text does not span width of container]

2005-11-28 Thread John Finlay
I think you should ask this question on the one of the GTK+ mail lists - say gtk-app-devel-list John Nicodaemus wrote: (the original query) I have a simple program with a label on the main program window. I place some text in the label and set the 'set_line_wrap' property of the label to Tr

[pygtk] [Fwd: Label text does not span width of container]

2005-11-28 Thread Nicodaemus
(the original query) I have a simple program with a label on the main program window. I place some text in the label and set the 'set_line_wrap' property of the label to True. However, when I run the script I notice that the text in the label does not span the entire width of the window, as ther

Re: [pygtk] Help with modal in Gtk::FileChooserDialog

2005-11-28 Thread dannym
Hi, Am Montag, den 28.11.2005, 15:47 -0500 schrieb Graham Ashton: > On Monday 28 November, dannym wrote: > > > Usually you just use a modal event loop: > > > > dialog = gtk.FileChooserDialog() > > answer = dialog.run() # hangs around until dialog is closed > > del dialog > > Hi. Wouldn't it be

Re: [pygtk] SpinButton and a value of None

2005-11-28 Thread Graham Ashton
On Thursday 24 November, N. Volbers wrote: > My second problem arises due to the fact that it should be possible to > specify no value at all. > > [snip] > > Am I missing something obvious? I would appreciate any suggestions > on this. If you want a single widget that allows you to specify "a

Re: [pygtk] Help with modal in Gtk::FileChooserDialog

2005-11-28 Thread Graham Ashton
On Monday 28 November, dannym wrote: > Usually you just use a modal event loop: > > dialog = gtk.FileChooserDialog() > answer = dialog.run() # hangs around until dialog is closed > del dialog Hi. Wouldn't it be better to say: dialog.destroy() instead of del dialog ? It was a long time a

Re: [pygtk] Help with modal in Gtk::FileChooserDialog

2005-11-28 Thread dannym
Hi, Am Dienstag, den 22.11.2005, 14:37 -0500 schrieb Thierry Lam: > > > Does anyone know how to set modal to True for Gtk::FileChooserDialog? Usually you just use a modal event loop: dialog = gtk.FileChooserDialog() answer = dialog.run() # hangs around until dialog is closed del dialog > >

Re: [pygtk] Disabling or greying out other windows

2005-11-28 Thread dannym
Hi, Am Montag, den 21.11.2005, 16:08 -0500 schrieb Thierry Lam: > Let's say I have a main window which has a File menu. When I click on > the File menu and the open button, I have a File Chooser window which > comes in front of my main window. How do I make the main window > unselectable? That i

Re: [pygtk] Does such a widget exist?

2005-11-28 Thread dannym
Hi, Am Mittwoch, den 16.11.2005, 19:51 +0100 schrieb Stefano Esposito: > Hi all, > > i need a widget that displays mobile/fixed points and fixed rectangles and > which is capable to catch mouse-click events. Does such a widget exist > somewhere in the world? :) diacanvas perhaps, if I understa

Re: [pygtk] Re: Pixbuf memory leak?

2005-11-28 Thread dannym
Hi, Am Mittwoch, den 16.11.2005, 09:06 + schrieb Loris Caren: > On Tuesday 15 November 2005 21:06, you wrote: > > I'm doing a large number of calls to > > p = gtk.gdk.pixbuf_new_from_file(f) > > ... > > del p > > and am finding that the process consumes more and more memory as it > > goes on.

Re: [pygtk] Error with rc_parse

2005-11-28 Thread spike grobstein
short answer: widget "*.head" style head long answer: your widget definition in the gtkrc is saying "a GtkLabel contained in a widget called 'head'" since you're naming your label "head", you need to define the line as: widget "*.head" style "head" that will instruct gtk to style a widge

[pygtk] [Fwd: Label text does not span width of container]

2005-11-28 Thread Nicodaemus
Hello, I tried to send the following query to your pygtk post, but I don't think I succeeded. Please let me know the correct way to post a new query or reply to an existing query. Thank you. John Anderson --- Begin Message --- I have a simple program with a label on the main program window. I

Re: [pygtk] Error with rc_parse

2005-11-28 Thread tjas ni
On 11/28/05, tjas ni <[EMAIL PROTECTED]> wrote: Thanks, gtk.rc_parse("test") worked fine! But I got into some other problems. I defined a GtkLabel with this command: headline.set_name("head") In my RC file I inserted this line: widget "head.GtkLabel" style "head" but my 'head' label aint getting

Re: [pygtk] Error with rc_parse

2005-11-28 Thread tjas ni
On 11/27/05, spike grobstein <[EMAIL PROTECTED]> wrote: how are you importing pygtk?try like this:import pygtkpygtk.require('2.0')import gtkgtk.rc_parse("test") # rc file's path should be relative to thesource file that calls this Thanks, gtk.rc_parse("test") worked fine!