예제 #1
0
 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
예제 #2
0
 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
예제 #3
0
 def __init__(self, do, parent=None):
     TreeItemView.__init__(self, do, parent)
     self.setAcceptDrops(True)
예제 #4
0
 def __init__(self, parent=None):
     TreeItemView.__init__(self, parent)
     self.setAcceptDrops(True)