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.

Filter by
Sorted by
Tagged with
4 votes
1 answer
534 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 ~/....
unknownone's user avatar
6 votes
2 answers
1k 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 ...
Parimal N's user avatar
  • 493
2 votes
1 answer
1k 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. ...
njallam's user avatar
  • 2,994
5 votes
1 answer
287 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 ...
njallam's user avatar
  • 2,994
4 votes
1 answer
2k 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') ...
Valery Tolstov's user avatar
2 votes
0 answers
81 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 the ...
RobinJ's user avatar
  • 8,920
3 votes
2 answers
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 issue ...
linucksrox's user avatar
2 votes
2 answers
2k 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 ...
Pijusn's user avatar
  • 318
3 votes
2 answers
188 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 setup....
umpirsky's user avatar
  • 4,060
6 votes
1 answer
1k 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 ...
umpirsky's user avatar
  • 4,060
1 vote
2 answers
849 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 ...
umpirsky's user avatar
  • 4,060
3 votes
1 answer
1k 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 ...
umpirsky's user avatar
  • 4,060
3 votes
2 answers
3k 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 ...
umpirsky's user avatar
  • 4,060
3 votes
1 answer
718 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...
keepitsimpleengineer's user avatar
0 votes
1 answer
1k 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 ...
umpirsky's user avatar
  • 4,060
1 vote
1 answer
215 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 ...
umpirsky's user avatar
  • 4,060
1 vote
1 answer
1k 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 ...
umpirsky's user avatar
  • 4,060
1 vote
1 answer
528 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 ...
ekuemoah's user avatar
5 votes
2 answers
2k 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 ...
Jo-Erlend Schinstad's user avatar
2 votes
0 answers
80 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: It ...
Stefano Palazzo's user avatar
4 votes
1 answer
592 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 ...
AJ00200's user avatar
  • 410
13 votes
2 answers
1k 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 ...
perden's user avatar
  • 233
10 votes
2 answers
748 views

Does Quickly support GTK3?

Simple question: can Quickly use GTK2 only or also GTK3 for GUI?
burli's user avatar
  • 2,557
4 votes
1 answer
164 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?
Jo-Erlend Schinstad's user avatar
16 votes
2 answers
2k 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, ...
CaptSaltyJack's user avatar
7 votes
3 answers
2k 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 ...
neydroydrec's user avatar
  • 4,620
9 votes
1 answer
48k 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 ...
Rick_2047's user avatar
  • 373
5 votes
2 answers
2k 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 https://wiki.ubuntu.com/MeetingLogs/...
Azendale's user avatar
  • 11.9k
2 votes
2 answers
694 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 ...
GdH's user avatar
  • 31
14 votes
1 answer
888 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 ...
Htechno's user avatar
  • 241
4 votes
1 answer
439 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 (...
8128's user avatar
  • 28.7k
4 votes
1 answer
348 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 ...
8128's user avatar
  • 28.7k
9 votes
3 answers
3k 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 ...
Stefano Palazzo's user avatar
10 votes
2 answers
1k 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 ...
Erigami's user avatar
  • 4,476
19 votes
2 answers
4k 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 ...
Stefano Palazzo's user avatar

1 2
3