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

0
votes
1answer
106 views

How do I fix error building package on ppa, uses tweepy/quickly

I'm building an application that uses tweepy (a python library) and when I build it on my local machine it works fine. When I submit it to launchpad though, it sent me a log which has this error: ...
4
votes
2answers
2k views

Will matplotlib 1.2 be in 12.04 or 12.10?

I found Windows installers for Matplotlib 1.2 for Python3 at this site: http://www.lfd.uci.edu/~gohlke/pythonlibs/ When will I be able to install matplotlib for python3 in Ubuntu from repositories? ...
0
votes
1answer
467 views

Embedding a back and forward arrows, home button, and download manager in a quickly application

I have downloaded a set of icons to use for my web browser that I'm creating and would like to use. I know how to add the icons, but I only know the code for the refresh button. My question is what is ...
3
votes
0answers
157 views

“Python module helpers not found” error when using Quickly [duplicate]

Possible Duplicate: Quickly packaging errors I am here asking why quickly is displaying this: ERROR: Python module helpers not found ---------------------------------- Do you want to ...
0
votes
1answer
302 views

WebKit.WebView - wrap content

Currently, I have my WebKit.WebView in a ScrolledWindow, because otherwise my window would resize to fir the content. In stead, I would like the content to adjust to the container. So text should ...
5
votes
1answer
1k views

How do I force a redraw using python in gtk3?

Apparently, in Gtk3 the 'expose' event/signal is replaced with the 'draw' signal. How do I force a redraw using python in Gtk3? I was not able to find any window invalidation function.
0
votes
1answer
156 views

Problem with 'insert_at_cursor' attribute

I made something, so after clicking a button, some text should appear in the TextView. Part of my code: def on_button1_clicked(self, builer): self.writetest = ...
1
vote
0answers
51 views

How to add a daemon to a quickly project [duplicate]

Possible Duplicate: How do I add a daemon to my Quickly application? Currently I'm developing an application with quickly which is divided in two parts: A graphical UI where the user ...
3
votes
1answer
4k views

How to draw on mouse click in Gtk.DrawingArea using pygi

I am writing a small application using PyGI which will interactively draw a line on a Gtk.DrawingArea between mouse clicks. But I am unable to figure out how to draw using the cairo context at the ...
2
votes
1answer
7k views

How to change GtkWidget background in GTK3?

I'm trying to use override_background_color on some GTK3 widgets but they still showing up with the default background color.
1
vote
1answer
155 views

How do I use the Unity methods in Quickly's python code?

How do I use the Unity methods in Quickly's python code. All I want is an example of a few methods, like quicklists, notifications, indicators, etc.
3
votes
1answer
180 views

Ambiance theme text stays black -

I have used Jono Bacons creating your first ubuntu application to discover how to theme toolbars using the ubuntu theme. I followed the exact same code and the program loads with a black toolbar, ...
10
votes
4answers
468 views

How do I add a daemon to my Quickly application?

I am building a app with quickly, and I wanted to add a daemon that will run in the background. How do you do this?
2
votes
1answer
85 views

python3 can participate to Ubuntu app showdown?

my application works only with python3 and it use QT, can I participate to Ubuntu Application showdown? Right now I don't know how to create the package... Quickly doesn't work with python3
0
votes
1answer
11k views

How to convert the time.time() to normal datetime format in linux? [closed]

I can convert the current date and time in seconds by using time.time() like now = datetime.datetime.now() now = time.time() print("the now time is") + str(now) Output the now time is ...
0
votes
1answer
2k views

Glade Widget Color

I start to get familiar with glade and quickly but one thing I can't figure out. How can I set colors, e.g. background colors or label font colors? Can I do this in Glade or do I have to do it in ...
1
vote
1answer
3k views

How do I remove the Python 2.7 I installed and roll back to 2.6?

by a series of errors, Python 2.7 was installed over 2.6 within Ubuntu 10.04. Both appear to be working, however many things are not (yolk, freenx, easy_install, pip, etc). I believe the issue is ...
0
votes
1answer
153 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 ...
2
votes
2answers
182 views

Why does GtkCalendar counts months from 0?

So I spent several hours in rage, figuring out why isn't my code writing to the /sys/class/rtc/rtc0/wakealarm correctly. The problem is that it doesn't return anything if the value is wrong. And ...
28
votes
7answers
117k views

How do I install python imaging library (PIL)?

