Пример #1
0
 def __init__(self, parent=None, designMode=False, with_filter_widget=True, perspective=None):
     TaurusBaseTableWidget.__init__(self, parent=parent, designMode=designMode,
                                    with_filter_widget=with_filter_widget,
                                    perspective=perspective, proxy=None)
     self.setContextMenuPolicy(Qt.Qt.ActionsContextMenu)
     self._simpleViewAction = Qt.QAction("Simple View", self)
     self._simpleViewAction.setCheckable(True)
     self.connect(self._simpleViewAction, Qt.SIGNAL("toggled(bool)"), self.setSimpleView)
     self.addAction(self._simpleViewAction)
     self.registerConfigProperty(self.isSimpleView, self.setSimpleView, "simpleView")
Пример #2
0
 def __init__(self, parent=None, designMode=False, with_filter_widget=True, perspective=None):
     TaurusBaseTableWidget.__init__(self, parent=parent, designMode=designMode,
                                    with_filter_widget=with_filter_widget,
                                    perspective=perspective, proxy=None)
     self.setContextMenuPolicy(Qt.Qt.ActionsContextMenu)
     self._simpleViewAction = Qt.QAction("Simple View", self)
     self._simpleViewAction.setCheckable(True)
     self._simpleViewAction.toggled.connect(self.setSimpleView)
     self.addAction(self._simpleViewAction)
     self.registerConfigProperty(
         self.isSimpleView, self.setSimpleView, "simpleView")