I'm attempting to port a Python program from GTK2 to GTK3.
I understand the use of GDK_SMOOTH_SCROLL_MASK but can find no reference to an implementation of gdk_event_get_scroll_deltas().
I want to show simple popup menu with right click, menu works right but menu separators are missing, I searched similar examples but they all using pygtk but I'm using gi.repository I don't know is my code wrong or this problem is all about…
I'm dynamically populating the options to a GTK3 ComboBox that has an Entry. Some the options can be quite long, and I'd like to be able to make the ComboBox wider if there are wide items in my model. Is there a way to do this?
(It would be…
I'm designing a GUI python program and I decided to use GTK+3.
Reading some docs here: http://python-gtk-3-tutorial.readthedocs.org/en/latest/index.html I know that I could use the gi.repository.Gtk module as API to GTK+3 libs.
But while I'm trying…
Generally, I have been successful in using the Gtk3 system: Windows, boxes, grids, signal handlers etc. But, no matter what I try I cannot get a DrawingArea widget to work. I suspect something is wrong with my set-up but do not know how to check. …
I'm trying to write my own Gtk+3-TreeModel based on GenericTreeModel in Python3, but I this error:
AttributeError: 'gi.repository.Gtk' object has no attribute 'GenericTreeModel'
Has GenericTreeModel been renamed?
Thanks in advance.
I'm trying to call Gtk3's GtkTreeRowReference() function without any success. I'm trying to delete multiple records from a ListStore using the associated TreeView's selection set to MULTIPLE mode. I want to save a TreeRowReference for each ListStore…
I'm using PyGObject but I think this is a question that could be adapted to all GTK, so if someone know how to do it using C or anything should work in python also.
I have two treeview, Active and Inactive, I load data from a Sqlite database and I…
I'd like to create a graphical interface in python2 with GTK+.
For now I'm using gobject-introspection to use GTK3 but I'd like, if possible, to be compatible with GTK2 as well.
#!/usr/bin/python2
try:
from gi.repository import Gtk
except:
…
I have the following Python 2.7/PyGObject 3.0/PyGST 0.10 module:
from gi.repository import Gtk, Gdk, GdkPixbuf
import pango
import pygst
pygst.require('0.10')
import gst
import Trailcrest
import os, sys
import cairo
from math import pi
class…
I want to programmatically retrieve the value of the word wrap setting for GEdit3 from inside a Python plugin.
The GtkSettings class provides a method to set a string property, but how does one retrieve the value of a string property? I see no…
Is it possible to remove or change button borders for Gtk4 buttons?
The buttons have borders as shown here:
My intention is to create a list of Buttons in a vertical box that are clickable for their clicked signal. Based on the doc for a Button I…
I try to create a proper container Class for Gtk in Python (MyBin in the code below). There seems to be no authoritative documentation on how to do that, only bits and pieces, which I glued together with trial and error. – There are many open…
I've been trying to solve this issue for about a week or two now, still haven't found a solution. I'm on Arch Linux. Here's what I've tried so far:
installed python-gobject and gobject-introspection through pacman
installed pycairo through…
So, I made a notes app in Python using PyGobject. It's all well and cool, except it absolutely refuses to start up if I take away its' dbus permissions.
While it wouldn't be a huge problem if I packaged it as a deb or something, it is since I'm…