Ticket #60149: test-py-gtk3.py

File test-py-gtk3.py, 173 bytes (added by fhgwright (Fred Wright), 5 years ago)

Test program for py-gobject3 Gtk import

Line 
1#!/usr/bin/env python
2
3import os
4
5# Keep Gtk from trying to launch X11.
6os.environ['DISPLAY'] = ''
7
8import gi
9gi.require_version('Gtk', '3.0')
10from gi.repository import Gtk