Search:
GitHub Login
Preferences
My Notifications
Tickets
Wiki
GitHub
Timeline
Roadmap
Ticket Reports
Search
Context Navigation
Back to Ticket #60149
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
3
import
os
4
5
# Keep Gtk from trying to launch X11.
6
os
.
environ
[
'DISPLAY'
]
=
''
7
8
import
gi
9
gi
.
require_version
(
'Gtk'
,
'3.0'
)
10
from
gi.repository
import
Gtk
Download in other formats:
Original Format