Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.

learn more… | top users | synonyms

1
vote
1answer
270 views

Pastie is broken for Ubuntu 11.04

I had pastie working for the longest time on Ubuntu 11.04, working great, I love the little bugger :) I still have it working on my laptop (same system). Recently I ran upgrade on all packages in my ...
5
votes
2answers
1k views

How do I detect when my system wakes up from suspend via DBus or similar in a python app?

In a background Python script I need to detect, when the system just woke up from suspend. What is a good way that does not rely on a root script but rather on python modules such as DBus? I'm new to ...
0
votes
1answer
88 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 ...
2
votes
1answer
490 views

How to access parent window in dialog

I am using Quickly and created the main window and a dialog. In the main window I am setting access to database (u1db) in the finish_initializing method (self.db=...). After an action I open a dialog ...
3
votes
4answers
2k views

Is there any way to make a windows version of my python/gtk3 apps?

I've recently been doing quite a bit of coding using quickly and GTK 3. Its great and i'm happy with some of the results, but now i'd like to share my apps with people running windows or mac. Is there ...
12
votes
2answers
11k views

Install uwsgi 1.2.5 via pip

Welcome, Currently I'm trying to install latest uwsgi on my VPS (Ubuntu 11.10) based on instruction from the site http://projects.unbit.it/uwsgi/wiki/Quickstart pip install uwsgi During ...
1
vote
1answer
831 views

Fade out Label / Button / Status Bar with GTK

