0
votes
0answers
10 views

Multiple button clicked signals emitted for a single click

Writing a cut/copy/paste feature for a simple filebrowser in gtk. Every cut/copy button/paste click emits a progressively higher number of signals . Here is the part of the program that deals with ...
3
votes
1answer
24 views

Finding Mouse click position in IconView in GTK

I am building a file browser using Gtk.IconView in python. I am trying to find the path of an icon selected using " selection-changed" signal using gtk.IconView.get_path_at_pos(x,y). The docs are mum ...
0
votes
1answer
23 views

can't open software-center and software & updates

This is the error i'm getting Traceback (most recent call last): File "/usr/bin/software-center", line 130, in <module> app = SoftwareCenterAppGtk3(options, args) File ...
0
votes
0answers
22 views

Create tab using Gtk+3 and Python and load file into it

I want to create an Ubuntu app using Gtk+3 and Python. In the app I want to be able to get the file from the user; create a tab and load the file into it (i.e. into the TextView that will be ...
0
votes
0answers
31 views

Launch a new window from Gtk+3 app

I want to create an Ubuntu app using Python and Gtk+3. I want to get the contents of the file displayed in the main window and load it into a separate window (load it into another TextView for ...
1
vote
1answer
65 views

How to get text buffer from file and loading into TextView using python and Gtk+3

I want to create an Ubuntu App that uses Gtk+3 and Python. However, I would like to know how I can get the text buffer from a file and load it into a TextView. Does anyone know how this can be done ...
1
vote
1answer
77 views

How to save text buffer to file using Python and gtk?

I am trying to create a text editor for Ubuntu (going to give it a try!) using gtk2 and python. So far I have been able to implement the open function. However I just don't know how I can get the ...
0
votes
1answer
38 views

How to change window opacity dynamically in Python and Quickly?

The app is written in HTML and is running using webkit and Quickly. The opacity can be changed using Glade. I want to add a slider functionality in HTML which will change the title of the HTML ...
0
votes
1answer
25 views

Cannot open application in Quickly

I'm creating web browser in Quickly. When I am running my application (quickly run) I have errors about gtk. Without the WebKit code it can run. Sorry about my english. Errors: ...
0
votes
0answers
21 views

How to install python gtkhtml2

I've try to install Straw 0.27 (using sudo python setup.py install), but got error: Error: 'gtkhtml2' module in package 'python-gnome2-extras' is required to install Straw I've installed ...
0
votes
1answer
209 views

Set Window Icon to Gtk Stock Icon in PyGtk

I am trying to add a Gtk stock icon to my window. Here is the code: #! /usr/bin/python from gi.repository import Gtk class MyWindow(Gtk.Window): def __init__(self): ...
0
votes
0answers
87 views

Quickly app not working on raspberry pi

I started developing an app using quickly which will target a raspberry pi board. I have created a single screen so far which contains a few buttons and labels. I run this on the board by doing a ...
1
vote
0answers
503 views

Eclipse - not opening, it was working before, how to fix it and open the eclipse ide for python?

It was working since last night, this morning stop opening, how to fix this? sun@sun-M14xR2:~/Downloads/easyeclipse-python-1.3.1$ ./eclipse ./eclipse: error while loading shared libraries: ...
5
votes
2answers
325 views

Has the Appindicator or GtkMenu API changed in Saucy?

I've written a custom application indicator, which isn't working properly on saucy. The menu is initialised with a few items, then updates regularly, adding or removing menu items. This worked fine ...
0
votes
1answer
46 views

PyGtk Application Logo/Icon

I'm starting to develop some apps. I'm reading through python gtk documentation. It's all going fine but I have one question. How does Ubuntu find application logos? Like the one it displays in the ...
1
vote
1answer
325 views

How install GTK+ 3 for Python [closed]

I'm start programming in Python and I want learn GTK+ 3. I'm using a Distro based on Ubuntu 12.04 (Elementary OS) and I'm having some troubles to install GTK+ 3 in Python. Okay, I will show you what ...
3
votes
0answers
93 views

Application should skip the unity launcher [duplicate]

How can I skip the unity launcher for a (Py)Qt-app? As you see when running the code below, there is an icon in the launcher. I don't need that icon because I manage the windows of that application ...
2
votes
1answer
466 views

How to control gnome-terminal from Python scrypt?

I am developing an application in PyGtk, and would like to launch a gnome-terminal and output commands to it. My user should then be able to modify the command, or maybe ignore using the up arrow ... ...
2
votes
1answer
88 views

How to get a list of installed programmes with python?

I'd like to make a programme, which would allow a user to choose, which application to run. I understand, it is possible to just run a command, which user specifies, but it would be much nicer, if it ...
2
votes
1answer
212 views

13.04 Python gi._glib no attribute GError

I have a Python application that ran without problem on 12.10, but on upgrading to 13.04 the application fails with the following error : except gi._glib.GError, e: AttributeError: 'module' object ...
1
vote
1answer
401 views

ComboBoxText in Glade / GTK+3 / Python - disappears when displayed 2nd time

I'm trying to implement a drop down list in an Ubuntu app using Glade (GTK+3) and Python. I can get the ComboBoxText to display, populated with strings. However when I close the window it is contained ...
1
vote
1answer
53 views

How can I bind Gio.Settings of TextBuffer or TextView?

I'm trying to bind a TextView to the key "text" by TextBuffer. I get the text, but this property is not recorded. widget = self.builder.get_object('textbuffer_text') settings.bind("text", widget, ...
6
votes
2answers
396 views

Create a Gtk Window insensitive to Show Desktop and Won't show in Launcher

I want to make a Gtk.Window which is pinned to the Desktop and acts like a desktop widget. I've found that I can do this by setting self.set_type_hint(Gdk.WindowTypeHint.DESKTOP) which keeps it below ...
0
votes
1answer
150 views

How to use fixed width font in python indicator in Unity's top panel?

I have a python script of network bandwidth indicator that I have downloaded from here : https://launchpad.net/nettraffic I would like to make the indicator use a fixed font so that the indicator's ...
3
votes
1answer
400 views

How to add a print dialog to an application

I'd like to add a print dialog to my Python + GTK app, and I believe there are at least two methods: The upstream GTK print dialog The CUPS print dialog I'm wondering which would be the ...
0
votes
1answer
2k views

gtk problem in ubuntu 12.04

I installed ubuntu 12.04 64-bit I have python 2.7 with some additional packages. When I try to use simple command in python like for example help('modules') I have an error and python terminates. ...
1
vote
1answer
182 views

writing note taking app, save and load text with tags from textbuffer written in python and glade

I am writing a note taking app with python and glade. I've been searching the web for the how to save and retrieve textbuffer with tags from simple app made with python and glade. I would like to get ...
1
vote
2answers
182 views

Opening a Gtk.Window that covers Launcher and Panel

I am trying to create a GtkWindow that would be on top of all the windows. This includes Unity's Launcher and Panel. I am working on Kazam screen recorder and one of the options of the program is ...
1
vote
2answers
546 views

How do I change GTK theme of my app in run time?

I recently noticed that monodevelop, can change GTK theme in runtime . How do I add it in my quickly app?
1
vote
0answers
92 views

Quickly Warning

Every time I run my application I receive these warning errors can anyone tell me what is causing them? $ quickly run /usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: ...
1
vote
1answer
275 views

Installing Ubuntu One on Ubuntu 11.10 server

I have installed "Ubuntu One" on an Ubuntu server 11.10 based on these instructions: How do I configure Ubuntu one on a 11.10 server? Everything went smooth during installation. However when I try ...
0
votes
1answer
480 views

Can't center dialog window above main window when using Glade (Quickly)

I have a dialog opening when I press a button in my application and I want it to center above the application's main window, but I can't find a way to do this. I'm using Quickly (Python) and Glade. ...
2
votes
1answer
231 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 ...
1
vote
1answer
415 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(), ...
1
vote
2answers
56 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
2answers
429 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 ...
4
votes
2answers
161 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 ...
0
votes
1answer
133 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
446 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
1answer
822 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 ...
5
votes
3answers
528 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 ...
0
votes
1answer
378 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 ...
0
votes
1answer
104 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: ...
2
votes
3answers
911 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 ...
0
votes
1answer
50 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 ...
4
votes
1answer
4k 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
209 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 ...
0
votes
1answer
81 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
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
1answer
151 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, ...