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
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?
2
votes
2answers
102 views

Custom scrips into quickly project

How can I add my custom .py file to a quickly project? I'm porting my actual, from scratch project and I have two Python scripts: virtuam and vui.py. I copied vui.py to the virtuam folder and tried ...
0
votes
1answer
571 views

Gtk.MessageDialog window parameter problems

I'm in a deeply nested class (which inherits from Gtk.Box) and I need to get a reference to the GtkWindow I'm in to pass to a call to Gtk.MessageDialog() yet I cant seem to find a reference to it. I ...
1
vote
1answer
284 views

What's the naming convention for ngettext short name?

gettext.gettext is imported as _: from gettext import gettext as _ It's some naming convention, right? What's the equivalent for gettext.ngettext? __?
1
vote
1answer
35 views

quickly ignores subfolder

I have a problem with packaging quickly. I have a project foo: foo/ foo/bar/ foo_lib/ data/ When I run quickly package --extras && file-roller ../*deb I always miss /opt/extras....
2
votes
2answers
155 views

How do I use a quickly community template (e.g. ubuntu-application-qt)?

I would like to look at the Qt and QtQuick templates for quickly. The documentation for them seems to be non-existent. But I found a previously answered question (http://askubuntu.com/questions/25671/...
3
votes
1answer
157 views

How do I use the Discoverer module with pygi GstPbutils?

I'm trying to port some pygtk music player code to pygi which uses gst's discoverer module. from gi.repository import Gst, GstPbutils def on_discovered(discoverer, ismedia): print("%s -- %s" %( ...
7
votes
1answer
1k views

Root tasks using dbus and policykit

At some point my application needs to do administrative tasks like creating a file in /etc or running commands with root priveleges. I know just could do a Q&D: os.popen("pkexec foo bar") But ...
1
vote
2answers
1k views

Animate spinner with thread pygtk

i am trying to animate a spinner while the programm is running but i can't. I tried using threads but i can't get what i want...you can look here for the progress i made http://www.reddit.com/r/...
2
votes
1answer
391 views

Application does not start after installing. Running “quickly run” works perfectly

I've made my application for Ubuntu App Showdown. When I start it from terminal using quickly run it works well. I've packaged it with quickly package and installed locally. Unfortunately it does not ...
0
votes
1answer
608 views

How can I add a Notebook background in Glade?

I want to add a background image to my pages in my notebook. How I can do this?
2
votes
1answer
95 views

What are the default arguments for ClutterGst?

Hello everyone I am trying to make a simple video player using Gtk3 python & Gstreamer. I am also using Clutter,ClutterGtk & ClutterGst The problem arises when initialise the ClutterGst like: ...
2
votes
4answers
2k views

GtkFileChooserButton 'Select Folder' mode returns no path

I have added a GtkFileChooserButton to my app via Glade. It is set to folder selection mode. When the widget is clicked it shows a dropdown list of Nautilus bookmarks with an 'other' option in the end....
3
votes
1answer
1k views

Mount a Device Read Only using Udisk w/ Python

So I am writing a python script that is attempting to use UDisk to mount and unmount devices. I'm using something like this: disk_dev_func = dbus.Interface(self.device_obj, "org.freedesktop.UDisks....
0
votes
1answer
54 views

Dynamic editing and running quickly apps

Is there a possibility of viewing the app changes dynamically as i edit the code or the interface(in glade). I want to basically edit and view the changes in the app on the fly, without restarting ...
6
votes
1answer
10k views

Why can python3 not import gi.repository?

Python2 does not suffer the same problem. greg@greg-precise:~$ python3 Python 3.2.3 (default, May 3 2012, 15:51:42) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more ...
0
votes
1answer
411 views

How do I programatically edit label widget in the runtime

How do I programatically edit label widget in the runtime , I am using quickly I tried self.title=builder.get_object("title") for initialising and def update_Label(self,url): self.title....
1
vote
1answer
201 views

How to create a GLib.TimeVal from timestamp?

I have a value such as 'timestamp' below, where the last three digits correspond to milliseconds. timestamp = 1340830988768 I currently have code that looks like the following: import indicate ...
2
votes
1answer
2k views

How do I implement a quit dialog in Gtk3?

I have almost finished my Ubuntu App Showdown app, but would like to make it somewhat more robust, upon application quit I iterate through the open files checking for unsaved files, if any are found I ...
0
votes
1answer
367 views

Quickly: how do I return entered data into parent window?

at last I started a simple project (you tube video downloader) in quickly , But got stucked . I added youtube url entry dialog using quickly add dialog command and ;linked it to new button . How ...
0
votes
1answer
113 views

Which packing constant to use for set_child_packing() in Python

I want to change a child of a box's padding; so I am using set_child_packing on the box holding the child. I can't figure out what to use as the constant for for the pack_type. Using PACK_START from ...
0
votes
2answers
116 views

Writing to a file

def loadSubredditConfig (self): self.builder.get_object ('cbxR').remove_all () path = os.path.join (xdg.BaseDirectory.xdg_config_home, 'RedThat', 'subreddits') if (os.path.exists (path)): ...
10
votes
1answer
933 views

How do I make the launcher progress bar work with my application?

Background Research I am attempting to update the progress bar within the Unity launcher for a simple python/Gtk application created using Quickly called test; however, following the instructions in ...
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
473 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 continue ...
0
votes
1answer
307 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 wrap,...
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
160 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 = self.builder.get_object("...
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 could ...
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 1340867411....
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 ...
30
votes
7answers
121k 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 http:/...
1
vote
1answer
991 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
121 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
385 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
382 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 ...