1
# -*- Mode: Python; py-indent-offset: 4 -*-
6
# load the required modules:
7
import gobject as _gobject
9
ver = getattr(_gobject, 'pygobject_version', ())
11
raise ImportError("PyGTK requires PyGObject 2.11.1 or higher, but %s was found" % (ver,))
27
opts, args = getopt.getopt (argv, "u:w:o:h:",
28
["uid=", "window=", "orient=", "height="])
29
except getopt.GetoptError:
30
print ("Unable to parse args")
34
if opt in ("-u", "--uid"):
36
#print "uid = " + arg + " " + str (type (uid))
37
elif opt in ("-w", "--window"):
39
#print "window = " + arg+ " " + str (type (window))
40
elif opt in ("-o", "--orient"):
42
#print "orient = " + arg + " " + str (type (orient))
43
elif opt in ("-h", "--height"):
45
#print "height = " + arg + " " + str (type (height))
47
def init_applet (applet):
52
plug = awn.Plug (applet)
55
plug.construct (window)