Questions tagged [pygi]
PyGI (Python GObject Introspection) is the replacement for PyGTK, compatible with GTK+3.x and the new GObject-Introspection technology.
11
questions with no upvoted or accepted answers
7
votes
1
answer
1k
views
What are the design guidelines for appindicator icons?
I am creating a Unity AppIndicator using Python + PyGObject, but I wish for it's icon to be in standard Ubuntu style. Where can I find appropriate guidelines for using colours (or is it just white/...
4
votes
0
answers
388
views
Appindicator Icon Animation
I'm writing a software using pygobject for GTK+3 (Ubuntu 12.04, stable repo package versions for all dev tools) and I'd like my application to have animated AppIndicator icon.
It's easy to make GLib....
2
votes
0
answers
244
views
Is using call_soon_threadsafe and GLib.idle_add together the correct way to safely call GTK code from asyncio, or is it overkill?
I have an application that runs in an asyncio event loop and I want to add a feature that interacts with my Gnome Shell, in particular sending a notification. Since GTK has its own (incompatible, I ...
2
votes
0
answers
1k
views
How to install pygobject in python virtual env
I've created a python virtual env and I want to intall gi into it. But it returns this error to me.
newtron@newtron:~/Documents/PythonProjects/PyQt/rasp-media$ ./bin/python3 -m pip install PyGObject
...
2
votes
0
answers
952
views
How to solve old GLIB error while installing "pygobject" using jhbuild
I am trying to install pygobject using jhbuild. And I am getting this error:
configure: error: Package requirements (glib-2.0 >= 2.48.0) were not met:
Requested 'glib-2.0 >= 2.48.0' but version ...
2
votes
0
answers
212
views
How can I dynamically add a widget that I can then fetch with a Gtk.Builder instance?
If I want to dynamically add a row to a vbox and populate it... I need a way to see if that row already exists. So the thought train is "Try to fetch the box with builder instance. If it fails, add ...
2
votes
0
answers
693
views
Why does Ubuntu's webkit inspector look (and work) just like Safari?
In older Ubuntu, the python-webkit inspector looked like Chrome, as you can see in these screenshots: https://stackoverflow.com/questions/13132459 (It had some annoying bugs, too.) I see Midori's ...
2
votes
1
answer
968
views
GObject (GTK3) TreeView: how can I activate row programmatically?
I've got a working TreeView with a ListStore as its model and selection set to SINGLE. How do I emit a signal to activate a specific row? I'm using PyGI.
(Sorry if this is basic; it's not in the ...
2
votes
0
answers
57
views
How should an OSD be coded with PyGI?
How is an OSD meant to be coded, using pygobject? Is it just an undecorated window that is application-paintable? Please provide all the details that you can (e.g. whether one has to use cairo, ...
1
vote
0
answers
121
views
Recommended way to check/fire alarm in Python (PyGI/PyGTK)
I am learning to develop an application by using Quickly (quickly create ubuntu-application). This application will stay in Application Indicator / Notification Bar and only work when a defined "alarm"...
1
vote
0
answers
64
views
How can I export a .ui file for a pygi window that I build dynamically?
I understand that building things with the MVC mindset is a good thing. I also understand that if you separate code maintenance and UI, that Glade UI files make it easier for non-programming people ...