Cross-platform Python library for creating GTK+ graphical user interfaces using Python. PyGObject is intended to replace this with the introduction of GTK+3.
15
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
654 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
539 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
524 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 ...
8
votes
2answers
586 views
7
votes
2answers
727 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 ...
6
votes
3answers
452 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 ...
6
votes
1answer
509 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
623 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 ...
5
votes
1answer
326 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 ...
5
votes
1answer
133 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
2answers
789 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 ...
4
votes
2answers
910 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 ...
4
votes
1answer
528 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
2answers
585 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
279 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
273 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
147 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
2k 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
179 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
288 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
159 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
723 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
185 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
36 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
263 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
1answer
236 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?
3
votes
2answers
121 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 ...
3
votes
0answers
65 views
How do I provide arguments to mapped methods in quickly preferences dialog?
I'm using quickly on 11.04 and I'm trying to add a textbuffer object to the preferences dialog so that its contents is updated automatically to the couchdb. So in __init__.py I changed the dictionary ...
2
votes
2answers
47 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
83 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
126 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
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
70 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
393 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.
...
2
votes
1answer
70 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
137 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
237 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
1answer
542 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 ...
2
votes
2answers
461 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
288 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
43 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
79 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
62 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
2answers
651 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 ...
1
vote
3answers
190 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! ...
1
vote
1answer
101 views
Quickly/Glade linking a button to notebook page
Hey everyone (boy I seem to be posting quite a bit), I have a question regarding Glade and Quickly. Is it possible to map a button to a notebook within the same program. Like say for instance I have a ...
1
vote
1answer
79 views
Upgrade Webkit PyGTK Libraries
I'm developing a PyGTK-HTML5 Application (Using Quickly), but the webkit libraries (WebView) are a bit old, at least for using some of the latest HTML5 APIs (like IndexedDB) is it possible to upgrade ...