I'm trying to write simple graphic editor using PyGObject and python 3.
I need to draw lines with different color and width using mouse. I found many examples like this but nothing more complex.
How do I save drawn image between 'draw' events? Is…
I would like to create Python3 bindings for a glib/gobject based library, namely infinote/libinfinity.
I am a bit puzzled about the necessary steps to accomplish this. Does PyGObject help here or not? Is this guide still valid for python3 and…
I'm trying to write an app using GtkClutter but I can't get the actors to fire signals. Here is a sample
from gi.repository import GtkClutter, Clutter, Gtk, Gdk
GtkClutter.init([])
class MyCanvas(GtkClutter.Embed):
__gtype_name__ =…
I have a GUI created in Glade, and I would like to populate the treeview widget. Here is the relevant part of my code
def __init__(self):
.....
self.fill_store()
self.add_column(self.widget('treeview_preview'))
…
So I've been trying to install the PyGObject library but it keeps giving me this error while building the wheel:
gi\gimodule.c: fatal error C1083: Cannot open include file: 'msvc_recommended_pragmas.h': No such file or directory
error:…
I'm trying to use buildout for a Python package which, when used, depends on 2 extension modules: dbus-python and pygobject. Both modules make buildout fail: dbus-python lacks a setup.py file, while pygobject has one but whose usage is discouraged…
I'm about to create a desktop based widget application using python via the gi.repository and the Gtk/Gdk v3.0. The goal is to have the window taking the whole screen being transparent, frameless and not accepting any focus. In addition it should be…
I'm new to Gnome development.
I am trying do create a button which, when pressed, will copy the content of its label to the clipboard and closes the app.
This is my code, where "self" is a class that extends Gtk.Window.
If I don't close the app, it…
I have installed gstreamer from source using cerbero with the help of this link (https://gstreamer.freedesktop.org/documentation/installing/building-from-source-using-cerbero.html?gi-language=c)
All the packages are installed in the cerbero…
the following code should work
import gi
import gi.repository
this works in a python shell. And it also works if I save the file as a script then launch it in a terminal.
but in aptana3 i get this:
import gi.repository
ImportError: No module named…
I'm looking for a way, on a PyGObject application, to be notified when there is a theme change.
I need this notification because I'm plotting a graph using matplotlib and I'm setting as text color for the Graph the standard label color of the…
Does anyone where I can find the gnome keyring api in PyGi?
I used to do:
import gnomekeyring
Now I want to use the new python/gobject introspection so it would be something like:
from gi.repository import GnomeKeyring
But I can't find the module…
I have a clean virtual environment
conda create --name gtk python=3.8
conda install -c conda-forge pygobject gtk3
When I add the import from gi.repository import Gtk according to the PyGTK3 wiki.
PyCharm complains saying Cannot find reference…
When an error/exception (such as a NameError because I typo'd a variable name) occurs in notification_filter -- the error/exception information doesn't appear to be propagated (or is caught silently).
A simple example:
import dbus
from…
Where can I find proper documentation on the Python objects Gtk, Gdk,... from gi.repository ?
I'm stuck with using dir() and it's of the utmost annoyance...
To sum it up: heelp!
(NOTE: the pygtk doc is too outdated, I'm using pygobject)