Skip to content

Commit

Permalink
set value of dropdown control
Browse files Browse the repository at this point in the history
  • Loading branch information
yconst committed Feb 6, 2024
1 parent b6f5ac9 commit b4c5fca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions studio/Python/tinymovr/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ def _add_to_tree_cb(self):
)
self.treeWidget().setItemWidget(self, 1, self.combo_box_container)

def set_text(self, value):
self.combo_box_container.combo.setCurrentIndex(self._tm_node.options[value])

@QtCore.Slot()
def _on_combobox_changed(self, index):
self._tm_node.set_value(index)
Expand Down

0 comments on commit b4c5fca

Please sign in to comment.