1
vote
0answers
28 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 ...
0
votes
0answers
42 views

Control Media via Arduino

I want to create an application that controls the volume, play next\last, stop\play and things like this (I don't know what they called) like in a keyboard. I have tried to find how to do this with ...
-1
votes
1answer
99 views

Python Programming [closed]

I am learning Python Programming from Full Circle Magazine. Can anybody correct this program as it is not working. #!/usr/bin/env python strng = 'The time has come' pos = strng.find('time')
0
votes
0answers
102 views

How do I solve this Bluetooth programming problem?

I've been trying to get BlueZ and PyBluez to work on my 12.04 Ubuntu desktop. Everything installed correctly, but I can never find any of my devices: >>> import bluetooth >>> ...
0
votes
1answer
142 views

How to indicatorize a systray-only app?

I just realized that under 13.04 it isn't possible any more to add applications which are using the systray to a whitelist. I found the suggestion of downloading a patched version of Unity but I'd ...
0
votes
1answer
560 views

Python - NameError: global name 'plus' is not defined

So I am creating a program using shelve and I keep getting this error message. I can not for the life of me figure it out and google hasn't been much help. Is this a problem with Ubuntu/Python working ...
0
votes
2answers
169 views

pygi how to toggle button without running function

I'm writing this application using quickly. I'm looking for a way to toggle button without running function which is connected to this button. def on_button_text_italic_toggled(self, widget): ...
2
votes
1answer
248 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
80 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 ...
2
votes
1answer
785 views

Python Global Hotkey

I'm looking to create a global hotkey in Python 3.2 for Ubuntu 12.10. That is, my script will run in the background and whenever I press Shift+F4 (for example), no matter what the active window is, ...
4
votes
2answers
548 views

PYGTK to PYGI: gtk.timeout_add equivalent

I have converted some Python code to use PYGI but I can't figure out how to convert this line: gtk.timeout_add(PING_FREQUENCY * 1000, self.doWork) To by clear, since I don't really know the ...
2
votes
2answers
5k views

Learning how to use Python in Ubuntu? [closed]

I've recently installed ubuntu 12.04 on my oldie ThinkPad, along with Python-interpreter idle and obviously Python. I'm looking to learn the basics of this programming language, but I've had no luck ...
5
votes
2answers
181 views

How do I access the windows spread programmatically?

I am doing a project in which my application has the ability to spread, similar to effect of pressing Super+W. I was wondering how it can be done programmatically, preferably using python. Can it be ...
3
votes
1answer
382 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 ...
1
vote
2answers
203 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
380 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 ...
3
votes
1answer
178 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 ...
4
votes
1answer
589 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 ...
3
votes
2answers
134 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?
1
vote
1answer
2k 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 ...
3
votes
5answers
5k views

Where is Python source code?

I have Python 2.7 installed for learning purposes (I'm a starting programmer reading 'Learn Python The Hard Way') and wanted to know how some things were done. I installed it from Synaptic and want ...
1
vote
1answer
510 views

gtk3 window is not redrawn correctly

I am creating a simple GTK3 application. The main toplevel window has a search button which will display another toplevel gtk3 window. When I click the close button (near the titlebar) on the second ...
1
vote
1answer
110 views

Fix Nautilus URIs in a Python script

I have a very basic Python script I wrote mostly for learning purposes. It opens a terminal in the current folder. However, I can't get it to work in folders with accented characters in the URI ...
3
votes
2answers
2k views

Python Compared to BASH

I've been studying bash for the past three weeks or so, and it is very easy to learn since it is basically just command line inputs. I've decided to now move onto python but I've been lost the whole ...
3
votes
2answers
187 views

How do I daemonify my daemon?

As part of the Ubuntu Accomplishments system I have a daemon that runs as well as a client that connects to it. The daemon is written in Python (using Twisted) and provides a dbus service and a means ...
1
vote
1answer
4k views

How to get screen size through python curses

I'm writing a terminal program and need to get the size of the TTY I'm using. The Internet seems to suggest this can be done with curses, but I can't seem to find out how in python. I'm trying to ...
21
votes
4answers
6k views

What's the difference between GTK and QT?

Please bear with me as I'm a newcomer to Linux. I've been writing GUI programs in REALbasic on a Mac for several years. I'm trying to learn Python and I want to write GUI apps for Linux (primarily ...
10
votes
2answers
757 views

Is PyGTK still relevant?

I'm new to Linux but not to app development. I come from a RealBasic on a Mac background. I've accepted that I need to learn a new language to develop for Linux (since RB won't run on 64 bit distros ...
3
votes
7answers
802 views

Recommendation for a non-programmer's guide to self-teaching Python

I am new to Ubuntu and to programming, and I am seeking to teach myself Python. I installed the software from the Software Center and was wondering how to be sure it is up to date with the latest ...
7
votes
2answers
245 views

Dynamic shortcuts for Messaging Menu?

I'm Unity Mail developer and I wonder if it's possible to add a shortcut to Messaging Menu from within the application (it's written in Python). I need to connect it's user-display to a function in ...
6
votes
1answer
3k views

“command 'gcc' failed” when trying to install a Python package from pypi

I'm trying to install 'pyskein' from the Python package index (sudo easy_install3 skein), but the installation fails with this error: src/threefish.c:23:20: fatal error: Python.h: No such file or ...
5
votes
2answers
532 views

How to re-start a python script without killing other python processes

I develop an app called Unity Mail. A quicklist option «Edit accounts data» needs to restart it. File /usr/bin/unity-mail: #!/bin/sh python /usr/share/unity-mail/unity-mail.py $@ File ...
2
votes
1answer
73 views

Indicator menu from gtk.Builder ui string

I've created an indicator that I think should work, but doesn't. I've added the UI interface from a glade file, loaded it and added the menu to appindicator. The following is the entire source code ...
2
votes
2answers
508 views

PyGTK - events from gtk.Menu in Unity global menu

I have an GUI application written in PyGTK and need to read key-press/release events from application menu. For example, when pressing shift key and click on menu item, do something else, then ...
14
votes
6answers
2k views

Wanting to start development for Ubuntu (and most Linux distributions in general), which is suitable? Python or Vala?

I'm a computer science graduate, and learned languages like C, C++, C# and Java. Though I have more experience with Java. I want to develop for Linux and I'd prefer to develop for GNOME, I'm confused ...
2
votes
1answer
555 views

What's the difference between python-minimal and python-all?

Basically the question. I need to setup an environment that supports tkinter programming in python and maybe some network socket stuff too. I'd also like to emphasize that I need python 3.
8
votes
2answers
1k views

How to add a pygtk Widget to the Glade palette?

Say I've created a gtk Widget like this: class AwesomeTextView (gtk.TextView): def set_font(self, font_description): self.modify_font(pango.FontDescription(font_description)) How can I ...
4
votes
5answers
256 views

How do I find the .desktop information for a given binary?

Given the path to an executable (say /usr/bin/gvim), how can I find the Gnome .desktop file for that application? I'm futzing around in python, so a python-specific answer would be most helpful.
4
votes
5answers
1k views

Which window has current focus?

I'd like to know (programmatically) which window has current focus. Is there a window-manager independent way of discovering that? Otherwise, how does one determine which window has focus in Compiz ...
7
votes
1answer
2k views

How can I get tab-completion in the interactive Python interpreter?

I often use Python 3000's interactive interpreter, but it's missing the convenience of tab-completion I'm used to from ipython, which isn't available for Python 3.x. How do I enable tab completion in ...
7
votes
2answers
388 views

Reverse rendering of Urdu fonts

I am working on a project that is based on Urdu language in Ubuntu platform. I'm using Python language and have almost achieved my task. The problem is that, the Urdu text is rendered in reverse ...
4
votes
1answer
241 views

Rhythmbox plugin code for hot key not working - why?

def activate(self,shell): self.shell = shell self.copy_selected() self.action = gtk.Action ('foo','bar','baz',None) self.activate_id = self.action.connect ('activate', ...
2
votes
2answers
332 views

How can I listen to a specific signal in Rhythmbox?

I want to listen to the key press of lets say Ctrl+W in Rhythmbox, and call a functions if that happens. How can I do that in Python ?
5
votes
2answers
583 views

How do I export all the Python docs of a package and get it into Devhelp?

At the moment, to read the documentation of a package, quickly for examle, I do this: >>> import quickly >>> help(quickly)   >>> import quickly.widgets >>> ...
13
votes
1answer
2k views

Putting an arbitrary gtk.Widget into an appindicator.Indicator

Putting any gtk.Widget inside a gtk.Menu works, somewhat, by putting an empty gtk.MenuItem in first. It doesn't seem to be reliable - but it basically works. With an appindicator.Indicator, it doesn't ...
7
votes
1answer
2k views

How can I play a system sound with Python?

I am writing a small reminder-app and want to play a system sound once the timer has reached 0. What is the easiest way to play that sound, and which sound would you recommend?
2
votes
3answers
1k views

How to create clickable notifications using pynotify?

Is it possible to show notifications displayed in right top (like these about being connected to a wifi), that can be clicked? Right now I can either create a notification, that can't be clicked or ...