Cross-platform Python library for creating GTK+ graphical user interfaces using Python. PyGObject is intended to replace this with the introduction of GTK+3.

learn more… | top users | synonyms

4
votes
1answer
154 views

How do I make my apps windows get their own Unity launchers?

I'm writing an application that potentially uses quite a few windows. It would be nice if I could make at least some of those windows get their own Unity launcher entries. How do I do that?
16
votes
2answers
1k views

Developing Unity compliant apps in Python - where to start?

I'm an experienced programmer who is interested in developing apps for Linux, specifically GTK, and more specifically apps that are Unity compliant. Aside from the obvious step of learning Python, ...
6
votes
3answers
706 views

Where is the reference to the currently used icon theme stored?

There are several related questions, but I found none that really answered this detail: Where is the reference to the current icon theme stored? Since the icon theme can be changed, hence so too ...
4
votes
1answer
4k views

ImportError: No module named gtk

after the debacle a few hours back I managed to get a working desktop after using an ethernet cable and sudo apt-get install ubuntu-desktop But now when I try to run ubuntu software center from CLI ...
5
votes
2answers
1k views

Can glade be used with python pygi introspection?

I once got started on a PyGtk and Glade tutorial but never finished it. Recently I saw that PyGtk is being depreciated in favor of using introspection at ...
2
votes
2answers
517 views

PyGTK - events from gtk.Menu in Unity global menu

I have an GUI application written in PyGTK and need to read key-press/release events from application menu. For example, when pressing shift key and click on menu item, do something else, then ...
14
votes
1answer
711 views

How to enable overlay scrollbars in my app?

I'm testing my app in Natty 2nd beta, in which most applications are showing the new overlay scroolbars, I guess only non-native GTK apps can't show it (like LibreOffice or Firefox). My app is coded ...
4
votes
1answer
230 views

What causes critical glib errors (when coding using messaging menu)?

If I run the python code below (almost entirely from this useful blog post) then I get three identical nasty looking error messages in the terminal. What might be causing them? I note the number ...
3
votes
1answer
298 views

Why does my Messaging Menu code not work when split into functions?

Below are two python programs. They're exactly the same, except for one is split into two functions. However only the one that's split into two functions doesn't work - the second function doesn't ...
8
votes
2answers
1k views

How to add a pygtk Widget to the Glade palette?

Say I've created a gtk Widget like this: class AwesomeTextView (gtk.TextView): def set_font(self, font_description): self.modify_font(pango.FontDescription(font_description)) How can I ...
9
votes
2answers
686 views

How do I make a rich menu for an appindicator?

I'm adding menu items to an appindicator in pygtk. I don't want them to behave like ordinary menu items: I want them to have normal appearance, but not to respond to mouse hovers and mouse clicks. The ...
13
votes
1answer
2k views

Putting an arbitrary gtk.Widget into an appindicator.Indicator

Putting any gtk.Widget inside a gtk.Menu works, somewhat, by putting an empty gtk.MenuItem in first. It doesn't seem to be reliable - but it basically works. With an appindicator.Indicator, it doesn't ...