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

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, ...
14
votes
1answer
704 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 ...
13
votes
2answers
577 views

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 ...
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 ...
9
votes
2answers
652 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 ...
9
votes
3answers
1k views

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 ...
9
votes
2answers
628 views

Does Quickly support GTK3?

Simple question: can Quickly use GTK2 only or also GTK3 for GUI?
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 ...
7
votes
1answer
446 views

How do I add a Notebook to a Box in a VBox?

I have created an empty box in Glade to add a Notebook to. The reason I am not adding the actual Notebook in Glade is because I hear that you cannot add pages to a Notebook made in Glade. So, in ...
6
votes
1answer
701 views

PyGTK Application Icon Blurred in Unity

I have 128x128 icon referenced in main window glade file like <property name="icon">../media/my-icon.svg</property>. I tried, with both svg and png, but it is always very blurred in ...
6
votes
3answers
660 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 ...
5
votes
2answers
1k views

Porting “import gobject” to use GObject-Introspection. (PyGTK to PyGI and GTK 3)

I've been trying to port a library from PyGTK to use GI and GTK3. The problem is I can't find any resources specific to the gobject imports, but only for GTK. I was hoping that if someone would ...
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 ...
5
votes
1answer
167 views

Opening files with quickly's PyGTK

I have already added the listeners and etc, but I can't get the actual open dialog code to work. I think it is something to do with the difference between gtk and Gtk but I literally just started ...
4
votes
1answer
567 views

Will pygobject for Python 3 be included in 11.10?

Will pygobject of Python 3 be included with Ubuntu 11.10? I am interested in using the new features provided with GTK3 with Python 3 but I have been unable due to the complexity involved with getting ...
4
votes
1answer
2k views

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. ...
4
votes
2answers
801 views

Creating widgets using GtkBuilder

I am using Glade to design a Box with widgets and then load these widgets into my UI at run-time. To create each Box with widgets at run-time, I create a new GtkBuilder, call add_from_string passing ...
4
votes
1answer
336 views

Quickly Application making it run on startup

I have a PyGtk application that I made using Quickly, and I would like to have it run on startup when installed. How would I go about doing this? I'm not sure if sticking the .desktop file in ...
4
votes
2answers
392 views

How to add sub menus in appindicators?

I am using this code to try to add submenus in appindicator #!/usr/bin/env python import gobject import gtk import appindicator def clean_quit(w): print "in quit" gtk.main_quit() if ...
4
votes
1answer
153 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?
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 ...
4
votes
1answer
542 views

How to apply gradient background to GtkWidget in GTK3?

Is it possible to use gradient as a background for generic GtkWidget? Related question: How to change GtkWidget background in GTK3?
4
votes
1answer
218 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
466 views

PyGTK: Opening Links in Default Web Browser

Is there a way to create a Gtk.Button("http://www.google.com"), when clicked will open the system default Web Browser using the label as the URL? What I could do is... import os button = ...
3
votes
1answer
232 views

Can't add page in a notebook

I am having some trouble adding a page to a Notebook widget. The error I get is this: AttributeError: 'function' object has no attribute 'append_page' I assume this means the object pages in the ...
3
votes
2answers
971 views

Problems with simple media player tutorial [duplicate]

Possible Duplicate: Facing problem with “gtk.RESPONSE_OK” in the simple-player quickly tutorial I'm following along with this tutorial, but came to a stopping point where the program has an ...
3
votes
1answer
328 views

gDevilspie fails to launch, what to do?

When launched from terminal: ---:~$ gdevilspie pyGTK is not correctly installed, exiting. Installed in 11.10 Using Ubuntu Software Center...
3
votes
1answer
59 views

Icon name for unlocked keyring

I am working on a program and I want to implement icon denoting keyring state. If you start seahorse you'll see it has the same icon of padlock in two states, locked and unlocked. I am unable to find ...
3
votes
1answer
731 views

Appindicator best practices in PyGTK apps

I have problem adding appindicator to my PyGTK app. When I place this into my init.py, before gtk.main(), it works, but when I put it in my main window finish_initializing() method, it does not get ...
3
votes
1answer
296 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 ...
3
votes
2answers
133 views

Help building pygtk application

