예제 #1
0
    def setUp(self):
        iris = Table("iris")

        self.datamodel1 = DataModel(iris[:5, :2])
        self.store = SharedSelectionStore(self.datamodel1)
        self.model1 = SharedSelectionModel(self.store, self.datamodel1, None)

        self.datamodel2 = DataModel(iris[-5:, :3])
        self.model2 = SharedSelectionModel(self.store, self.datamodel2, None)
예제 #2
0
    def setUp(self):
        self.sourceModel1 = QStandardItemModel(5, 2)
        self.proxyModel1 = SortProxyModel()
        self.proxyModel1.setSourceModel(self.sourceModel1)
        self.store = SharedSelectionStore(self.proxyModel1)
        self.model1 = SharedSelectionModel(self.store, self.proxyModel1, None)

        self.sourceModel2 = QStandardItemModel(5, 3)
        self.proxyModel2 = SortProxyModel()
        self.proxyModel2.setSourceModel(self.sourceModel2)
        self.model2 = SharedSelectionModel(self.store, self.proxyModel2, None)