Questions tagged [pygtk]

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

PyGTK is a cross-platform Python library for creating GTK+ graphical user interfaces using Python. It is licensed under the LGPL. The official page can be found at http://www.pygtk.org/.

PyGObject is intended to replace this with the introduction of GTK+3. PyGObject's page is located here.

135 questions
20
votes
2 answers

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 work. The entry just stays empty. Even if you…
18
votes
2 answers

How does one install pygobject from the official repository?

I want to install the Pygobject package on my Ubuntu 13.10. I tried the JHBuild option but I got stuck at the end of a very lengthy process. The tutorial website of Pygobject says that it comes packaged with all its dependencies for nearly all…
16
votes
2 answers

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, what's the best way to learn things like: How to…
14
votes
1 answer

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 using Python and pygtk so I thought the overlay…
13
votes
2 answers

What are the conceptual and technical differences between "Apps" and packages?

I'm a bit confused by the recent announcement (http://developer.ubuntu.com/2011/09/announcing-the-ubuntu-app-developer-site/) of the new "App" developer site. I've fallen out of Ubuntu development and now only follow news stories to gauge the…
12
votes
1 answer

pygtk not available on Focal Fossa (20.04)?

tl;dr I cannot install pygtk on Focal Fossa (Ubuntu 20.04) anymore but need it for my self-written PyGTK-based Python application. I wrote a Python2 application some years ago based on GTK using the pygtk package. This worked fine for years now, I…
Alfe
  • 256
11
votes
3 answers

Custom session: Window does not capture full screen area by default. 12.04

I am trying to create a custom session by creating a custom.desktop file in /usr/share/xesessions folder. Remember this is not a gnome or some other session. I have created my own application for this session, which are simple. Case 1 Chrome…
Juzer Ali
  • 377
  • 4
  • 14
11
votes
1 answer

How can I build vim with a gui without gtk?

I've recently started playing around with pygobject. However, gvim or vim's python-complete feature crashes, because, as I understand, you cannot mix GTK2 and GTK3 libraries in the same process. Therefore, I'd like to know how to install Vim with a…
martin
  • 1,809
  • 1
  • 13
  • 21
10
votes
2 answers

Does Quickly support GTK3?

Simple question: can Quickly use GTK2 only or also GTK3 for GUI?
burli
  • 2,557
10
votes
1 answer

ImportError: No module named pygtk

I installed the deb files of Fpdb (a poker analysis tool); and i downloaded the program. The problem is that when i try to run it from the terminal i get this: "ImportError: No module named pygtk "; I tried to re install and update pygtk but i can't…
charlizard
  • 111
  • 1
  • 1
  • 3
10
votes
2 answers

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 way I imagine the new sound menu will behave. In…
Erigami
  • 4,536
9
votes
1 answer

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 this is what I get rick@Abigail:~$ sudo…
Rick_2047
  • 373
9
votes
3 answers

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 add my new widget to the palette in the Glade…
9
votes
1 answer

Why can't I define the size of a Gtk.Entry embedded in a Gtk.Toolbar?

I have embedded a Gtk.Entry box into a Gtk.Toolbar, however changing the requested width of practically anything (i.e. the Gtk.ToolItem that contains the Gtk.Entry and the Gtk.Entry itself) doesn't change the size of the Gtk.Entry. What is that I'm…
Phoenix87
  • 606
7
votes
3 answers

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 the path to its folder, it must be stored somewhere.…
neydroydrec
  • 4,780
1
2 3
8 9