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
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. ...
0
votes
1answer
567 views

Get folder from file chooser button pygtk

i want to get the location of the folder that is selected by a filechooserbutton in pygtk... how can i do this? i connect the current folder changed signal from filechooser but the signal is emitted ...
0
votes
1answer
403 views

Quickly app not starting

I'm creating a web-browser named "Surf's Up!", and I have programmed the code and the interface, but when I try to run the app, an error message appears: Traceback (most recent call last): File ...
0
votes
1answer
178 views

Error when importing pynotify

When i add import pynotify and try to run my app i get /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion `g_type_from_name (name) == 0' ...
0
votes
2answers
2k views

Python - access variable in another class

I have 1 main window and 1 dialog. Now I need to access variable in main window from dialog. For example in java we have 2 classes: demo and myclass In my class I have following code: public ...
0
votes
1answer
162 views

How do I programatically edit label widget in the runtime

How do I programatically edit label widget in the runtime , I am using quickly I tried self.title=builder.get_object("title") for initialising and def update_Label(self,url): ...
0
votes
1answer
85 views

Remove a Custom Dialog Windows (PyGTK + Quickly)

Do Quickly have a remove dialog command? Like: quickly remove dialog <dialog-name>
4
votes
2answers
863 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 ...
1
vote
1answer
84 views

How can I open/show the default content-help-dialog with quickly?

If I create a Quickly-Project there is a default Menubar which shows the Help-Dialog(Contents - "index.page" from help/C - Folder). How can I manually show the Content-Help Dialog? There is no code in ...
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.
1
vote
1answer
139 views

Quickly add Scrolling to Window

while creating my ubuntu application, I wanted to add in several images and then allow the user to scroll through them. The problem I am having, is that it just cuts the image off, and there are no ...
0
votes
1answer
61 views

Quickly/Glade autoadjust text position

In Quickly/Glade, is it possible to keep the text (well, labels) centered, so when I maximize my program's window, the text stays centered? It's probably something easy to do, but I have been unable ...
4
votes
1answer
649 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?
0
votes
1answer
266 views

Webview load specific URL (Quickly/Glade)

I was watching the Ubuntu Developer video about creating your own browser using webkit, but I was wondering if it would be possible to make webkit load a specific website. For instance, if I was to ...
1
vote
1answer
181 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 ...
0
votes
1answer
180 views

Opening a Window within an already open window (Quickly/Glade)

I have a question regarding window and button implementation. If I have a toolbar set up, and I have a button on it, is it possible to get it to open a window right within the program? I mean like ...
0
votes
1answer
119 views

Opening 2 top level windows (quickly/pygtk)

Is there a way using quickly to have an appliaction have two completly seperate windows (not a window with a dialog) And be able to open each of the windows from each other and maybe even also from ...
3
votes
1answer
521 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 = ...
1
vote
1answer
167 views

Quickly message box

How to make message like this using Quickly
0
votes
1answer
375 views

How to hide a GTK window in Python before call or os.system

So, I'm depeloping a Python/GTK app which, after showing an assistant, it hides the assistant's window and runs an external app. The problem is that window.hide() doesn't works if, after the command, ...
0
votes
1answer
75 views

Quickly User Dialog error

I think there is an error in the Quickly tutorial. In the User Dialog section, the tutorial instructs users to enter: title = saver.title_text in the save dialog method. This gives some error which is ...
1
vote
1answer
136 views

how to keep the app indicator menu visible after clicks?

I have a specific need in which I want app indicator menu item to respond to mouse click but menu should not disappear, for example when I click play in music menu, menu does not disappear, can i also ...
7
votes
1answer
477 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 ...
2
votes
1answer
83 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
890 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 ...
3
votes
1answer
257 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 ...
4
votes
1answer
352 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
417 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 ...
1
vote
1answer
249 views

Display and edit text and images in a quickly app

I need to be able to display images and text (images resizable and text editable). I was thinking maybe a HTML type thing could do this. For a really bad example like how a word processor works. ...
5
votes
1answer
173 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 ...
1
vote
0answers
177 views

PyGTK/Quickly Add string to ListStore [closed]

I'm trying to build an application that will prompt the user for a string, and then add that string to a Scrolling Listview object using quickly and PyGTK. I've been following this tutorial: ...
2
votes
1answer
463 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
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 ...
3
votes
2answers
1k 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 ...
2
votes
2answers
945 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 ...
3
votes
2answers
135 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 ...
6
votes
1answer
737 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 ...
0
votes
2answers
439 views

Appindicator Theme Dependent Icons

I am developing PyGTK app with appindicator. I create my appindicator similar like in this example. In this example "indicator-messages" stock icon is used. So, I can: use stock icon (from existing ...
3
votes
1answer
799 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 ...
1
vote
2answers
810 views

Installing python-pygments, ImportError

I want tot use pygments in my python app. At first, I installed pygments like this: $sudo python setup.py install --prefix=/usr/local /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown ...
3
votes
1answer
363 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...
0
votes
1answer
440 views

Custom PyGTK dialog with Glade

I'm building simple PyGTK app using Glade UI designer. I followed pattern from default Ubuntu app, where preferences and about dialog are implemented extending gtk.Dialog, so I added new dialog with ...
1
vote
1answer
163 views

quickly run ERROR: run command failed Aborting

I have simple PyGTK app made with quickly. After syncing source files via Ubuntu One and running on other machine I got: $ quickly run Can't execute bin/myapp ERROR: run command failed Aborting ...
1
vote
1answer
588 views

PyGTK application example

I'm planing to write my first Ubuntu app. I'm new in Python and looking for good example, an open source app, just to pick the patterns and architecture. Is there any good example? It would be nice ...
1
vote
1answer
374 views

Playing WMV files and Asx files

I have a question about this page: http://developer.ubuntu.com/resources/tutorials/all/diy-media-player-with-pygtk/ My question is about setting supported video and audio types? Do I have to have ...
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 ...
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: ...
4
votes
1answer
568 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 ...
13
votes
2answers
612 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 ...
9
votes
2answers
639 views

Does Quickly support GTK3?

Simple question: can Quickly use GTK2 only or also GTK3 for GUI?