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:

817 questions
2
votes
3 answers

PyGObject - left-click menu on a status icon

I'm starting to write a small panel applet for Gnome and I'd like the user to be able to left-click on the status icon to see some options and information e.g. similar to sound icon in Gnome 3, where you can set volume via left-click while set…
Rainbow
  • 85
  • 1
  • 8
2
votes
0 answers

Error building wheels for PyGObject while deploying flask in heroku

I'm trying to deploy my Flask app on Heroku and keep getting this error: Failed to build dbus-python PyGObject ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly ! Push rejected, failed…
half of a glazier
  • 1,864
  • 2
  • 15
  • 45
2
votes
0 answers

How can I install PyGObject correctly?

When I install this package with "pip install pygobject" the following error occurs: ERROR: Command errored out with exit status 1: command: 'd:\python\py\python.exe' 'd:\python\py\lib\site-packages\pip\_vendor\pep517\_in_process.py'…
Max TIme
  • 21
  • 2
2
votes
2 answers

How do you add an inline image to PyGObject 3?

I want to put inline images into my PyGObject 3 programs so they won't have to be loaded from disk. YoLinux shows how to edit an XPM file so its text can be inserted into Python code. The free e-book "PyGTK 2.0 Tutorial" by John Finlay gives two…
Dave Brunker
  • 1,559
  • 5
  • 15
  • 23
2
votes
1 answer

Detect when a window opens in wnck python

I am making a window tiling script using libwnck. I would like to detect when the user opens a new window in order to resize it. Here is the gist of my code so far: import gi gi.require_version("Wnck", "3.0") from gi.repository import Wnck screen…
Ahmed Khalf
  • 136
  • 1
  • 9
2
votes
2 answers

GStreamer PyGObject Flag and Enum usage

I am using PyGObject to run Gstreamer pipelines from python. I need to set properties of some of my GStreamerElements, for example, the profiles property of the rtspclientsink element. I am using the .set_property(name, val) PyGObject…
Matthew Ha
  • 55
  • 4
2
votes
1 answer

Create Gtk.Atom with PyGobject Introspection and Gtk+3

Context: There was once a post on preventing window overlap with Gtk+2.x Recent changes in Gtk+3 have however affected the gdk_property_change() function, which has the PyGobject Introspection (hereafter referred to as PyGI) equivalent of…
neydroydrec
  • 6,973
  • 9
  • 57
  • 89
2
votes
1 answer

TreeView multiple selection does not work correctly after changing selection without UI

This is potentially a bug, though perhaps I'm misunderstanding something. Brief description Basically, I have found that using "Shift+Arrows" to do multiple selection in a Gtk.TreeView does not work correctly after changing the selection using…
sicklybeans
  • 299
  • 3
  • 11
2
votes
2 answers

Is gschemas.compiled architecture specific (can I ship it with my python library)?

I'm working on a python library / app that uses Gtk. Part of my build process uses glib-compile-schemas to create gschemas.compiled. If I include gschemas.compiled in my library, will this break things, if somebody tries to use my library on…
Stuart Axon
  • 1,844
  • 1
  • 26
  • 44
2
votes
1 answer

Right click context menu with PyGObject

I want to have a context menu when clicking with right mouse button. There is an old PyGtk-specific question about it. But it uses a very old gtk version and deprecated functions. I am unsure how PyGObject (Gtk 3.*) realize this. This is what I have…
buhtz
  • 10,774
  • 18
  • 76
  • 149
2
votes
1 answer

PyGObject. Python with GTK. TreeView problem

I am trying to make a multiple rows in a treeview in Python 3 using GTK3+. In each row you will have multiple buttons and Toggleswitches and so on. It will be something as shown below. I've tried to find examples but never succeded to find anything…
Payam30
  • 689
  • 1
  • 5
  • 20
2
votes
0 answers

Custom app indicator works in Ubuntu however fails to work when I change Ubuntu to Gnome from login boot menu

I have written an app indicator that works fine when I boot into Ubuntu from login boot menu. But if I change it to GNOME like this - then it doesn't appear. The script runs, but nothing is visible on the top bar/ app-indicator bar. Any idea why…
jar
  • 2,646
  • 1
  • 22
  • 47
2
votes
1 answer

Writing D-Bus service with pygobject?

I'm trying to write a D-Bus service. But I'm confused about the python packages pygobject and dbus-python. Is it possible to write a D-Bus service with pygobject alone (without using dbus-python)? My understanding was that pygobject provides…
2
votes
0 answers

Pygobject build fails

I am trying to install Pygobject on my 64-bit Ubuntu 16.04 by following instructions given here: https://python-gtk-3-tutorial.readthedocs.io/en/latest/install.html It recommends using jhbuild to build pygobject. So I install jhbuild (something I've…
AVJ
  • 213
  • 3
  • 11
2
votes
1 answer

Scroll content of a TreeView in PyGObject without scrolling the headers

I want to scroll the content of a Gtk.TreeView. This means the rows but not the header. So using a Gtk.ScrolledWindow will not help here because this would scroll the complete widget. I found Gtk.Adjustment but don't know how to use it. This is what…
buhtz
  • 10,774
  • 18
  • 76
  • 149