Add CheckListPrompt to quickly.prompt
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly Widgets |
New
|
Undecided
|
Rick Spencer |
Bug Description
This is generally useful code, should be built in:
class CheckListPrompt
def __init__(self, title = "Input String", text = "Input a String:", default_value = None):
if default_value is None:
self._vbox = gtk.VBox(True,5)
keys = sorted(
for k in keys:
cb = gtk.CheckButton(k)
def get_value(self):
return_dict = {}
for c in self._vbox.
return return_dict
def checklist(title = "Input String", text = "Input a String:", default_value = None):
clp = CheckListPrompt
response = clp.run()
val = clp.get_value()
clp.destroy()
return (response, val)
Changed in quidgets: | |
assignee: | nobody → Rick Spencer (rick-rickspencer3) |