Re: StatusIcon / threads

2007-12-12 Thread Yann Leboulanger
Tor Lillqvist wrote: >> I'd really like to test that, but I installed GTK from gladewin32 >> installer, which has everything, but there is no 2.12.3 build. Could you >> explain how to upgrade my windows installation to 2.12.3? > > (Keeping thread on-list.) > > If you have to ask, I think it's bet

Re: StatusIcon / threads

2007-12-12 Thread Tor Lillqvist
> I'd really like to test that, but I installed GTK from gladewin32 > installer, which has everything, but there is no 2.12.3 build. Could you > explain how to upgrade my windows installation to 2.12.3? (Keeping thread on-list.) If you have to ask, I think it's better for you to wait for the glad

Re: Create 'gtk.gdk.Event' object

2007-12-12 Thread Gian Mario Tagliaretti
2007/12/12, ying lcs <[EMAIL PROTECTED]>: > Can you please tell me if it is possible for my application to create > a 'gtk.gdk.Event' object and send it back to itself in > order to simulate a mouse click from user? gobject.emit() should do it, e.g. button.emit("clicked") cheers -- Gian Mario T

Re: JPEG image scaling

2007-12-12 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: > Very nice. I will try to translate that to C and then run it. Or maybe > try to get a Py-GTK setup going, just to see it in action. 8-) Check out his follow-up post too: http://www.david-web.co.uk/blog/?p=182 -- Michael Torrie Assistant CSR, System Administrato

Re: How to hadle the objects? g_set_data, global?

2007-12-12 Thread Alexandre Moreira
On Dec 12, 2007 12:15 AM, Diogo F. S. Ramos <[EMAIL PROTECTED]> wrote: > > Em Ter, 2007-12-11 às 22:57 -0200, Tristan Van Berkom escreveu: > > its well worth while to create a GObject for the major > > entities of your app (see DevHelp sources for a good simple example). > > I always like to go th

Create 'gtk.gdk.Event' object

2007-12-12 Thread ying lcs
Hi, Can you please tell me if it is possible for my application to create a 'gtk.gdk.Event' object and send it back to itself in order to simulate a mouse click from user? http://www.moeraki.com/pygtkreference/pygtk2reference/class-gdkevent.html Thank you. ___

Re: How to setup a timer in gtk

2007-12-12 Thread Jorge Navalon
El mié, 12-12-2007 a las 11:04 -0600, ying lcs escribió: > Hi, Hi, > > Can you please tell me how can I setup a timer in gtk application? > > It has a 'g_timeout_add()' function, but it 'Sets a function to be > called at regular intervals, with the default priority, > G_PRIORITY_DEFAULT.' > > B

Re: JPEG image scaling

2007-12-12 Thread Michael L Torrie
[EMAIL PROTECTED] wrote: > Are you successfully getting it loaded?How big is the picture before > you scale? I need example code ( even though it does not scale ) of how > to do this. It can be "skeleton code" you know, like we don't need to > see the proprietary stuff, just the window/

How to setup a timer in gtk

2007-12-12 Thread ying lcs
Hi, Can you please tell me how can I setup a timer in gtk application? It has a 'g_timeout_add()' function, but it 'Sets a function to be called at regular intervals, with the default priority, G_PRIORITY_DEFAULT.' But all I want is it call my function to be called only once when the timer expir

Re: Calling gtk_drag_get_data() in a drag-motion signal handler.

2007-12-12 Thread Mathias Hasselmann
Am Dienstag, den 11.12.2007, 14:46 +0100 schrieb Murray Cumming: > As the attached test case shows, this problem is fixed by calling > gtk_drag_dest_set() with 0 instead of GTK_DEST_DEFAULT_ALL (0 causes the > targets array to be ignored too, but just passing NULL for the targets > doesn't change