Re: [pygtk] cursors in win32

2001-03-27 Thread James Henstridge
On Tue, 27 Mar 2001, Paul Spencer wrote: > Hi all, > > > > I would like to set a busy cursor during a lengthy calculation. I have > discovered that I can do the following: > > ... > win = self.get_window() > cur = gtk.cursor_new(cursor_idx) > win.set_cursor(cu

[pygtk] icons for Win32 windows:

2001-03-27 Thread Paul Spencer
Hello there,     How does one change the default icon that appears in the upper left of a GtkWindow on Windows?  I tried using   pix, mask = gtk.create_pixmap_from_xpm(self, None, 'path-to-xpm')self.set_icon(pix, mask)   and   self.set_icon_name('path-to-xpm')   neither works and I get the l

[pygtk] cursors in win32

2001-03-27 Thread Paul Spencer
Hi all, I would like to set a busy cursor during a lengthy calculation. I have discovered that I can do the following: ... win = self.get_window() cur = gtk.cursor_new(cursor_idx) win.set_cursor(cur) ... where cursor_idx is one of the ones listed in GD

[pygtk] how to clear the X selection

2001-03-27 Thread Suzanne Sloan
[python 1.5.2, gtk 1.2.8, pygtk 0.6.6] The GTK+ 1.2 Tutorial, in the section on Managing Selections >> Supplying the selection, seems to state that one clears the X selection by setting the owner to NULL: /* Before clearing the selection by setting the owner to NULL,

Re: [pygtk] signal

2001-03-27 Thread James Henstridge
On Tue, 27 Mar 2001, berger patrick wrote: > Hi all, > > i have a little problem with signal function > > i have this in a window class : > ok_button.connect("button_press_event", ok_clicked(entry)) First of all, you probably want to connect the function ok_clicked, rather than the return valu

[pygtk] signal

2001-03-27 Thread berger patrick
Hi all, i have a little problem with signal function i have this in a window class : ok_button.connect("button_press_event", ok_clicked(entry)) and the function : def ok_clicked(ancestor): text = GtkEditable.get_chars(ancestor, 0, -1) at run time i have this message : Traceback (most

Re: [pygtk] libglade, pyglade and gettext.py

2001-03-27 Thread James Henstridge
On Tue, 27 Mar 2001, Danie Roux wrote: > How can I translate strings in my .glade files? I saved the strings in a > seperate file from glade. And made that file part of my POTFILES.IN. And I > do get the strings in my .pot files to translate. But it doesn't show. > > The rest of my program does

[pygtk] libglade, pyglade and gettext.py

2001-03-27 Thread Danie Roux
How can I translate strings in my .glade files? I saved the strings in a seperate file from glade. And made that file part of my POTFILES.IN. And I do get the strings in my .pot files to translate. But it doesn't show. The rest of my program does translate. -- Danie