pygobject

How do I install PyGTK / PyGobject on Windows with Python 2.6?

Hi, I have an application which depends on PyGTK, PyGobject, and PyCairo that I built to work on Linux. I want to port it over to windows, but when I execute import gobject I get this: Traceback (most recent call last): import gobject File "C:\Python26\lib\site-packages\gtk-2.0\gobject\__init__.py", line 30, in <module> from ...

How to connect to a GObject signal in python, without it keeping a reference to the connecter?

The problem is basically this, in python's gobject and gtk bindings. Assume we have a class that binds to a signal when constructed: class ClipboardMonitor (object): def __init__(self): clip = gtk.clipboard_get(gtk.gdk.SELECTION_CLIPBOARD) clip.connect("owner-change", self._clipboard_changed) The problem is now that, no inst...

Alternative to pygobject?

Hi, does anyone have an alternative to using pygobject as i can't seem to get this to run at all in Mac OS X. I'm trying to use papyon which fails amazingly well if gobject isn't around. Joe ...

GObject.add_emission_hook usage

I was kindly directed to use GObject's "add_emission_hook" following a recent question on SO but I can't seem to find a usage example. Does anyone have one to share, please? ...

installing pygobject on mac for Python 2.6

hi, Does anyone know how to install PyGObject on Mac OSX for Python 2.6. The current distribution available on darwinports is using Python2.4. I want a package using Python2.6 Alternatively, has anyone tried installing it from sources on a Mac? ...

Linux/Python: Monitor /proc/acpi files without polling?

Is there any way to monitor /proc files, such as /proc/acpi/battery/BAT0/state /proc/acpi/ac_adapter/ADP0/state in a non-polling fashion, similar to inotify on a normal filesystem? I want to do this in a PyGTK app, so I tried using PyGObject's gio.FileMonitor, but no dice. A Python solution that plays well with gtk.main() would be id...

Problem building PyGTK on CentOS

I am trying to build PyGTK on CentOS for a non-standard Python (2.6, vs the out-of-the-box 2.4). It requires that I first build pygobject. pygobject-2.18.0 fails at the configure step. The error messages is as follows: checking for GLIB - version >= 2.14.0... no *** Could not run GLIB test program, checking why... *** The test program f...

Up To Date Documentation on Wrapping gobjects with Python

I'm looking for up-to-date documentation and tutorials on creating Python bindings for gobjects. Everything I can find on the web is either incomplete or out of date. ...

Python bindings for a vala library

I am trying to create python bindings to a vala library using the following IBM tutorial as a reference. My initial directory has the following two files: test.vala using GLib; namespace Test { public class Test : Object { public int sum(int x, int y) { return x + y; } } } test.override %% header...