Re: [pygtk] Warnings issued by get_property

2003-09-04 Thread James Henstridge
On 4/09/2003 8:00 AM, Michael McLay wrote: I received an odd warning when testing the use of get_property. Accessing the 'child' property for a button returns the message: (:2640): Gtk-WARNING **: ../../gtk/gtkcontainer.c:874: invalid property id 3 for "child" of type `GParamObject' in `GtkButt

[pygtk] getting mime information

2003-09-04 Thread Don Allingham
I'm look for a way to determine the default application for a mime type. In pygtk-0.6, I was able to use gnome.mime.get_value(), but this is not available in 2.0. The C function gnome_vfs_mime_get_default_application() seems to do what I want. Is there a wrapper for this function or some other way

[pygtk] Warnings issued by get_property

2003-09-04 Thread Michael McLay
I received an odd warning when testing the use of get_property. Accessing the 'child' property for a button returns the message: (:2640): Gtk-WARNING **: ../../gtk/gtkcontainer.c:874: invalid property id 3 for "child" of type `GParamObject' in `GtkButton' >>> c.get_property('child') (:2640): Gt

Re: [pygtk] are GObjects properties useful in PyGTK?

2003-09-04 Thread Jan Weil
Hi Lorenzo, I also struggled with subclassing Gobject recently and I posted my experiences to this list to share them. You can find my posting here: http://www.daa.com.au/pipermail/pygtk/2003-August/005609.html Hope this helps, Jan Lorenzo Gil Sanchez schrieb: Hi, I'm trying to understand how t

Re: [pygtk] timeout_add questions

2003-09-04 Thread dude
Ah yes, I think I am getting someehere, but documentaion on gobject is scant. it took me a second to guess that import gobject could only be done after import gtk could you tell me something about it? again, thanks for all your help G On Thu, Sep 04, 2003 at 03:07:55PM -0700, dude wrote: > O

[pygtk] [2.0.0] gtk/gtktreeview.override patch

2003-09-04 Thread Albert Chin
C++ comments invalid for C89 code. -- albert chin ([EMAIL PROTECTED]) -- snip snip --- gtk/gtktreeview.override.orig Thu Sep 4 12:37:51 2003 +++ gtk/gtktreeview.overrideThu Sep 4 12:37:57 2003 @@ -819,7 +819,7 @@ return NULL; } -// Create on stack: much faster, no

Re: [pygtk] are GObjects properties useful in PyGTK?

2003-09-04 Thread Lorenzo Gil Sanchez
> Hi Lorenzo, > > I probably do not have the required PyGTK experience to give you > a full correct answer, but I think GObject Properties system is > usefull in Python: The reason: whenever a property value changes > from value, the notify signal is emitted. You can also "listen" > to specific pr

Re: [pygtk] are GObjects properties useful in PyGTK?

2003-09-04 Thread Mikoyan
On Thu, 2003-09-04 at 17:09, Lorenzo Gil Sanchez wrote: > Hi, > > I'm trying to understand how to create a custom subclass of > gobject.GObject and now I'm working with the properties stuff: > > import pygtk > pygtk.require('2.0') > import gobject > > class MyObject(gobject.GObject): > >

[pygtk] are GObjects properties useful in PyGTK?

2003-09-04 Thread Lorenzo Gil Sanchez
Hi, I'm trying to understand how to create a custom subclass of gobject.GObject and now I'm working with the properties stuff: import pygtk pygtk.require('2.0') import gobject class MyObject(gobject.GObject): __gproperties__ = { 'prop_name' : (gobject.TYPE_STRING, 'short_descrip

Re: [pygtk] PyGTK, Win32 and py2exe: no luck

2003-09-04 Thread Charles Lepple
Cedric Gustin said: > At 06:17 PM 9/3/2003 -0400, Charles Lepple wrote: [...] >>AssertionError: required version '2.0' not found on system >> >>... which is probably a result of calling pygtk.require('2.0'). > > Right, py2exe does not like it, as your final executable does not know > what sys.path

Re: [pygtk] timeout_add questions

2003-09-04 Thread Gustavo J. A. M. Carneiro
I have never tried this, but it should work, at least in principle: def _gui_sleep(time): gobject.timeout_add(time, gtk.main_quit) gtk.main() (This is called a recursive main loop.) Then call _gui_sleep() below (I inserted such call in your code below). A Qui, 2003-09-04 às 06:14,

Re: [pygtk] PyGTK, Win32 and py2exe: no luck

2003-09-04 Thread Michal Pasternak
Charles Lepple [Wed, Sep 03, 2003 at 06:17:55PM -0400]: > I am trying to bundle up a GTK+2 app on Win32 which uses PyGTK (from > Cedric's pygtk installer). I have tried py2exe, cx_Freeze, and Gordon > McMillan's Installer, but I can't seem to make a working standalone .exe > file with any of them.

Re: [pygtk] Creating custom CellRenderer

2003-09-04 Thread Lorenzo Gil Sanchez
El mié, 03-09-2003 a las 21:34, Abel Daniel escribió: > Hi! > > As a beginner pygtk user, I'm trying to make a TreeView which has > multi-line cells. Each node would contain about 1-4 lines of text. If > I were to use a gtk.CellRendererText, only 1 line would be visible, > and the user would have

[pygtk] 2.0.0 for Red Hat 9

2003-09-04 Thread Terje Rosten
I have made Red Hat 9 rpms for the 2.0.0 release of pygtk, pyorbit and gnome-python. They are available here: http://bohr.phys.ntnu.no/~terjeros/download/ Not much tested. - Terje ___ pygtk mailing list [EMAIL PROTECTED] http://www.daa.com.au/mai