Re: [pygtk] private signal

2002-09-09 Thread James Henstridge
Evgeny Chukreev wrote: Hello! [repost] I have tried to create private signal for my class. Now it looks like: -- - - - -- - - - - - - - - - - - - - - - -- import gtk, gobject class A (gtk.Window, gobject.GObject): eek! If you just want a gtk.Window subclass, don't also subclass from

Re: [pygtk] Determining string width in GNOME 2?

2002-09-09 Thread James Henstridge
Don Allingham wrote: In the past, I've been able to determine the width of a string before it is displayed by using the width() method of a GdkFont. With the change to Pango, this method no longer seems to apply. While I can get a GdkFont, and use the string_width method, it doesn't seem to

Re: [pygtk] private signal

2002-09-09 Thread Evgeny Chukreev
On Mon, 09 Sep 2002 15:00:01 +0800, James Henstridge [EMAIL PROTECTED] wrote: JH Try changing your code to look like the following: JH class A(gtk.Window): JH __gsignals__ = { 'no_undo': (gobject.SIGNAL_RUN_FIRST, None, ()) } JH def __init__(self): JH

Re: [pygtk] PyGNOME 2 - Panel Applets

2002-09-09 Thread Michele Campeotto
Martin Grimme wrote: I would be very happy if anyone could post a short example of how to do panel applets with PyGNOME 1.9.x. Here you can find a simple example, this code is not mine, I got it from RM [EMAIL PROTECTED], I'm giving it away with his permission, and I haven't yet looked at

Re: [pygtk] private signal

2002-09-09 Thread James Henstridge
Evgeny Chukreev wrote: On Mon, 09 Sep 2002 15:00:01 +0800, James Henstridge [EMAIL PROTECTED] wrote: JH Try changing your code to look like the following: JH class A(gtk.Window): JH __gsignals__ = { 'no_undo': (gobject.SIGNAL_RUN_FIRST, None, ()) } JH def __init__(self): JH

[pygtk] better way of doing this please

2002-09-09 Thread Rob Brown-Bayliss
Hi, I want to check a few sockets and respond fairly quickly in a gnome app. once up and running I do gtk.idle_add(self.check_comms) def check_comms(self): rtoread, rtowrite, err = select.select(self.in_comms, self.out_comms, [], 1.0) if (len(rtoread) != 0):

Re: [pygtk] better way of doing this please

2002-09-09 Thread Malcolm Tredinnick
On Mon, Sep 09, 2002 at 09:30:55PM +1200, Rob Brown-Bayliss wrote: Hi, I want to check a few sockets and respond fairly quickly in a gnome app. once up and running I do gtk.idle_add(self.check_comms) def check_comms(self): rtoread, rtowrite, err =

Re: [pygtk] PyGNOME 2 - Panel Applets

2002-09-09 Thread Martin Grimme
Michele Campeotto wrote: Martin Grimme wrote: I would be very happy if anyone could post a short example of how to do panel applets with PyGNOME 1.9.x. Here you can find a simple example, this code is not mine, I got it from RM [EMAIL PROTECTED], I'm giving it away with his

Re: [pygtk] better way of doing this please

2002-09-09 Thread Christian Reis
On Mon, Sep 09, 2002 at 09:30:55PM +1200, Rob Brown-Bayliss wrote: I want to check a few sockets and respond fairly quickly in a gnome app. once up and running I do gtk.idle_add(self.check_comms) def check_comms(self): rtoread, rtowrite, err = select.select(self.in_comms,

Re: [pygtk] Couple of pygtk questions

2002-09-09 Thread Christian Reis
On Mon, Sep 09, 2002 at 10:38:28AM +0800, James Henstridge wrote: The new PyGTK is not fully compatible with the old one. There are a few things you will need to do to convert your app: Added to FAQ as http://www.async.com.br/faq/pygtk/index.py?req=showfile=faq02.002.htp Take care, --

Re: [pygtk] libesd.la

2002-09-09 Thread Joe Shaw
On Sat, 2002-09-07 at 10:24, Anthony Tekatch wrote: and got the following error: libtool: link: `/usr/lib/libesd.la' is not a valid libtool archive After some digging I found that there is some sort of problem with the esound package and its improper use of library links. I could not

Re: [pygtk] better way of doing this please

2002-09-09 Thread Rob Brown-Bayliss
On Tue, 2002-09-10 at 00:20, Christian Reis wrote: You might want to look at gtk.input_add() and friends, which IIRC does what you want. I think I learned how to use it reading the GTK+ tutorial, and if you do have a minute, write a simple example back and I'll add it to the FAQ. What I

[pygtk] gnome.init() problems fixed

2002-09-09 Thread James Henstridge
If you ran into the problem of libgnomeui not being correctly initialised when you call gnome.init(), that problem has now been solved. You will need to upgrade to libgnome-2.0.5 (in the 2.0.2 release candidate) in order to get the fix. Thanks go to Matt Wilson for tracking down the