Native gui: implement data lists for all modules
This commit is contained in:
+2
-2
@@ -33,7 +33,7 @@ def refresh_dict(combobox, dictionary, keep_selection=True):
|
||||
model = combobox.get_model()
|
||||
selected = get_value(combobox)
|
||||
model.clear()
|
||||
for item in dictionary.iteritems():
|
||||
for item in dictionary.items():
|
||||
model.append(item)
|
||||
if keep_selection:
|
||||
activate_row(combobox, selected)
|
||||
@@ -70,7 +70,7 @@ def get_value(combobox, decode=False):
|
||||
if active < 0:
|
||||
return None
|
||||
else:
|
||||
if type(model) == gtk.TreeStore:
|
||||
if type(model) == Gtk.TreeStore:
|
||||
it = combobox.get_active_iter()
|
||||
val = model.get_value(it, 0)
|
||||
if decode:
|
||||
|
||||
Reference in New Issue
Block a user