What is the easiest way to fade out and fade in elements in Python / GTK 3? Coming from webdevelopment, my initial take on this problem was to call c = widget.get_style_context(), c.remove_class('...
4
votes
2answers
873 views

Unable to set background image using python (2.7.3), bash and gnome3

#!/usr/bin/env python import os bashCommand = "gsettings set org.gnome.desktop.background picture-uri file:///home/malon/autowallpaperchanger/" + pic_name print bashCommand os.system(bashCommand) ...
1
vote
2answers
93 views

Why OpenDialog.py don't work on Jotty application

I'm a Python beginner, I installed quickly, I wrote a "quickly tutorial" in terminal and I did all the steps before at: "However, the application is not complete. There are a few things left for you ...
5
votes
2answers
3k views

Run python script IN TERMINAL after Lubuntu login?

I've spent the night trying to figure out how to run a python script in a terminal at startup. Adding it to init.d will run the script, but I don't see a terminal window or any other indication the ...
2
votes
1answer
852 views

“/usr/bin/python” missing after installing Python 3.0

OS version:Ubuntu 12.04 LTS Hey all, I recently started programming in python, so I went to download python 3.0, and it appears I have ruined all python files on my installation, whenever I try to ...
1
vote
2answers
2k 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 ...
6
votes
2answers
805 views

How to run a Python script for a specific user log in?

I have written a python script and would like that to run for a specific user log in. The script has two images, one with the Windows logo and the other for Linux. When the Windows logo is clicked ...
0
votes
2answers
192 views

Customizing 12.04 from terminal

I recently read a blog post on customizing Ubuntu 9.04 (I believe) via the terminal. It explained how to download all the Linux base packages and create a Linux distro inside of a directory and then ...
2
votes
1answer
289 views

How to make work Indicator-Chars app?

I downloaded Indicator-Char and unzipped the files. I added the characters there I wanted perfectly. When I run the python script it loads the daemon and I can see this characters. But the problem is ...
3
votes
2answers
914 views

How to show an application icon in the notification bubble?

I'm trying to integrate my app with Ubuntu notification system. It works ok, but I don't know how to show my icon in the bubble. My code looks something like: notification = Notify.Notification.new ("...
1
vote
1answer
185 views

Changing the Editor PIDA IDE uses

I recently tried the PIDA IDE, and when starting up I selected vim, I now want to use emacs, but there is no option so I tried reinstalling, purging and nothing has worked... How can I change the ...
0
votes
1answer
25 views

error log for papercut crash

it looks like papercut is causing some problems after an upgrade: Where is this log located?
1
vote
2answers
289 views

I wrote a Python/QT app that downloads files. How can I stop it from 'greying out' after few seconds?

Here's the gist. The application is still running and the progress bar will still move, but the window will grey out and if I click the X to close it, a popup shows up and says "The window X is not ...
0
votes
1answer
575 views

How to combine quickly and my python program?

Firstly, I'm not sure if I'm allowed to ask this question. I'll delete it if it's not welcome. I'm after some guidance on how to start programming. Perhaps I need to start somewhere else, but I'm ...
1
vote
2answers
67 views

How to display a “What's new” dialog on every new version of my app

I'd like to be able to present a dialog that runs at the start of my application and shows the new features this new version implements. This dialog should only run once, and not be showed again ...
1
vote
1answer
2k views

Installing pygame for python3.2

I am installing pygame for Python3.2 because I want to do all the examples shown in a book, but on Ubuntu 12.04 I only have pygame for python version 2.7. But that is not as good as I want it. So I ...
7
votes
2answers
15k views

How do I run a Python script in the background and restart it after a crash?

I have a very simple Python script that I'd like to be always running on my Ubuntu 12.04 server. I thought of using upstart + monit. The problem is that those tools seem rather complicated for a ...
0
votes
2answers
55 views

Integration of manually locally installed libs into system?

I have manually built numpy, scipy, matplotlib etc - without root privilages. Now when I'm trying to install anything related - synaptic suggest me to install all the libs system wide. Is there a way ...
2
votes
2answers
624 views

How to change button icon when button clicked, python quickly

I'm trying to implement hide function in my application. What I want is to have this little arrow ">" when is hide and "V" when is visible. I know how to make it so its hides and shows but I need that ...
6
votes
1answer
2k views

How can I get python stack trace information using GDB?

I am using GDB to debug a segmentation fault in my python application on Kubuntu 12.04. Supposedly GDB version 7 has built-in macros for extracting information about the python stack (http://docs....
2
votes
1answer
669 views

Installing Swampy module onto Python

I need to install a package for my Python interpretor. It is called swampy and you can get info from the web page - http://www.greenteapress.com/thinkpython/swampy/install.html I am a novice so if ...
1
vote
2answers
780 views

Error accessing Gio.Gsettings on application made in quickly

I am trying to develop an application using the quickly/pygtk stack. I got my Gsettings schemas all set up in ~/app-name-here/data/glib-2.0/schemas/net.launchpad.app-name-here.gschema.xml correctly ...
5
votes
2answers
236 views

How to rename an application while developing with Quickly

I've been developing an application using PyGI and Quickly, and I now need to rename it. Is there any quick way to change all of the app name references in a Quickly application, or will I just need ...
2
votes
1answer
9k views

Can't decompress data; zlib not available

I already have Python2.7 but due to certain reasons I need to install Python2.4. So, I installed python2.4 and when I run ez_setup.py with Python2.4/python ez_setup.py, I got the error that says ...
0
votes
2answers
421 views

Apply primary-toolbar background behind GtkEntry widget with GTK3

In PyGI (GTK3), how can I make a GtkEntry widget appear against the same background applied (by the user's theme) to the primary toolbar. I tried adding the same style class like this: entry....
1
vote
1answer
63 views

Skip run confirmation

When I run a script via GUI, e.g. in Python, I get dialog asking me to confirm that I want to run it or display it. Is there a way i can set this not to happen, and to run it straight from click?
26
votes
4answers
69k views

How do I detect and remove Python packages installed via pip?

I have accidently installed Python packages to my system using pip instead of apt-get. I did this in two ways: using an older version of virtualenv, I forgot to append --no-site-packages when ...
2
votes
1answer
570 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 ...
8
votes
3answers
6k views

How do I install IronPython?

I tried installing Ironpython on ubuntu 12.04 using the guide here: IronPython on Mono But it doesn't seem to work. I have no Solutions/IronPython.Mono.sln, so i try to xbuild Solutions/IronPython.sln ...
4
votes
1answer
295 views

PyGObject: Gio.File.copy_async() doesn't exist in Ubuntu 12.04

According to GIO Reference Manual Gio.File has a methode copy_async. In Ubuntu 12.04 I'm getting an AttributeError when I try to call this method. What should I use instead to for asynchronous ...
-2
votes
1answer
522 views

rsync password problem

I have a python script. In that, I am using rsync for data transfer between two systems. While running, it ask for password for data transfer. So that I create a password-less run by the below command....
1
vote
2answers
261 views

Error while making a .deb package with Quickly: setup.py install_egg_info failed

I wrote a little program and now I trying to make a .deb package out of it. When I run quickly --verbose package I get this: quickly --verbose package /usr/lib/python2.7/dist-packages/gobject/...
2
votes
1answer
168 views

How to install apt packages?

I'm running Ubuntu 11.04 machine. I had accidentally removed Python2.7.2 which I've sorted now, GUI is running and all other commands like easy_install, pip are working. But when I type any apt ...
1
vote
2answers
1k views

Installing audio libaries for pymedia

I am building pymrdia from a tarball, but when i install i get: Using UNIX configuration... OGG : not found VORBIS : not found FAAD : not found MP3LAME : not found ...
1
vote
1answer
422 views

Using Quickly to develop apps for Raspberry Pi?

Can Raspberry Pi apps be developed with Quickly on Ubuntu? I know there isn't Ubuntu for the Pi yet but what I want to do is develop the app on my Ubuntu machine, compile it and copy the deb file to ...
0
votes
1answer
3k views

How to select or deselect radio button in python / glade

As in topic, how can I select or deselect radio buttons in python. The application is made by quickly. any help pleas ?
3
votes
1answer
3k views

How can I add cut/copy/paste functionality to my application?

I'm developing an Electoral Calculator (https://launchpad.net/electoralcalculator) using Python 2.7, Gtk+3 and Glade and I want to add cut/copy/paste functionality to my application. I want to give ...
2
votes
1answer
137 views

Application Development - basic how to questions

After the Ubuntu app showdown is over, I would like to bring some of my tools programmed for Windows in the Software center. Since I'm new into programming for Linux I still have some questions: 1) I ...
0
votes
1answer
148 views

Glade radio buttons save state

I'm writing small application where I have preferences and in preferences I have radio buttons... I managed to get signals out from them but the only problem I got is saving state of them. As this is ...
0
votes
1answer
762 views

Python Popen Image Viewer

Using a Python script, I want to be able to open an image and close it on ubuntu. Looking at the answer here: http://stackoverflow.com/questions/6725099/how-can-i-close-an-image-shown-to-the-user-...
2
votes
0answers
764 views

How to refresh unity launcher icons from python

I have written a program that runs from the unity launcher. In my preferences it would be useful for users to change the default icon of the .desktop launcher. I've set it up to change the file, but ...
1
vote
1answer
163 views

window creation issue Python Gtk via Quickly

I'm currently learning python and GTK so please forgive the noobish question, I have a program (created in quickly) that has two main windows, that is to say that depending on context one or the ...
1
vote
1answer
2k views

Virtual Packages ; offline installation problem

I have a problem with offline installation of a package. For instance; python-qt4 module requires sip-api-8.1 but it is a virtual package, hence there is no .deb file to install. How can I fix this ...
5
votes
2answers
135 views

How to work with processes?

I have seen similar questions here, but I didn't get my answer. Maybe it's because I am new to all this and just don't understand. I want my app to work mostly as an indicator. And if user would start ...