Tagged Questions

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

1
vote
1answer
24 views

How to get filename from FileChooserButton in PyGTK?

I'm using Glade and PyGtk to develop an application. Currently I'm using a button under a toolbar to open files using this code: def on_openVideo_clicked(self, widget): dialog = ...
0
votes
0answers
16 views

How to add command-lines to PyGTK application to run after executing .deb file?

I've just made a small application written in PyGTK using Quickly. Inside the application there are some functions which needs some other packages to be installed. For example I need "mencoder" to ...
0
votes
1answer
1k views

Updating from 12.04 to 14.04 - Autolaunch error: X11 initialization failed

I'm attempting to upgrade my work machine from 12.04 to 14.04, but having issues. sudo update-manager -d: ** (update-manager:20416): WARNING **: Command line `dbus-launch ...
0
votes
0answers
19 views

Is it possible to upgrade the default gtk-3.4.2 on Precise to a later version?

Is it possible to upgrade the default gtk-3.4.2 on Precise to a later version? I need to use a program that requires GTK+ 3.6 as the minimum, but the GTK+ version installed is 3.4.2. Is it possible ...
0
votes
0answers
40 views

Multiple button clicked signals emitted for a single click

Writing a cut/copy/paste feature for a simple filebrowser in gtk. Every cut/copy button/paste click emits a progressively higher number of signals . Here is the part of the program that deals with ...
1
vote
1answer
65 views

how do I make a python program write directly to the command line?

This is the code I have, I want it so that I can write to the command-line from the window after I press the "SEND" button. If I want to see my "ifconfig" in the terminal, the command gets writen in ...
1
vote
1answer
653 views

How to get text buffer from file and loading into TextView using python and Gtk+3

I want to create an Ubuntu App that uses Gtk+3 and Python. However, I would like to know how I can get the text buffer from a file and load it into a TextView. Does anyone know how this can be done ...
0
votes
1answer
34 views

Cannot open application in Quickly

I'm creating web browser in Quickly. When I am running my application (quickly run) I have errors about gtk. Without the WebKit code it can run. Sorry about my english. Errors: ...
5
votes
1answer
1k 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 ...
0
votes
0answers
39 views

Installing JHBuild on UBuntu

I wish write GUI applications using PYGTK on my Ubuntu 13.10 which I installed recently. This is my first Linux OS so please be gentle with your jargon. I tried to import pygtk but couldn't because ...
1
vote
0answers
46 views

Recommended way to check/fire alarm in Python (PyGI/PyGTK)

I am learning to develop an application by using Quickly (quickly create ubuntu-application). This application will stay in Application Indicator / Notification Bar and only work when a defined ...
1
vote
1answer
184 views

Multi-threading in Gtk python [closed]

I'm trying to display a GUI and do some work in the background.when the window is current window, GUI runs normally. Long after minimizing the window, GUI will freeze. The following code is created ...
0
votes
0answers
76 views

WebKit WebView cause error

I try to write simple GUI application using Ubuntu Quickly and Python. So, I need to use WebKit in it and I write something like this: webview = WebKit.WebView() But this line in my code ruined ...
0
votes
1answer
491 views

Set Window Icon to Gtk Stock Icon in PyGtk

I am trying to add a Gtk stock icon to my window. Here is the code: #! /usr/bin/python from gi.repository import Gtk class MyWindow(Gtk.Window): def __init__(self): ...
0
votes
1answer
70 views

Is there a way to attach a pygame window to glade window in quickly?

I am trying to develop a game so that when i press a button which is created using glade window i should be able to run the pygame window i have succeeded so far but the pygame window opens separately ...
2
votes
1answer
51 views

PyGTK 2 GTK 2 alternative to STYLE_CLASS_PRIMARY_TOOLBAR

In GTK3 toolbar context style can be set to Gtk.STYLE_CLASS_PRIMARY_TOOLBAR to make it look native in Ubuntu, but in GTK2 there is no Toolbar.get_style_context() method and no ...
1
vote
1answer
364 views

Python unity indicator applet and glade child window exits at the same time

Since I don't have much reputation. The original question has been posted in stackoverflow and here is the link: Python unity indicator applet and glade child window I have created an unity ...
0
votes
1answer
58 views

What is the name of the icon for usb drives in Ubuntu?

I am developing a PyGtk application that I would like to display the image for a USB stick from the user's theme. However, I cannot seem to pin down the name of the icon, and Google is no help. ...
2
votes
1answer
2k 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
2answers
110 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
350 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 ...
1
vote
1answer
77 views

How can I bind Gio.Settings of TextBuffer or TextView?

I'm trying to bind a TextView to the key "text" by TextBuffer. I get the text, but this property is not recorded. widget = self.builder.get_object('textbuffer_text') settings.bind("text", widget, ...
1
vote
1answer
75 views

My program needs a other program

