Re: [pygtk] pixbuf loading in a thread -- release the GIL!

2007-12-16 Thread Ed Catmur
On Wed, 2007-12-12 at 07:31 +0100, evan battaglia wrote: > Hi, > * is there a better way to accomplish what I am trying to do -- load > large images in the background without freezing the UI? It seems like > this must be a common problem (don't programs have to load thumbnails > in the background

Re: [pygtk] Translation, gtk labels, and gettext

2007-12-06 Thread Ed Catmur
On Thu, 2007-12-06 at 00:49 -0500, Caleb Marcus wrote: > I'm planning to make my application translatable with gettext. Do I > have to make the text in my gtk stock buttons and things like that use > gettext, or will they automatically translate due to their use of gtk > stock things? Try it and

Re: [pygtk] vte term, log file

2007-12-05 Thread Ed Catmur
On Wed, 2007-12-05 at 01:22 -0700, Seltzer wrote: > Hello, > I have been trying to grab the standard out and send it both to a > file, and > a terminal window in my app for logging purposes, and have been having > trouble > getting it to show up in a vte.Terminal. This is mainly because i cant > fi

Re: [pygtk] gtk.StatusIcon and Custom Tooltip-like widgets

2007-03-27 Thread Ed Catmur
On Tue, 2007-03-27 at 15:20 +, Mystilleef wrote: > Hello, > > I want to display a custom tooltip-like widget when the mouse pointer is > over a gtk.StatusIcon object. But I can't find any signal that is emitted > when the mouse pointer is over the gtk.StatusIcon object. What do I do? > > Than

Re: [pygtk] bitmap_create_from_data in C and python

2007-03-18 Thread Ed Catmur
On Sun, 2007-03-18 at 18:28 +0530, Suresh Jeevanandam wrote: > Whats the python equivalent of the following C code? > > #define gray50_width 4 > #define gray50_height 4 > static char gray50_bits[] = { > 0x01, 0x02, 0x04, 0x08 }; > stipple = gdk_bitmap_create_from_data (NULL, gray50_bits, > gray5

Re: Fwd: [pygtk] Working with files with python (gtk)

2007-03-17 Thread Ed Catmur
On Fri, 2007-03-16 at 01:36 -0400, Edward A Robinson wrote: > On 3/15/07, Ed Catmur <[EMAIL PROTECTED]> wrote: > > On Thu, 2007-03-15 at 15:28 -0400, Edward A Robinson wrote: > > > Also how would I get cut and paste to work so that I can cut a file > > > from my

Re: [pygtk] Working with files with python (gtk)

2007-03-17 Thread Ed Catmur
On Thu, 2007-03-15 at 15:28 -0400, Edward A Robinson wrote: > This is my first time posting to the python tutor so be nice, I have > read the mailing list and cant seem to find and answer there or on > google so I turn to you guys for help. I'm working on a gtk > application and I want to list all

Re: [pygtk] minimize pygtk to tray

2007-03-15 Thread Ed Catmur
On Thu, 2007-03-15 at 18:37 +0200, Miki wrote: > Hi all, > It is posible to open pygtk application and place it in the system > tray? and when the user will click on it a popup menu will show him > some options? Use gtk.StatusIcon[1] (new in pygtk 2.10), and hide/show the main window when you rece

Re: [pygtk] Error when adding longs into a GTK Treeview

2007-03-02 Thread Ed Catmur
A far simpler testcase: >>> import gtk >>> gtk.ListStore(long).append([2**31-1]) >>> gtk.ListStore(long).append([2**31]) Traceback (most recent call last): File "", line 1, in ? TypeError: value is of wrong type for this column This is expected behaviour on x86-32, where long is 4 bytes wide.

Re: [pygtk] How to increase font size of all widgets

2007-01-30 Thread Ed Catmur
On Tue, 2007-01-30 at 10:55 +0100, Volker Helm wrote: > Hi, > > I stumbled over a problem, that some people didn't like to use their googles > or lenses. > So I need to increase the size of the widget fonts by a factor. > I tried to do it with pango. For me it is only working when I define for

Re: [pygtk] Signal with a float argument

2007-01-30 Thread Ed Catmur
On Mon, 2007-01-29 at 18:15 +0100, BJörn Lindqvist wrote: > When running the above code on Windows it produces the following output: > > RINGING! Hello olle > RINGING 5.92878775009e-323 > > That is wrong, the second line should have been "RINGING 12.0". Is it > a bug in PyGTK or am I doing so

Re: [pygtk] Signal with a float argument

2007-01-30 Thread Ed Catmur
On Mon, 2007-01-29 at 18:15 +0100, BJörn Lindqvist wrote: > ... > gtk.binding_entry_add_signal(Foobar, gtk.keysyms.m, 0, 'ring_loud', > float, 12.0) > ... > gtk.bindings_activate(f, gtk.keysyms.m, 0) > > When running the above code on Windows it produces the following

Re: [pygtk] Show command output (new IEs4Linux GUI)

2006-12-08 Thread Ed Catmur
Brian wrote: On Fri, 2006-08-12 at 03:38 -0200, Internet Explorer Linux wrote: Hey, thank you guys! I decided to do it with threads. See how it looks now: tatanka.com.br/ies4linux/news I just looked at your source. You are not using threads. you only are initiating gtk to allow threads. The

[pygtk] Re: Overriding GObject methods in Python

2006-11-24 Thread Ed Catmur
Murray Cumming wrote: On Fri, 2006-11-24 at 13:44 +, Ed Catmur wrote: Unfortunately not; the vfunc signatures are only expressed in the header files. Thus they aren't in the binary and aren't accessible to GObject introspection. Even the new introspection? That's mean

[pygtk] Re: Overriding GObject methods in Python

2006-11-24 Thread Ed Catmur
Murray Cumming wrote: On Fri, 2006-11-24 at 11:29 +0100, Hrvoje Nikšić wrote: On Fri, 2006-11-24 at 10:33 +0100, Murray Cumming wrote: As far as I can tell by looking at gtk/pygtkcellrenderer.c, PyGTK allows overriding by creating a "stub class" PyGtkGenericCellRenderer that inherits GtkCellRend

Re: [pygtk] Overriding GObject methods in Python

2006-11-23 Thread Ed Catmur
Hrvoje Nikšić writes: I'd like to design GObject classes so that they can be inherited, and their methods overriden, from Python. ... Another option would be to forego properties and use a separate vtable object in the class structure. The object would encapsulated the binding of slot to GClosur