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

Is it possible to draw a GTK widget on a GTK drawing area?

I’ve recently moved to Linux and am trying to develop a desktop app using Ruby GTK3. I would like to be able to render a glade file onto a DrawingArea (to preview to the user what the window in the Glade file looks like). Is this possible? Is it…
Garry Pettet
  • 8,096
  • 22
  • 65
  • 103
1
vote
2 answers

Can we compile both OpenCv-3.3.0 and GTK+3 with gcc using C code?

I was looking for a C processing image library and find out that OpenCV library was the most convenient (According to people advices). So I decided to install the latest version, but when I tried to include it to my existing GTK+ (C) project, it…
rlasvenes
  • 19
  • 8
1
vote
1 answer

gotk3, notebook appendpage with a custom widget and get it back

I have this summarized code to display tabs in a notebook in Gtk. Basically, I have created a custom struct with a embedded label, that is added to the notebook. After that, I want to get back that custom widget, but I get a Invalid type assertion.…
okelet
  • 716
  • 1
  • 8
  • 23
1
vote
2 answers

MacOS app bundle with GTK+ - no xcode

I am working on various C++ projects (School/Portfolio related) and I have been using the GTK+3 library for some of them. My apps are done and now I need to create the .app for my applications. I have been trying to get it working for a long time…
danivdwerf
  • 234
  • 2
  • 16
1
vote
1 answer

How to get button text in PyGObject?

How to print button text in GTK ? import gi gi.require_version('Gtk','3.0') from gi.repository import Gtk class MainWindow(Gtk.Window): def __init__(self): Gtk.Window.__init__(self) self.button = Gtk.Button("Hello") …
Sanjay Prajapat
  • 253
  • 2
  • 13
1
vote
1 answer

Gtk3+ How to change Gtk.Entry border to a color?

I have a Gtk.Entry and would like to change his border to red whenever the user enter an invalid value. I am using Gtk+3 and Python3. Any inputs on this? I've seen "Gtk.Entry.set_inner_border()" is deprecated for gtk+ > 3.4. EDIT1: It seems that…
deko
  • 463
  • 1
  • 6
  • 17
1
vote
1 answer

How to check if a Gtk.ListStore is empty in Python?

I want to check with an if statement if my Gtk.ListStore is empty. This means, there are no rows on it. I am using Gtk+3 and Python 3.5.2. Thanks.
deko
  • 463
  • 1
  • 6
  • 17
1
vote
0 answers

Can I get Sentry to report segfaults, and other rare fatal errors?

Once in a rare while my GTK3 Python application crashes with segfault, or some obscure error like Gdk-WARNING **: file.py: Fatal IO error 11 (Resource temporarily unavailable) on X server :0. Is there a way to get more info on errors like this in…
NoBugs
  • 9,310
  • 13
  • 80
  • 146
1
vote
1 answer

GTK Blinks when drawing

I'm really new with GTK, and im trying to learn how to handle it for a project i have in mind. The thing is, i could manage to make an app for placing "Generators" on a window ... Each time i click on the screen, the app place a gen in the window,…
1
vote
1 answer

Gtkmm Build Error

OS: Debian 9.1 Compiler: gcc (Debian 6.3.0-18) GTK+ Version: 3.22.11-1 Gtkmm Version: 3.22.0-1 Hello all, I've been dealing with a pesky issue with Gtkmm 3.22.0-1 build the simple application given on the tutorial. I'm building the project using…
1
vote
1 answer

GTK+ How to make notebook's tab bar resizable

I want to make a tab-bar on the left in GTK app with GLade. And I want to get the resizable tab-bar area like this: But I couldn't find the Resize option of Notebook widget. Anybody knows how I can do this with GLade or has any ideas?
Lory
  • 1,429
  • 2
  • 9
  • 10
1
vote
1 answer

Python Gtk.CellRendererText() color

This treeview has 5 columns with a list of usb devices details , it's showing Device name , Model , Serial number and status , it's all showing fine on the list , what I am trying to achieve is colour code the "status" column only ,if the "status"…
1
vote
0 answers

How to merge GTK DLL files into a single .exe file

After building a GUI application using GTK+ / C language, I noticed that I have to distribute tons of DLLs of the GTK library with my application. Is there a way to make a single executable file (.exe)? Maybe by re-compiling the library itself with…
user8372292
1
vote
1 answer

Split screen with GTK+/gtkmm Grid

I try do build a window with gtkmm in which I have two text views. The text views should be arranged as a vertical split screen. Like that: Later I want be able to split the screen vertical and horizontal again and again and resize the split areas,…
user7732300
1
vote
0 answers

importing Gtk 3+ on mac for python 3

I am currently trying to develop a simple instant messenger with a GUI based in Gtk+3. I am using PyCharm on OS X. I read this post, but I already have gtk+3 and pygobject3 installed (I attempted to [again] install them with Homebrew but I got the…
Ryan Flynn
  • 71
  • 1
  • 8