GTK+3 is a graphical user interface toolkit.

learn more… | top users | synonyms

1
vote
1answer
751 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
156 views

GTK Recent Chooser Menu callback not working

I am currently very puzzled why something so simple fails so hard: This is the source code for a very very simple recent chooser menu, but it fails. My output is this: Display name: ...
3
votes
1answer
8k views

GTK3 theme in KDE

I am using Kubuntu 12.04 and QtCurve widget style which does not support GTK3: How can apply a GNOME theme for GTK3 apps? I found an advice here: installed gnome-themes-standard and ...
2
votes
1answer
726 views

How do I set a fallback for a GTK+ theme?

I was looking for a way to apply a custom GTK3 theme on a per application basis like can be done with GTK2 but it appears it can't be done as there are open questions here that have not been resolved. ...
0
votes
1answer
1k views

GTK3 and GTK2 themes checkbox

I have a good theme. But there is one disadvantage. I don't see if checkbox is checked or unchecked until I place mouse cursor above it. Can you tell me what I should change in the theme to be able ...
0
votes
2answers
401 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: ...
3
votes
1answer
281 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 ...
3
votes
1answer
3k 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 ...
1
vote
3answers
3k views

Python GTK 3 IDE

Just a Quick Question, to Check if there are any available IDE for Python GTK 3. IE: An IDE which give the programmer an auto complete feature with method Description Etc.
5
votes
5answers
10k views

Are there any tweaks for fixing the appearance of Eclipse Juno on ubuntu?

As we have previously established ;-) running Eclipse on ubuntu is a bit disappointing on the UI side. Things are even worse now that Juno is out. Are there any tweaks specific to Gtk3 and Juno that ...
0
votes
1answer
2k 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
479 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
596 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
550 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
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
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
111 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
2answers
1k views

Creating widgets using GtkBuilder

I am using Glade to design a Box with widgets and then load these widgets into my UI at run-time. To create each Box with widgets at run-time, I create a new GtkBuilder, call add_from_string passing ...
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.
5
votes
1answer
1k views

How to apply gradient background to GtkWidget in GTK3?

Is it possible to use gradient as a background for generic GtkWidget? Related question: How to change GtkWidget background in GTK3?
1
vote
1answer
6k 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.
0
votes
1answer
254 views

Opening a Window within an already open window (Quickly/Glade)

I have a question regarding window and button implementation. If I have a toolbar set up, and I have a button on it, is it possible to get it to open a window right within the program? I mean like ...
2
votes
2answers
180 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 ...
0
votes
1answer
181 views

How to use Events (GdkEvents) in Glade

When selecting a widget, in the common tab you can find the events control. What is it for? How to use it? Thanks!
2
votes
1answer
352 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
2answers
561 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
1answer
144 views

What widget can I use to edit text and highlight parts of it?

Using the quickly ubuntu-application template (i.e. python and GTK3), what solutions exist to display a text editor in which I can highlight some parts of the text and add annotations/extra visuals at ...
1
vote
2answers
211 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
392 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
369 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 ...
1
vote
1answer
107 views

How to keep Text within GTK CellRenderers at center?

Hello I am using GTK3 CellRenderers in my project, but I want to put text within that at Center, how will I do that?
5
votes
1answer
470 views

Why does creating a new tab give me 'TypeError: Expected Gtk.Widget, but got GObjectMeta'?

def on_btn_new_subject_activate(self, widget): self.subjects.append_page(Gtk.TextView(), "Testing") I am trying to create a new tab on a text area but I whenever the signal is called by the ...
3
votes
1answer
382 views

Use primary-toolbar with Mono

I am trying to create an application for the Ubuntu App Contest. And I defined image of the design, but I am having problems with it. Principally with the primary-toolbar design, so it would look like ...
6
votes
3answers
4k 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
2k 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: ...
3
votes
1answer
782 views

how to create gnome 3 extensions

I have installed and enjoyed the extensions provided by gnome3. But I'm looking for tutorials and sites that explain how to create them. Do I need to know GTK3 and CSS and Javascript? I haven’t done ...
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
558 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: ...
1
vote
1answer
2k views

How to change the glassy look in GTK3 theme?

I am wondering how can I change the glass color (transparency) in GTK3? For example, if one hits the hot-spot corner (top-left) and you go to the applications display, there is a layer of glassy ...
4
votes
1answer
3k views

Reload Gtk+ 3.0 theme

I'm trying to customize my Gtk+3.0 theme, when I make a change in my theme, I change between two themes (with MyUnity) to force applications to reload the theme and test mine. But when I do that, the ...
4
votes
1answer
1k views

Black areas with default (gray) theme in GTK3 based applications

I use Ubuntu 12.04 with the Blackbox window manager and the default (gray) GTK theme. With some GTK 3 applications, like Gedit, Disk utility and Evince I see black areas which should be gray and these ...
0
votes
1answer
556 views

When clicking below window title bar in KDE, window dragging is initiated. Can I change this behavior?

this one is regarding KDE in Ubuntu 12.04. The thing is that whenever I click below the window title bar in KDE, the window manager always assumes I want to drag the window, not just activate it. ...
1
vote
0answers
23 views

Has anyone got the Mist engine to work on gtk3? [duplicate]

Possible Duplicate: What GTK+ 3 engines are available? I've just upgraded my xubuntu installation to Precise and run into gtk3 theme problems - my theme based on the Mist engine doesn't ...
1
vote
1answer
417 views

Desktop file for my python gtk3 app does not load the app

I am creating an GTK3 python application for Ubuntu. At the moment the application installs in the following locations. In /opt/NSTrain folder where NSTrain is the name of my application. The NSTrain ...
4
votes
1answer
2k 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
860 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 ...
0
votes
1answer
1k views

Ubuntu12.04 GTK+ theme problem

I try to install a gtk3 theme called 'A New Start' following the instructions on some websites, but when I change the gtk+ theme by using tweak tool, my font turns white and it's really horrible... ...
3
votes
3answers
2k views

Why Totem, EOG, …? have dark toolbars with default gnome-shell theme - Adwaita?

Totem, EOG, have dark toolbars for some reason: while other regular GTK3 applications have expected toolbar: This doesn't look like preferred way, so why is it like this and how can I set all ...
4
votes
2answers
1k 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 ...
4
votes
1answer
2k views

Hide window title in gnome-shell using mutter, gdk, wnck or gtk

I'm after a way to: get list of all application windows currently open, as a Gdk or Gtk window remove window decorations for selected windows (maximised in my case). I'd like to do this using ...