def get_selected(self):
        items = list(self.widget.selectedItems())
        res_dict = {}
        for item in items:
            if 0 > item.childCount():
                # only leaf nodes can be selected
                continue
            self._get_item(res_dict, item)
        return res_dict
dataset/ETHPy150Open ejeschke/ginga/ginga/qtw/Widgets.py/TreeView.get_selected/swapped operands of `>`