For my program i need android-tools-adb. How can i include this in my debian package? Or is there an other way to handle this problem? I remember that Rhythmbox asked you an question if you want to ...
2
votes
1answer
317 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 ...
0
votes
1answer
91 views

pygtk inline toolbar background

as in topic I need your help with inline toolbar for my app. I'll need this background bar to be expanded to the end of the widget while buttons remains on the left, as it is in keyboard layout ...
1
vote
1answer
132 views

How to use small icons in kupfer?

I don't like the large (128px) icons used in Kupfer, how can I configure it to use smaller icons? The theming documentation suggests it can be done. I've duplicated the built in customtheme.py ...
1
vote
1answer
147 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 ...
0
votes
1answer
346 views

jhbuild sanitycheck not moving

I am following Jhbuild documentation. while doing jhbuild sanitycheck I am getting following problem. root@august:/home/frank/jhbuild# jhbuild sanitycheck You should not run jhbuild as root. ...
3
votes
1answer
72 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 ...
1
vote
1answer
286 views

Is there a auto-complete tag like control for quickly/pygtk?

I am making a todo like application with indicator support using glade/python/pygtk/glade. I am making a form to save a Todo item. Each todo will belong to 0 or more projects. When a user enters a ...
0
votes
1answer
312 views

How extract strings from a .ui file (glade) with gettext?

I'm trying to extract the strings from this file: http://bazaar.launchpad.net/~gufw-developers/gui-ufw/gufw-13.04/view/head:/data/ui/add.ui Which is the command for it? This not works: ...
1
vote
2answers
807 views

'module' object has no attribute 'element_make_factory'

i have this code : import pygst import st, pygtk player_name = gst.element_make_factory("playbin", "Multimedia Player") player_name.set_property("uri", "../media/alert.mp3") ...
1
vote
1answer
4k views

Playing sounds in Python Quickly without any extra libs?

I was wondering is it possible to play sounds in Ubuntu using Quickly and Python without including any libs like pygame or pymedia or anything ? Just the stock packages that come with Python ? Thank ...
1
vote
3answers
80 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
1answer
278 views

how to create a pygtk status bar icon using quickly python

How can i add an icon to the status bar using python ? like the skype icon ? and is it possible to use the default notifications like those that appear when connecting or disconnecting to a wifi ? ...
1
vote
1answer
291 views

Installing Ubuntu One on Ubuntu 11.10 server

I have installed "Ubuntu One" on an Ubuntu server 11.10 based on these instructions: How do I configure Ubuntu one on a 11.10 server? Everything went smooth during installation. However when I try ...
1
vote
3answers
459 views

Which database to use for quickly and pygtk

I'm writing application using quickly Pygtk and glade. this application should have database connection (such as MySQL) for reading and writing data from the local or outsourcing machine \ server. ...
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 ...
2
votes
2answers
679 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 ...
0
votes
1answer
95 views

Problem serialising TextBuffer

While trying to follow the serialisation instructions from this answer I encountered a few problems. The following is supposed to serialise a TextArea's content to a string. The first two line ...
0
votes
1answer
71 views

Why is my Gtk.Notebook not fetching its label properly?

I am using this method to save a file: def save(self): file_data = ConfigParser.ConfigParser() subjects_number = self.subjects.get_n_pages() si = range(1, subjects_number) for sn in ...
0
votes
1answer
63 views

Use MongoDB and PyMongo inside an PyGTK app

I am abort to make an Python app with Quickly. The app need to store some data in an database, To this I am planing to use MongoDB. So my question is like this: How can I make the py-app to auto ...
1
vote
0answers
229 views

How to design non-windowed Gtk.Frame in Glade?

I'm building a ToDo app for personal purposes, and I'm using Quickly and Glade. I want it to display a list of the pending to-do elements. The problem I'm having is that I can't find the way to ...
0
votes
2answers
130 views

GTK Recent Chooser Menu callback not working

I am currently very puzzled why something so simple fails so hard: This is the source code for a very very simple recent chooser menu, but it fails. My output is this: Display name: ...
2
votes
1answer
114 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, ...
1
vote
2answers
1k views

Multi-threading in application designed in quickly

I have a tree which I populate with a file list from my computer on the click of a button. While the program is populating the tree the whole GUI hangs. Is there a way to populate the tree in another ...
2
votes
1answer
415 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 ...
1
vote
3answers
562 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! ...
0
votes
1answer
626 views

A GtkEntry signal emitting at focus change

I'm writing a very simple app using Glade and PyGtk. In the app, I need to collect user inputs and parse it as a conf file. In order to dump all the freetext user inputs to a StringIO, I am using the ...
0
votes
1answer
140 views

Problem with Gtk.Image

i am having a problem with a Gtk.Image. I use the set_from_file() function to add the image to the Gtk.Image but the image is not displayed! Instead the broken icon is... The image exist and i can ...