I am using python3 with Gtk3 and i need to basically remove some widgets from my Gtk.Window and replace them with other widgets when a Gtk.Button is clicked.I have tried using Gtk.ListBoxes with Gtk.ListBoxRows and so far i can remove all the Rows…
I am porting a Python2 script that uses Pango for drawing text to a Cairo surface. It works fine using the old PyGtk API with the pangocairo package. My system (Debian Jesse) doesn't have Python3 packages for PyGtk and instead uses the newer Gtk+…
I'm hide Gtk widget, then try to show it, but none of the methods "show()", "show_all()" or "show_now()" does't work. If not call "hide()" widget shows.
python 3.5.2
gtk3 3.20.8
pygobject-devel 3.20.1
test.py:
import gi
gi.require_version('Gtk',…
I'm trying to create a "HeaderMenu" like this:
But only I got it:
I'm using GtkMenuButton within a GtkHeaderBar. How do I get a menu like the first picture?
Codes:
Glade file
Python code
I'm trying to get an input shape to apply to a window, so I can have a transparent frame with only the interesting parts to be clickable, etc.
I'm using Cairo graphics with PyGObject (Python 3).
The Object is a regular Gtk Windows object, which then…
I am having difficulty loading a file or displaying a colour in one of the columns of a Gtk TreeView (Python binding of GTK3). An example taken from QGIS shows a icon in the first row and a blue circle in the second row. The colour is taken from the…
Platform is Windows 7 64bit using python 2.7 and GTK3+ installed from http://sourceforge.net/projects/pygobjectwin32/files/?source=navbar
The exe is compiled but fails to run, due to this
The following modules appear to be…
I want to detect when the user finished re-sizing or moving the GTK window. Basically an equivalent of WM_EXITSIZEMOVE in windows.
I have looked at GTK detecting window resize from the user and am able to detect size/location changes using the…
I want to make keyboard shortcuts like t, that would work, when the main window is closed (but process is running, as the programme has a unity appindicator). I saw a package keybinder, but it seems, one can't use it with Gtk3 and pygobject. Or can?…
A picture paints a thousand words...:
In my Python 2.7 application I have a button which when clicked pops up a menu.
In some circumstances this list is larger than the screen size.
In Ubuntu 12.04 (uses Gtk 3.4.2) this is OK because you get…
So I have been trying to port a C GNOME applet to MATE, and after running into many different problems, I decided to rewrite it from scratch in python. Eventually, I found some not-horribly-out-of-date documentation, which is here:…
I develop in python with glade and pygtk since 3 months, but even before I had time to get used to it, it was already obsolete.
Using Archlinux, my system is constantly up to date, so I am forced to use gtk3 even if I found it a bit lacking of…
How can I convert PIL Image in pixbuf?. I tried to change many examples but no solution
import array
from gi.repository import GdkPixbuf
def image2pixbuf(self,im):
arr = array.array('B', im.tostring())
height, width = im.size
return…