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

2
votes
1answer
167 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
421 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
136 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
746 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 ...
0
votes
1answer
1k views

Pydev not found in ubuntu Software center

I installed eclipse and then wanted to install pydev plugin to execute python programs. But it gives an error "pydev not found at https://pydev.org/updates" . How can I overcome this? And is there ...
2
votes
1answer
887 views

How to get the default theme using python “Gtk” (not “gtk”)?

When writing a lens for Unity in python I got stuck at replacing "import gtk" with "from gi.repository import Gtk" because I can't find the equivalence for the funcion: gtk.icon_theme_get_default(). ...
0
votes
3answers
323 views

Quickly App Web application

After I submitted my app for the showdown I would like to know whether it would be possible to make a Webapp out of it. Is it possible with a desktop app created with Quickly/Glade/Python or is it ...
0
votes
2answers
2k views

How do I import OpenCV library into python 3.1?

OpenCV 2.1 was first installed when I had the original python 2.6 and this works fine. However after getting the Python 3.1, it has no module called 'cv' after trying to import OpenCV. How to add ...
0
votes
1answer
2k views

Load and show an image from the web in Python with Gtk 3?

I'm writing an app on Ubuntu 12.04 with Python and GTK 3. The problem I have is that I can't figure out how I should do to show a Gtk.Image in my app with an image file from the web. This is as far ...
2
votes
1answer
739 views

easy_install with different python

I'm trying to easily install packages to my newly installed Python3 on the latest Ubuntu release. At present it uses python2.7 be default, so all of my easy_installs will put the packages into /usr/...
2
votes
3answers
2k views

How can I enable Flash for a PyGtk WebKit?

I am trying to enable flash in my Quickly app. I have a WebKit/webview in a scrolledwindow. I know on Android you need to enable javascript an plugins. I have look in the WebKit2GTK+ Reference ...
2
votes
1answer
116 views

Needing guidance on making a simple daemon for unity notifications in a python app

I am making an app using pygtk, glade, and quickly and want to make a daemon that runs in the background to provide unity notifications for alarms and events. I would like to find a way to not require ...
1
vote
2answers
191 views

How can I help Ubuntu as a developer?

I am intermediate Java/Python/PHP developer, but I really would like to help build something for Ubuntu for free. How can I do that?
0
votes
1answer
383 views

Path missing when use as root

I'm running jsunpack.py, after installing all dependencies and setting the correct path, I decided to test it. I run it as python jsunpack.py test.htm and it works fine, now when I try to sudo it I ...
1
vote
1answer
89 views

Quickly: share, release and submitubuntu not working anymore [closed]

