Tutorial by Examples

Simply presenting a window is easy with GTK and Python. The example below is based off the Python GTK3 Tutorial, which you should read if you are a beginner in GUI programming or GTK. import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk # Set up the Gtk window win = Gt...
The simplest way to get an event handler called on a key press is to connect the handler to the key-press-event signal. In this example, we register for the event for the whole window, but you can also register for individual widgets too. The most important part is the connection of the handler to ...
Below is an example of Gstreamer pipeline embedded in a simple gtk window. When run, a small window should appear like this: import gi gi.require_version('Gtk', '3.0') gi.require_version('Gst', '1.0') from gi.repository import Gtk, Gst Gst.init(None) Gst.init_check(None) class GstWidg...

Page 1 of 1