23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#
#
# debug
def __print__(*args):
print(" ".join([str(a) for a in args]))
# gtk modules
gtk = 3 # 0=gtk2, else gtk3
if gtk:
from gi import pygtkcompat as pygtk
pygtk.enable()
pygtk.enable_gtk(version='3.0')
from gi.repository import Gtk as gtk
from gi.repository import GObject as gobject
from gi.repository import GdkPixbuf
|
|
<
|
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#
#
# debug
from config import __print__, dbg
# gtk modules
gtk = 0 # 0=gtk2, else gtk3
if gtk:
from gi import pygtkcompat as pygtk
pygtk.enable()
pygtk.enable_gtk(version='3.0')
from gi.repository import Gtk as gtk
from gi.repository import GObject as gobject
from gi.repository import GdkPixbuf
|