I have the problem that after applying the changes suggested from the ARB (modifying some debian/* and such files) the commands quickly {share,release,submitubuntu} oddly stopped working for me. ...
1
vote
4answers
9k views

Perform multiple statements in one line in Python 3.2.3

Is there a way to execute multiple statemens while performing them in one line, like this: import time print ("Ok, I know how to write programs in Python now.") time.sleep(0.5) print (".") # This ...
3
votes
2answers
95 views

Does Ubuntu One have a payment API?

Do Ubuntu One has an payment API, I can integrate in my ubuntu-app(python)? I would use it to add an easy donate dialog. So end user can choose an default monthly donate amount, and how many months ...
0
votes
1answer
3k views

apt package for 11.04 for Python 2.7.3?

I want to upgrade Python on my 11.04 server from Python 2.7.1 to Python 2.7.3. I assumed that if I did an apt-get install Python2.7 that 2.7.3 would have automatically been available and would have ...
6
votes
3answers
1k views

How to show a window of an already active app when trying to open a new instance of that app

I know the question is a bit vague. I'll try to explain better below: My app (python/gtk) is mostly an indicator. Using this indicator you can choose to show/hide the main window. When I try to open ...
4
votes
2answers
817 views

How does a Python DBus session service know the user is logging out?

Say you have a DBus service on the session bus (the per-user bus). Your service might get started via an /etc/xdg/autostart/* file, or it might get started the first time some app tries to use your ...
2
votes
1answer
3k views

add-apt-repository: Problem with the SSL CA cert

user@amd64:~$ sudo add-apt-repository ppa:jd-team/jdownloader [sudo] password for 1: Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 125, in <module> ppa_info =...
3
votes
1answer
411 views

Pinning ipython3 qtconlsole to launcher

I've installed both ipython (which uses Python 2.7) and ipython3, and the respective qtconsole packages. Both work when I call them from the terminal like ipython qtconsole. However, when I search for ...
4
votes
1answer
952 views

What is a good folder structure for multi-platform distribution of a Python application? [closed]

Sorry about the wall of text, but I am trying to provide a good background to my question. Actually, there are like a million questions here because I am utterly confused. I recently learned some ...
4
votes
1answer
5k views

How do I configure libfitbit?

To use Ubuntu to upload FitBit data you need libfitbit which is available as ppa now. However I couldn't find configuration instructions. I also wonder if cuttlefish could help to get the same ...
0
votes
1answer
916 views

Need identify path of my usb device

Have any usb device Bus 001 Device 002: ID 0c45:63e0 Microdia Sonix Integrated Webcam Bus 005 Device 004: ID 045e:0745 Microsoft Corp. Nano Transceiver v1.0 for Bluetooth Bus 005 Device 003: ID 04f2:...
1
vote
1answer
6k views

puImportError: No module named pyexpat

Whenever I try to launch 'hotot' I get this errors. This error also appears if i try something stupid in terminal along with "No Module named gdm" Error in sys.excepthook: Traceback (most recent ...
0
votes
1answer
106 views

quickly package --extras doesn't produce /opt/extras.ubuntu.com/../share/locale

I'm trying to package an app to /opt, but when installed the app won't run and complains: Traceback (most recent call last): File "/opt/extras.ubuntu.com/drawers/bin/drawers", line 45, in <module&...
1
vote
1answer
4k views

How can I check if Python´s ConfigParser has a section or not?

How can I check if the ConfigParser mainfile has a section or not, And if it don´t then add a new section to it? I am trying with this code: import ConfigParser config = ConfigParser.ConfigParser()...
0
votes
2answers
70 views

Path for source files

Where should I add source files for my program? I created a folder /data/src and put the files there. In my Python code I tried to point with os.getcwd() to it. This works for quickly run but if I ...
0
votes
1answer
65 views

Subscript in Glade

How can I format a text with subscript in Glade? I want to display a text with a formular such as H2O. Thanks
0
votes
1answer
196 views

Get position of launcher item in python

I'm writing an app where I want a small window to open next to its launcher item. I can have it open at the mouse position (which will be near the launcher), but that isn't very precise or satisfying. ...
0
votes
1answer
621 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 "bin/...
0
votes
1answer
124 views

How to use inputted text with quickly

I just need the code necessary to have my application assign the input from a text box to a variable after 'Enter' is pushed, and then use it to change a label. This is what I have for this problem: ...
0
votes
1answer
135 views

How to pipe html to gedit with format/spacing?

Is there a way to pipe html to gedit witout losing the spacing. I am trying with: echo "'+html5template+'" | gedit The output is like this: <!DOCTYPE html><html><head><title>...
1
vote
1answer
511 views

Python Gtk event ignore

I would like to ignore some key events in a text view, now i do the following def on_key_press_event(self,source,event): keyname = Gdk.keyval_name(event.keyval) if(keyname=="Return"): ...
1
vote
1answer
833 views

Quickly: Logging from Python application

Consider the following truncated source file (an empty Quickly application with unnecessary lines stripped): import logging logger = logging.getLogger('foobar') class FoobarWindow(Window): ...
1
vote
1answer
73 views

Howto watch Ubuntu One files (Cloud)?

Is there a library to add Ubuntu One files (cloud) monitoring facility into my app, e.g. to watch certain folder for the changes?
3
votes
2answers
16k views

How to use rsync from within a python script? [closed]

I plan to move file from one system to another system. For this, I am using rsync command in linux terminal. It works fine. But I need to implement this command to python. I am very new in python, so ...
2
votes
2answers
627 views

Quit application on Ctrl+C in Quickly framework

I found that when I run my application using "quickly run" and press Ctrl+c to kill it, the application does not quit. I am using Quickly 12.04. For GTK2 applications, I used def gtk_main_quit(self,...
1
vote
1answer
301 views

How to use “quickly run” and pass command-line arguments?

I'm trying to implement command-line arguments in https://launchpad.net/wakeonplan to use them in static quicklist but I can't test them because quickly run doesn't pass arguments to the script and ...
2
votes
2answers
160 views

To make or not to make…python-nautilus a dependency?

That is the question! Okay, all silliness aside, I really am forced to make a difficult decision here. My application is written in C++ and allows other scripts to invoke methods via XML-RPC. One ...
3
votes
2answers
152 views

Under the hood, what is Quickly made of?

under the hood, What is Quickly made of? It's a wrapper to python? It's a compiled language? It's portable? What about the architecture and the design?