151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
# display checkbox
elif opt["type"] in ("bool", "boolean"):
cb = gtk.CheckButton(opt["description"])
description = None
# drop down list
elif opt["type"] in ("select", "choose", "options"):
cb = ComboBoxText(ComboBoxText.parse_options(opt["select"])) # custom uikit widget
# numeric
elif opt["type"] in ("int", "integer", "numeric"):
adj = gtk.Adjustment(0, 0, 5000, 1, 10, 0)
if ver == 2:
cb = gtk.SpinButton(adj, 1.0, 0)
else:
|
|
|
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
# display checkbox
elif opt["type"] in ("bool", "boolean"):
cb = gtk.CheckButton(opt["description"])
description = None
# drop down list
elif opt["type"] in ("select", "choose", "options"):
cb = ComboBoxText(ComboBoxText.parse_options(opt.get("select"))) # custom uikit widget
# numeric
elif opt["type"] in ("int", "integer", "numeric"):
adj = gtk.Adjustment(0, 0, 5000, 1, 10, 0)
if ver == 2:
cb = gtk.SpinButton(adj, 1.0, 0)
else:
|