How to set/get Gtk "Style Properties"

How to set gtk "Style Properties" listed in gtk documentation? like for GtkWidget there are Style Properties: "separator-height" gint : Read "separator-width" ...

Is it possible to make valgrind ignore certain libraries?

Or preferably all of them instead of just my code? My program uses Gtk, Loudmouth and few other things, and these two (and some behind them, libgcrypto, libssl) are causing so many errors...

Cross compile GTK+ application from Linux to Windows?

How can I cross compile my GTK+ app (written in C) from Linux to Windows? Could I just replace the "gcc" command with "mingw32"?

How to create a wrapping table in GTK#

I'm trying to make a table of square buttons in GTK# with the following properties: Buttons will be added and removed one at a time. Buttons should be laid out like text on a page - left to right...

avoid having to scroll in GTK popup menu

I am working on a Gnome Panel Applet that displays a pop-up menu on clicking it's icon. The problem is, with lots of entries, the menu does not pop up with the first items visible, but somewhere...

Programmatically close gtk window

If you have a sub-window in GTK and you want to close it programmatically (e.g., pressing a save button or the escape key), is there a preferred way to close the window? E.g., window.destroy() #...

GTK Timer - How to make a timer within a frame

How do g_timer_new works? is it possible to do a char timerz[50]; GTimer *timer g_timer_start(GTimer *timer); strcpy(timerz,(g_timer_elapsed(GTimer *timer)) Or what Could I do to have a...

API reference to WebKit WebView implementation in GTK (Python)

I'm working on a Python Gtk3 app on Ubuntu, which primarily uses WebView from WebKit. I couldn't find all the methods available to WebView object in python, currently I only know its open()...

Cron scheduler of python script using notify-send

I'm having some difficulty using these three technologies together. Cron entry: * * * * * /usr/bin/python /path/to/python/email/program.py Python program: 1 #!/usr/bin/python 2 3 import...

How to left align a Gtk Label when its width is set by GtkSizeGroup

I have labels that should be left aligned and should all have the same width. I'm using a GtkSizeGroup to achieve the sizing (because the labels don't all have the same parent). Unfortunately this...

Gtk+3 How to specify child properties of stack

I am new to gtk and I am trying to build a gtk application. I went through the gtk tutorial to create gtk application. I want to specify "gtk stack child property title" in xml which is loaded via...

Gtk3 replace child widget with another widget

I'm looking for a way to remove a widget from its parent (whatever that may be - a VBox, a Grid, ...) and add a substitute widget in its place. I found this answer, but I can't seem to make it...

Running Intel 7260 in AP mode under Ubuntu 14.04

I would like to use the built-in WiFi on a Gigabyte mini-ITX system I just bought as an access point. And for some reason I am going in circles. lspci | grep -i wireless reveals: 04:00.0 Network...

Error installing rattle

In the bottom it asks for "Selection:" what should i write there? >library("rattle") Loading required package: RGtk2 R session is headless; GTK+ not initialized. Rattle: A free graphical interface...

Differences btw Gtk.Table and Gtk.Grid

Althought Gtk.table is deprecated, I am getting better results with it, instead of the recommended Gtk.Grid. It is probably my mistake, but I couldn't find the problem. My aim is to create a Gtk...

Error installing "rattle" package

I have been unable to install "rattle" on my Mac. Tried installing the packages separately, tried installing with dependencies set to true, but all to no avail. I have installed Xquartz,...

Install jupyterlab in pip3 throws 'TypeError: expected string or bytes-like object'

Background I was trying to install Jupyter Lab using pip3 install jupyterlab, and it threw the same error. I did not figure it out. Found a workaround using pip2 install jupyterlab -- it worked,...

Get number of columns in Gtk.Grid?

My sample code below creates a 2 row x 10 column Grid. The len() of the Grid seems to print the number of widgets within, not the row or column count. How can I get the column count? import...

How do I listen for a DBus signal in a GTK (python 3, Gio) app?

I'm trying to make my GTK app responsive to network connection state changes. My approach is what I said in the question: Listen on a (NetworkManager) DBus signal. I have a python3 GTK app (a very...

E: Malformed entry 1 in list file /etc/apt/sources.list.d/docker.list (URI parse), E:The list of sources could not be read

I am using Ubuntu 16.04 but I'm not a computing professinal at all and I'm trying to resolve an issue I have since several months know. It is know becoming a real problem for me as I'd like to...

Is there a way to add a property to a GTK widget/object to store additional information about it

I have many GTK widgets/GObjects in my project. I would like to be able to attach some information to each object as it is created and then when the object is passed to some generic library...

ValueError: Namespace Gtk not available

When following the instructions 2. Getting Started — Python GTK+ 3 Tutorial 3.4 documentation Tries In [6]: import gi ...: gi.require_version('Gtk', '3.0') ...: from gi.repository import...

Changing slider size on a gtk scale

I want to change the slider of a Gtk scale in a Linux c program to show an image. I'm using a CSS file to set the background image. the image is showing, but the problem is that the slider is too...

cannot create temp file for here-document: no space left on device when I use tab

when I use tap for cd, this error come. cannot create temp file for here-document: No spae left on device and below is the df -i results. there are many /dev/loop folders, what is it? and what...

Building error in ns3 with exit status 1:

After installing ns3 succesfully i tried to compile it again with a new file(wifi-dl-ofdma.cc) in the scratch folder. When i try to run it with - ./waf --run scratch/wifi-dl-ofdma (no extension...

Create a menubar for GTK 2.24 and GTK 3 and GTK 4

GTK 4 will remove GtkMenu, GtkMenuBar and GtkMenuItem. Why not, but, is there a common way to create a classic menubar for GTK 2.24 and GTK 3 and GTK 4 in C? An example:

Problem displaying image opencv+python using imshow + waitKey

I have recently upgraded my python/opencv for a project to python 3.7 + opencv 4.3.0 and now I have an issue with opencvs imshow. I am running Ubuntu 18.04 and am using conda venvs. I tried to...

Could not initialize GTK! Is DISPLAY env var/xhost set? on Debian WSL

I'm trying to use a file "testar.sh" to test GHDL and GTKWave installation on Debian, that's the command I should use: chmod +x testar.sh; ./testar.sh, then this is what its shown Could not...

python, GTK4, Gtk.ListStore.append and "AttributeError: 'ListStore' object has no attribute 'insert_with_valuesv'"

I'm new to coding and this is probably a stupid question... I'm setting up a simple Gtk.ListStore(str) but as soon as I append(['whatever']) I get a "AttributeError: 'ListStore' object has no...

error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support

I was working on a sign language detection project on jupyter notebook. While running the code for live detection I encountered an error as shown below: OpenCV(4.5.1)...

Relevant tags