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
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
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
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
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
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
> 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
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):
>
>
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
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
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,
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.
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
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
14 matches
Mail list logo