def prepareContextMenu(self): menu = TreeItemView.prepareContextMenu(self) if self.selectionModel().currentIndex().parent().internalPointer( ) is None: menu.addAction("Remove variable").triggered.connect( self.removeSelection) return menu
def prepareContextMenu(self): menu = TreeItemView.prepareContextMenu(self) if self.selectionModel().currentIndex().parent().internalPointer() is None: menu.addAction("Remove variable").triggered.connect( self.removeVariable) return menu
def __init__(self, do, parent=None): TreeItemView.__init__(self, do, parent) self.setAcceptDrops(True)
def __init__(self, parent=None): TreeItemView.__init__(self, parent) self.setAcceptDrops(True)