0
votes
0answers
28 views

How to create an installer for a python GTK3 application?

I have just finished developing a Python 2.7 application using Gtk3 for GUI. My question is, how can I now create an installer for Windows, Mac, and Linux (possibly three different installers) for my ...
2
votes
0answers
42 views

Python GTK: How to stop a function from happening if a checkbox is checked

In my program I have one of those annoying popups that alerts the user to go check the settings. I have a checkbox that if checked, is supposed to never show the popup again. I have no idea how to do ...
0
votes
2answers
186 views

When reading a text file, how to get rid of “\n” when extracted in python [closed]

I am writing a program where you have to extract bits of text from a text file. The specific bit of text is the save directory where I would like to save the files produced by my program. Here is my ...
0
votes
2answers
52 views

How to block certain characters from a string in Python [closed]

I am writing a program that takes the text written in a text document called datafile.txt, then prints what is in the file. The text that is in the file is is "Hello World", but the text that prints ...
-2
votes
1answer
59 views

Python: How can I store a variable changed by the user? [closed]

I am writing a program where basically you type information, and the information is saved in a text file. The program has to know where to save that specific text file. I have added a menu button that ...
-1
votes
1answer
37 views

Python: How to have to change a variable once, and never change it again [closed]

flub = raw_input("Where would you like your save directory to be?) SaveDir = flub Hello ubuntu, I am writing a python program. My question is, how can I make it so a raw_input asks me a question ...
2
votes
1answer
71 views

How to convert a .glade file to a .py file

I have been using gtk a lot to make my python programs have a graphical interface, and it's pretty awesome. I recently discovered Glade which is a hassle-free way of making a GUI for your programs. I ...
0
votes
1answer
204 views

ImportError: cannot import name Gdl from gi.repository

Trying to import the Gnome Docking Library I get the exception: ERROR:root:Could not find any typelib for Gdl ... from gi.repository import Gtk, Gdk, Gdl ImportError: cannot import name Gdl
1
vote
1answer
36 views

winpdb GUI not running

I installed winpdb ( a python debugger ) . When I tried to run it's GUI version it showed this error wxPython was not found. wxPython 2.6 or higher is required to run the winpdb GUI. wxPython is the ...
1
vote
0answers
76 views

Unselect the Gtk TreeSelection when cleraing the TreeStore model

I followed the python-gtk-3-tutorial and implemented a simple file browser using Gtk TreeView. It works pretty well, but but my problem is, that by the time of the initialization the first item in the ...
2
votes
1answer
53 views

Ubuntu, gtk 3.10.8, not able to visualize a menubar made by Glade

My problem is that I've drawn a UI with Glade, but the menubar doesn't want to be drawn. Here is the xml, just a sample: please try to check out the properties. It is a very simple menubar but I ...
0
votes
0answers
33 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
34 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
67 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
33 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
39 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
521 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
135 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
2answers
100 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
31 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
62 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
448 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
110 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
698 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
373 views

Has the Appindicator or GtkMenu API changed in Saucy? [closed]

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
58 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
613 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
94 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
615 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
103 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
285 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
522 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
68 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
604 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
185 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
495 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
3k 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
206 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
219 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
646 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
1answer
286 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
600 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
277 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 ...
2
votes
4answers
1k views

Is there any way to make a windows version of my python/gtk3 apps?

I've recently been doing quite a bit of coding using quickly and GTK 3. Its great and i'm happy with some of the results, but now i'd like to share my apps with people running windows or mac. Is there ...
1
vote
1answer
463 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
58 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
467 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 ...
5
votes
2answers
174 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
139 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
511 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(). ...