0
votes
0answers
17 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 ...
0
votes
1answer
133 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
0answers
69 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 ...
4
votes
1answer
111 views

Correct handling of application URIs from Unity Dash

At some point, Unity changed the Uri type it returned when a drag-n-drop operation occurred of applications from the Unity Dash to a Gtk window in an app I wrote. In 13.04 (Unity 7.0), the data call ...
0
votes
0answers
31 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
38 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
417 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 ...
0
votes
1answer
553 views

How to change Gtk.Notebook Tabs

There is a way to change the default Gtk.Notebook Tab? I want to realize a flat tab button
3
votes
1answer
151 views

Gtk3+ keyboard shortcuts without signal matching

I am in the process of creating my first Gtk3+ application using python, and I am quite frustrated with the lack of documentation :( Well, what I'm trying to do is to configure the Delete button to ...
1
vote
1answer
563 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
1answer
162 views

Which media players available in the Ubuntu repositories uses GStreamer, GTK+ and were written in Python?

I'm planning to write a media player for Ubuntu to present in fair in the place I study. And I'd like to use GStreamer and GTK+ with Python, but I could not find a good documentation about the ...
2
votes
1answer
384 views

How to change menu entries in AppIndicator, when it is running?

There is a similar question at StackOverflow, but it didn't help me: Changing items while running. I tried asking at StackOverflow, but people there where not too active: How to change GTK menu in ...
2
votes
2answers
100 views

Thread works only on gui events - pygtk

I am developing a multithreaded application in pygtk using quickly and stuck with threads. So I am experimenting with various possibilities and found out that my thread work only when I do something ...
2
votes
1answer
319 views

Ubuntu 12.10 - set alternating row colors in gtk3 TreeView

Ubuntu used to have alternating row colors for gtk TreeView widgets. Some applications still do, like Banshee. Alternating row colors would really help my application (written in python 2.7, and using ...
1
vote
1answer
101 views

How do I combine two toolbar buttons into one?

In my application toolbar, I have two toolbar buttons Travel Planner and Departures as shown below, I need to change it this, As you can see in the 2nd image, it seems that 1 button has 3 ...
2
votes
0answers
72 views

How to make Gtk spinbutton symbolic in 12.04 in only a specific application?

I am currently developing an application for Ubuntu 12.04 and Ubuntu 12.10 systems. My application is completely monochromatic except for the spinbuttons as seen in the screenshot below. This issue ...
2
votes
1answer
535 views

Highlighting Gtk Entry fields on invalid input by user

I am creating a program using Python and Gtk. I want to guide the user by pointing out mistakes if any. I have attached a sample glade interface below. Here the user is supposed to enter a valid ...
1
vote
1answer
122 views

Creating a toolbar with buttons like Software Center

How do I create a toolbar with buttons that look like the ones in Software Center? I've figured out out to set the style of the toolbar to Gtk.STYLE_CLASS_PRIMARY_TOOLBAR, but I want to set the ...
1
vote
0answers
228 views

Keybindings for individual letter keys (not modifier-combinations) on a GtkTextView widget (Gtk3 and PyGI)

I've been able to set several keybord shortcuts for a GtkTextView and a GtkTextEntry using the new css provider system. I'm finding, though, that I only seem to be able to establish keybindings for ...
0
votes
1answer
300 views

python/gtk3 set modal window issue

i have an application that has two Gtk.Window's and one of them calls the another, but when using Gtk.Window.set_modal(True) it doesn't work, i still can interact with the main window... any help? ...
0
votes
1answer
200 views

Can I change the file icon with Gio? [duplicate]

Possible Duplicate: How can I change the folder icon? I'm using python. I want change a file icon with Gio from a python app. I found a lot of deprecated documentation and I'm not sure how ...
5
votes
2answers
643 views

How to get rid of the background gradient of the inline GtkToolbar?

When you run the below code, it will show an inline toolbar in a window. Notice how the inline toolbar has a stand-out backbround. Is there a way to apply CSS to get rid of it and make blend with ...
1
vote
1answer
451 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(), ...
0
votes
2answers
327 views

Apply primary-toolbar background behind GtkEntry widget with GTK3

In PyGI (GTK3), how can I make a GtkEntry widget appear against the same background applied (by the user's theme) to the primary toolbar. I tried adding the same style class like this: ...
2
votes
1answer
202 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 ...
2
votes
1answer
2k views

How can I add cut/copy/paste functionality to my application?

I'm developing an Electoral Calculator (https://launchpad.net/electoralcalculator) using Python 2.7, Gtk+3 and Glade and I want to add cut/copy/paste functionality to my application. I want to give ...
0
votes
1answer
1k 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 ...
1
vote
1answer
277 views

Python Gtk event ignore

I would like to ignore some key events in a text view, now i do the following def on_key_press_event(self,source,event): keyname = Gdk.keyval_name(event.keyval) if(keyname=="Return"): ...
2
votes
2answers
427 views

Quit application on Ctrl+C in Quickly framework

I found that when I run my application using "quickly run" and press Ctrl+c to kill it, the application does not quit. I am using Quickly 12.04. For GTK2 applications, I used def ...
0
votes
1answer
420 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 ...
2
votes
1answer
83 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
1answer
870 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
99 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 ...
4
votes
1answer
459 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.
1
vote
1answer
3k 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.
2
votes
2answers
141 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 ...
2
votes
1answer
184 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
384 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
170 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 +/- ...
3
votes
1answer
288 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
267 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 ...
5
votes
2answers
2k views

How to add vte terminal widget in GTK3?

I'm trying to add vte widget in my application and the examples I've found use .fork_command() to execute a command in that widget. But according to ...
3
votes
1answer
1k views

Glade: How can I set the value of a spin button?

I've done some spin buttons with Glade for my Python/GTK3 app, but I don't know how to set things like default, lower or higher value. How can I do it? Using the following things for development: ...
0
votes
1answer
2k views

How to connect GTK3 button click events to callbacks

So, I'm developing my 1st app with GTK3 and I don't know how to link my buttons with their respective defs. Can anyone post a tutorial, an example or some docs? Using next things for developing my ...
4
votes
1answer
432 views

Python/GTK3 app crashing on importing “indicate” (python-indicate)

I'm trying to integrate my Python/GTK3 app with Ubuntu's messaging menu and every time I try to import "indicate" (python-indicate) my app crashes, with the following traceback: ...
3
votes
1answer
945 views

How to change the cursor to hourglass in a python gtk3 application

I've a function taking quite a long time to perform and I'm trying to change the cursor to an hour glass during the time the function is executed. But it only works the very first time the function is ...
1
vote
1answer
545 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 ...
4
votes
2answers
953 views

KEY.is_pressed() in gi.repository.Gdk?

I was wondering if anyone knew how to detect if a key is currently pressed with either Gtk or Gdk and python? I don't want to use the key-pressed or key-released event for this scenario, but rather ...
1
vote
2answers
907 views

Python, Gtk3 and Gstreamer

This isn't a really happy combination, but it does work for the most of the time. However, I just bumped into a problem with Gio.File. This will always result in TypeError and Python segfaulting: ...
0
votes
1answer
168 views

Focusing a specific application instance by code?

I'm writing an application using Python and GTK3. This application will open instances of other applications, such as GEdit. Now, I'd also want my application to be able to focus each of those ...