Questions tagged [gtk3]

The GIMP ToolKit (GTK+) in its version 3.x. GTK+ is a highly usable, feature-rich toolkit for creating graphical user interfaces (GUIs) that boasts cross platform compatibility and an easy to use API.

GTK+ is written in C, but has bindings to many other popular programming languages such as C++ (), Python (), and C# among others. GTK+ is licensed under the GNU LGPL 2.1, allowing development of both free and proprietary software with GTK+ without any license fees or royalties.

"GTK" stands for GIMP Tool Kit; it was originally developed to serve as the widget set for The GIMP, the GNU Image Manipulation Program. In the intervening years its usage has expanded greatly.

The latest version is GTK+ 3, released in January, 2011.

For questions not specifically regarding GTK 3, please use instead.

Reference documentation in C

Reference documentation in Python

3219 questions
1
vote
1 answer

GTK3: disable extra window buttons

Is there any way I can detect (in a standard, non-hackish way) whether my Gnome app with a GtkHeaderBar is running under a window manager that provides its own window decorations (for example, XFWM) so that I can set…
NK22
  • 25
  • 4
1
vote
1 answer

having issue getting widget size in gtkmm

I have gtk::applicationWindow with an openGL widget. I would like to query the size of the openGL widget on creation and on resize. This is done so that I can compensate for the aspect ratio. Here's a snippet of my code. The problem is that when I…
Marc Wang
  • 171
  • 2
  • 12
1
vote
1 answer

Create a simple tabbed ("multi page") application with python and GTK

I hope someone can help me. My Aim creating a simple multi paged GTK application with python pages should be switched by using a sidebar or a top bar each page should be able to contain multiple elements (e.g. a few buttons, labels, ...) arranged…
1
vote
0 answers

GObject.timeout_add stops running unexpectedly

I am working on an Ubuntu Appindicator that displays the value of a JSON API call every X seconds. The issue is that, randomly, it will stop calling self.loop without any error or warning. I can have it running for days or for hours. I've setup (in…
Ricardo Velhote
  • 4,630
  • 1
  • 24
  • 30
1
vote
0 answers

Gtkglext and gtkglarea gtk3 windows does not work

I need to get working gtk3 with vtk6. Ive just built (after some effort) gtkglext for gtk3. Later I built vtkmm1.2 with the win32 patches and I do not see vtk widget. Due to this, I discovered I cant see any draw in the gtkglext examples. On the…
luchete80
  • 11
  • 3
1
vote
1 answer

Gtk - draw event fired for wrong widget, and widget not redrawn

I'm trying to create a custom scrollable text area. I created a DrawingArea and a ScrollBar inside a Grid. I have attached the draw event of DrawingArea to this.on_draw method which simply looks at ScrollBar's value and moves the Cairo.Context…
John
  • 1,856
  • 2
  • 22
  • 33
1
vote
3 answers

Is it possible to refresh/update the data in a treeview?

I'm new at GUI development and I've been working on a project with gtk+ 3 for some days, but I'm stuck at this point. My app contains two treeviews, the data in the rows is obtained from an sql query, by right clicking on a row a popup-menu appears,…
Vanreyn
  • 21
  • 4
1
vote
1 answer

Get All Objects From Glade File

I know it's possible to import specific objects from a glade file using: builder.add_objects_from_file("example.glade", ("button1", "button2")) But as you can see, I have to pass a list of the objects I want to import. Is there a way to import…
Madno
  • 910
  • 2
  • 12
  • 27
1
vote
1 answer

Change images at runtime with Glade3/Python3 Gtk

How can I change an image at runtime with Glade? I'm trying to prompt a "refresh" of an image in my GUI when a button is pressed. The idea is that my handler will do some work on the image, and once it is complete, the image will load in the new…
Onofog
  • 443
  • 3
  • 15
1
vote
1 answer

run a method when TextView is idle in python GTK3

Consider having a simple window with a Gtk.textView #!/usr/bin/python3 import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk class myWindow(Gtk.Window): def __init__(self): ... self.txtBuffer =…
Aboud Zakaria
  • 567
  • 9
  • 25
1
vote
1 answer

How do I put a GTKScrolledWindow inside of another container?

I want to have a scrollable GtkTextView in my GtkWindow, but I only want the GtkTextView part to scroll instead of the whole window. I tried to put the GTKTextView inside of a GtkScrolledWindow and put the GtkScrolledWindow inside of a GtkFixed…
Jason
  • 2,725
  • 2
  • 14
  • 22
1
vote
1 answer

Raised border in Python GObject Gtk

I've found that the Gtk.BorderStyle enum gives you some options as to border (raised, sunken, etc.). How do you actually apply these settings to a Gtk.Widget?
1
vote
2 answers

Python gtk3 window listen to input events

is there any way for a python gtk3 Window to catch every input from keyboard and/or mouse inside it? Basically i am creating an application and it will launch something like screensaver when idle, to do so i need to know the time when keyboard or…
Lee
  • 3,259
  • 4
  • 21
  • 27
1
vote
1 answer

How do I test my GtkPrintBackend?

I am trying to develop my own GtkPrintBackend , taking help from here: https://mail.gnome.org/archives/desktop-devel-list/2006-December/msg00069.html I want to test my print backend( by making the print dialog use my backend instead). How do I do…
nilanjanaLodh
  • 303
  • 4
  • 11
1
vote
1 answer

How does one update the GTK+ GUI in C++ with time consuming operations?

I am using OpenMP to perform a time consuming operation. I am unable to update a ProgressBar from GTK+ from within the time consuming loop at the same time the operations are carried out. The code I have updtates the ProgressBar, but it does so…
g_l
  • 621
  • 5
  • 15
1 2 3
99
100