Questions tagged [pygobject]

GTK+ and other GObject bindings are provided by PyGObject through introspection.

Python library providing bindings for GObject based libraries through GObject-Introspection.

For more information:

746 questions
45
votes
3 answers

pygobject-2.28.6 won't configure: No package 'gobject-introspection-1.0' found, how do I resolve?

I'm trying to get pygobject-2.28.6 to compile in cygwin (version in repository is 2.28.4 which has some issues). Here is the tail of ./configure: checking for GLIB - version >= 2.24.0... yes (version 2.34.3) checking for ffi... checking for FFI...…
Stupac
  • 511
  • 1
  • 5
  • 6
44
votes
2 answers

GtkDialog mapped without a transient parent

I have a GUI built in Glade (3.18) which is called by a Python 3 program (using PyGObject). I get a lot of warnings when running the program (Fedora 21) that say: Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged. How…
tobias47n9e
  • 2,310
  • 3
  • 23
  • 46
40
votes
4 answers

What's the recommended way to unittest Python GUI applications?

I'm currently foolish enough to try to maintaintain two parallel code bases for a Python desktop application, one using PyGObject introspection for GTK 3 and one using PyGTK for GTK 2. I work mainly on the PyGObject branch and then I port changes…
user626998
39
votes
0 answers

How to create a letter spacing attribute with pycairo?

I'm using Pango + Cairo (through GObject) to render text with python3.7, and would like to set the letter spacing by creating an attribute and attaching that attribute to my pango layout. In the gnome documentation for pango, I can see that there…
RasmusWL
  • 1,502
  • 13
  • 24
31
votes
2 answers

What exactly are GLib and GObject?

I have been looking into the source code of python-mpdor and it mentions that it is gobject-based, for easy event handling (in the high-level client class). Can someone explain to me in simple terms what exactly are Glib and GObject and how do…
RanRag
  • 43,987
  • 34
  • 102
  • 155
27
votes
1 answer

Has threading in GTK w/ Python changed in PyGObject introspection?

I'm in the process of converting a program from PyGTK to PyGObject introspection for the first time and I've hit a roadblock with threading. I have a process that takes some time to complete, so I pop up a dialog with a progress bar on it and I use…
user626998
25
votes
2 answers

PyCharm can not resolve PyGObject 3.0, but code runs fine

I'm using PyCharm 2.5 on Ubuntu 11.10, trying to develop an application using PyGObject 3.0 on Python 3.2.2. I've installed the Ubuntu package python3-gobject, and when I run my code, it works exactly as expected. However, PyCharm can not seem to…
HOLOGRAPHICpizza
  • 925
  • 1
  • 8
  • 14
24
votes
5 answers

PyGObject GTK+ 3 - Documentation?

PyGObject appears to have no real documentation. This tutorial is as close as it gets. I've been struggling all morning simply trying to find a description of the arguments accepted by the Gtk.Window constructor. It seems I can't do much reflection…
HOLOGRAPHICpizza
  • 925
  • 1
  • 8
  • 14
22
votes
3 answers

How to bind a text domain to a local folder for gettext under GTK3

With gettext you can either use the default system-wide locale directory, or specify one yourself using bindtextdomain. This is useful when running a program directly from source when the compiled .mo translation files are not available in the…
Emilien
  • 2,661
  • 2
  • 20
  • 30
17
votes
2 answers

Non-ASCII symbols in translation of GTK-GUI in Windows not working?

I have a small python program that shows how to do translations of GTK (pygobject) GUIs for Linux and Windows. Everything works in Linux, but in Windows non-ASCII symbols are not rendered in the translation. I assume that the both the Glade file and…
tobias47n9e
  • 2,310
  • 3
  • 23
  • 46
17
votes
3 answers

PyGObject in Python 3 on windows

Does anyone know if its possible to install PyGObject/Gtk+3 on windows for Python 3? I have found installers on gnome's website for Python 2 (here), and several statements that it works with Python 3 (e.g. here), but no installer. The compilation…
aquavitae
  • 14,088
  • 7
  • 53
  • 99
16
votes
1 answer

Can't import Webkit from gi.repository

When I try to import Webkit from gi.repository, it gives an ImportError: from gi.repository import Webkit ERROR:root:Could not find any typelib for Webkit Traceback (most recent call last): File "", line 1, in ImportError: cannot…
Abhilash Nanda
  • 329
  • 2
  • 4
  • 13
15
votes
4 answers

I'm completly confused with PyObject, PyGTK and GNOME 3 as well

I installed Fedora 15 to use Python3 and GObject to develop a desktop-application, because PyGTK looks outdated: PyGTK 2.24.0 released Friday 01 April 2011 by Rafael Villar Burke PyGTK 2.24.0 has been released. This is a stable release…
quantez
  • 191
  • 1
  • 4
15
votes
2 answers

gi.repository Windows

I'm developing an app which has to be 100% compatible on windows and on linux. On linux I have no problems, but on windows I came up with this message: from gi.repository import Gtk ImportError: No module named gi I installed pygobject,…
Yerko Antonio
  • 567
  • 3
  • 7
  • 16
14
votes
1 answer

How to center a window with PyGObject

I'm currently trying to center my application window, but it seems to be impossible with PyGObject (GTK+ 3). Indeed, with pyGTK, I was doing it this way: window.set_position(gtk.WIN_POS_CENTER) So this time I'm trying…
gaetanm
  • 1,204
  • 1
  • 12
  • 23
1
2 3
49 50