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…
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…
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'…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…