How do I install the python imaging library (PIL) on Ubuntu? I tried doing sudo apt-get install python-imaging but now when i run python selftest.py (a script I got from somewhere on the ...
1
vote
1answer
978 views

Package candidate/alternative for the python-pgsql package in 11.10

What is the package candidate or alternative for the python-pgsql (module) package in Ubuntu 11.10 ? An error indicator that could help: Error: You need to have the python-pgsql module installed to ...
1
vote
1answer
118 views

Can't upload project to PPA using Quickly

I can't get Quickly to upload my project into my PPA. I've set up my PGP key and used it so sign the code of conduct, and the PPA exists. I don't know what other usefull information I can supply. ...
0
votes
1answer
111 views

Data files for Quickly apps

My Quickly app requires data files to store settings, configuration and etc. How would I do this inside the app folder. Keep in mind that I will need to read and write to these files while the app ...
3
votes
1answer
383 views

How do i tell ubuntu to only install is asked for and do not bring other dependencies which will break the whole system?

How can i only install python-webkit but not other packages? which is showing to install? (no gstreamer*.*, i do not want to have any single files installed in my distro because of GPL license and it ...
0
votes
1answer
258 views

Strangely quickly runs but debugger crashes with no exception

Firstly, strangely quickly run on my app runs fine and i believe i have made no changes to the source since quickly debug was working (proclaiming it's not user error is distasteful, I know!). winpdb ...
1
vote
1answer
380 views

Can't show preferences dialog

I'm having some trouble with Python, again. I created a project using Quickly, and it created a preferences dialog for me. I am now trying to build up the preferences dialog, but I always get some ...
3
votes
2answers
2k views

Quickly Project System-Notifications dont work (“import pynotify” fails)

If i create a quickly-project with the following command in terminal: quickly create ubuntu-application helloworld and then add in the HelloworldWindow.py the following lines, import sys import ...
0
votes
1answer
317 views

How to add multiple pages which can be switched on press of a button in pyGTK using quickly?

I am building my first app using quickly, pyGTK and python. I am confused how to add multiple pages to the same window and how to switch between multiple windows on click of button ? In visual studio ...
0
votes
2answers
613 views

Can I reinstall my site Python distribution?

I messed up some core packages in my Python distribution, probably through some failed easy_install commands. Is there any way in Ubuntu to blow away the site's Python installation and re-install it ...
0
votes
1answer
88 views

problem in app-simple player

File "/home/rohit/rohit-player/rohit_player/RohitPlayerWindow.py", line 54, in on_open_clicked media_files.append({"File":f, "uri":file_uri, "format":format}) NameError: global name 'media_files' ...
3
votes
1answer
647 views

How to build PyQt for Deadsnakes Python 2.7 on Ubuntu 10.04?

I am trying to configure Python2.7 on Ubuntu 10.04 as an alternative package. I got the Deadsnakes PPA I set up pip and virtualenv Now, I am trying to build PyQt (PySide seems to have similar ...
0
votes
1answer
364 views

Quickly and Python Twisted

I am creating a Quickly application that makes use of Python Twisted. When the user launches a window, I want to start the Twisted server I wrote. However, when I do this, it freezes the GUI, because ...
87
votes
4answers
119k views

How do I sudo a command in a script without being asked for a password?

I want to turn my system on automatically every day. So I use the below code in my Python script, but sudo asks me for a password every time: os.system('sudo sh -c "echo date \'+%s\' -d \'+ \ ...
2
votes
2answers
917 views

Trying to create a GtkTreeView from Python, doesn't seem to work

I'm writing an app using Gtk/PyGI, and I need to create a sidebar with a Nautilus-like tree. However, Gtk refuses to cooperate with me. I tried both with Glade and GtkBuilder (creating the ...
1
vote
1answer
600 views

Quickly ubuntu-application + indicator template don't work

I've started to work with quickly and python (because I wanted to have some GTk3 integration and create and appindicator), and so I create the projecto like this : quickly create ubuntu-application ...
2
votes
1answer
1k views

Problem with Python3 picking Python2 package

I installed python3-numpy package, but trying to import it in Python3 interpreter I get this: $ python3 Python 3.2.3 (default, May 3 2012, 15:54:42) [GCC 4.6.3] on linux2 Type "help", "copyright", ...
2
votes
2answers
407 views

How can I add new window to my project in using quickly?

I'm new to glade and python. But the code generated by quickly when making my first app is so much confused for me to understand. I don't know where should I add the code to initialized my new ...
2
votes
1answer
386 views

Ready-to-use time and/or datetime selection widgets for GTK3?

I've checked hamster-applet, gnome-control-center datetime and gnome-schedule. They all define a different datetime selection composed from basic widgets. I'm surprised it wasn't made available as a ...
0
votes
1answer
404 views

Path to gettext locales directory

I want add locales support to my python app, but I have problem with path to directory with translates. Defualt is /usr/share/locale, but what is recommended method to define it? Writing path in ...
3
votes
2answers
179 views

Build failed with the command : quickly submitubuntu

We try to submit our application for the ubuntushowdown contest, but when we do the command : quickly submitubuntu, the application is not submitted, we have errors such as "build failed". We spend ...
0
votes
2answers
583 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, ...
1
vote
2answers
1k views

How do I force only one instance of my application?

I am developing a program using quickly. I am using an indicator which can hide/show the main window. But when I launch the application from the launcher it starts a new instance of that application ...
0
votes
1answer
81 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 ...
2
votes
2answers
1k views

Make new instance of main window, python gtk

I am fairly new to python and gtk and I am writing an app for the Ubuntu App Showdown using Quickly. I want to make a new instance of the main window when the user clicks on 'New'. I have the button ...
2
votes
1answer
92 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 ...
4
votes
2answers
705 views

How do I stop a container box from expanding horizontally in Glade?

Currently, when my button's label gets more characters, its container boxes resize horizontally, and push away the other containers next to it. I don't want this behaviour. How do I give my boxes a ...
1
vote
2answers
221 views

Problems related with spin buttons

So, I have an important problem related with spin buttons in Python/GTK3. I'm trying to create a spin button in my project, Virtuam, and it seems to work... but with a bug which blocks the +/- ...
4
votes
2answers
236 views

How do I add spellcheck to a TextView object in my Quickly app?

Specifically for a Quickly app, using Gtk3: How do you import GtkSpell in python? How do you set it up to spell-check a TextView object? (If there's an alternative to GtkSpell, do tell.)
3
votes
1answer
412 views

GTK3 tabs with big icons

I want to implement something similar to the ubuntu software center's tabs. What widget is it? Any working example in python where I could take a look? Is this widget available in Glade? Thanks ...
3
votes
1answer
379 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 ...