Add Basic Database functions.

This commit is contained in:
luxick
2018-02-22 21:27:07 +01:00
parent 0d14a64482
commit b0ed96611d
14 changed files with 1374 additions and 389 deletions

9
dsst/dsst_gtk3/util.py Normal file
View File

@@ -0,0 +1,9 @@
class Util:
@staticmethod
def get_combo_value(combo, index: int):
""" Retrieve the selected value of a combo box at the selected index in the model """
tree_iter = combo.get_active_iter()
if tree_iter:
return combo.get_model().get_value(tree_iter, index)
else:
return None