This is my application. It is created with quickly. I would like to package it for Ubuntu now. I tried to package it with uickly, but that failed. At first, I was trying to install it using ...
2
votes
2answers
897 views

Open Custom Dialog Windows (PyGTK + Quickly)

I have just downloaded Quickly, created a new project, set up simple GUI and created new dialog (quickly add dialog create (as you can see, I called it create)). I already have click handler in the ...
2
votes
2answers
88 views

Thread works only on gui events - pygtk

I am developing a multithreaded application in pygtk using quickly and stuck with threads. So I am experimenting with various possibilities and found out that my thread work only when I do something ...
2
votes
1answer
668 views

In development based on Quickly, why do codes start with “from gi.repository import Gtk”?

I am developing apps in Quickly. Default codes start with from gi.repository import Gtk. Why is it so and not simply import gtk for example? The point is, a lot of tutorials, documentation and forums ...
2
votes
1answer
252 views

PyGTK changing theme for popup menu

I spent few hours searching on google and I gave up now... I need to change background for popup menu in my app. It set to whatever system default theme is... and I need this to be set to Radiance ...
2
votes
1answer
789 views

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 ...
2
votes
1answer
50 views

How do I make an amd64 version of my application?

I am here because I am able to successfully upload the i386 build of my program to launchpad, but I have no idea how to create a native 64-bit application. Your help would be greatly appreciated.
2
votes
1answer
1k views

running gnome-terminal with no window border on startup in xubuntu 12.10

I created a script to launch a session of gnome-terminal when I log into xubuntu. I specifically wanted it in a specific position on the window, and with no window borders (surprisingly, there's no ...
2
votes
1answer
214 views

PyGTK TextBuffer adding Tags and reading text

As in topic I have TextView() and TextBuffer() added to it, I also have Tags created so when I select text and click button it will make text BOLD or something. Up to this point all works well, now I ...
2
votes
1answer
81 views

Why changing signals causes NameErrors in a sane code? - PyGtk issue

I'm working on a very simple app for Ubuntu. I've asked a question on stackoverflow, and it seems that the issue I am having is caused by signals, not by the scope of variables, as I originally ...
2
votes
1answer
194 views

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 ...
2
votes
1answer
351 views

Can I execute an application built with Quickly (python - pygtk) on MS Windows?

I am working with QUICKLY, using Python and PyGtk. I know there is an option for packaging; so I can create a .DEB file. This is for Ubuntu. I was reading about PyGTK and it seems that PyGtk runs on ...
2
votes
1answer
400 views

Changing TextView font in PyGTK

I have TextView widget in Glade named "formula-view". I'm trying to do this to change font: formulaView = self.builder.get_object("formula-view") fontdesc = pango.FontDescription('Ubuntu 16') ...
2
votes
2answers
509 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 ...
2
votes
1answer
520 views

Dynamicly add or remove items from list and tree in pygtk and quickly (glade)

I'm trying to make some mini CRM application in python using gtk(pygtk), glade and started to develop it using quickly(which is awesome). I'm created some dialogs and added listview to the GUI using ...
2
votes
1answer
85 views

How does one connect to a GTK signal with a dash inside it while using Quickly?

I'm currently writing an app with Quickly where I want to connect to the "preedit-changed" signal of an entry box. While with signals like clicked where you can write a function on_button1_clicked, ...
2
votes
0answers
80 views

How do I use this Add/remove widget? [duplicate]

Possible Duplicate: What GTK widget is this? How do I add this little add/remove GTK widget in Glade Designer 3.12.1? I don't see it anywhere in the widget bar. If it can't be done using ...
2
votes
0answers
73 views

How do I get the new toolbar style in my pygtk app? [duplicate]

Possible Duplicate: What is the black header widget in some programs? I've noticed that I still have the old school gnome2 GtkToolbar style when I just run a simple glade/gtk application: ...
1
vote
3answers
75 views

how to kill an app started by `quickly run`

I am building an app and it hangs on some thread . how can i kill that app ? tried ctrl+c but it didn't work (the icon stays in the notification area) thanks
1
vote
3answers
356 views

Pygtk dialog and return id/info

i am writing an app with quickly-pygtk-glade and i want to show a dialog and get the return id...I used the run() method but if a close the dialog and reopen it i get an empty window and some errors! ...