Skip to content Skip to sidebar Skip to footer
Showing posts with the label Pygobject

Detecting When A Gtk Window Is Done Moving/resizing By The User

I want to detect when the user finished re-sizing or moving the GTK window. Basically an equivalent… Read more Detecting When A Gtk Window Is Done Moving/resizing By The User

Get The Window Handle In Pygi

In my program I use PyGObject/PyGI and GStreamer to show a video in my GUI. The video is shown in a… Read more Get The Window Handle In Pygi

Pygobject Creating A Drag And Drop Source

from gi.repository import Gtk, Gdk def drag_data_get_cb(widget, drag_context, selection_data, info… Read more Pygobject Creating A Drag And Drop Source

Save The Contents Of A Gtk.drawingarea Or Cairo Pattern To An Image On Disk

I've got a small PyGI project which uses a Cairo image surface, which I then scale with a surfa… Read more Save The Contents Of A Gtk.drawingarea Or Cairo Pattern To An Image On Disk

Programatically Add New Menu Items To Menu Item Pygobject?

I had this set up in wxPython, but now I'm rewriting it for GTK3/PyGObject, and I'm kind of… Read more Programatically Add New Menu Items To Menu Item Pygobject?

Pango Attributes With Pygobject

I have the following code, that uses pygtk: attr = pango.AttrList() attr.change(pango.AttrSize(( … Read more Pango Attributes With Pygobject

Webkit2.javascriptresult.get_value() Throws Exception "typeerror: Couldn't Find Foreign Struct Converter For 'javascriptcore.value'".

I am writing a python3 + webkit2 + gtk3 based GUI. Everything works fine, but when I tried to use W… Read more Webkit2.javascriptresult.get_value() Throws Exception "typeerror: Couldn't Find Foreign Struct Converter For 'javascriptcore.value'".

Shutdown System Tray Icon On PyGObject

My vision of the program: icon in tray, left click on icon opens a window with shutdown, reboot, et… Read more Shutdown System Tray Icon On PyGObject

Pango Attributes With Pygobject

I have the following code, that uses pygtk: attr = pango.AttrList() attr.change(pango.AttrSize(( … Read more Pango Attributes With Pygobject