Exemplo n.º 1
0
 def init_workspace(self):
     splitter = QSplitter(self)
     splitter.setOrientation(Qt.Vertical)
     splitter.sizePolicy().setVerticalPolicy(QSizePolicy.Maximum)
     query_edit = self.init_query_text_edit()
     self.on_disconnected()
     splitter.addWidget(query_edit)
     results_widget = self.init_results_widget()
     splitter.addWidget(results_widget)
     splitter.setSizes([100, 900])
     return splitter
Exemplo n.º 2
0
    def init_workspace(self):
        # Create a splitter consisting of query edit and table view
        splitter = QSplitter(self)
        splitter.setOrientation(Qt.Vertical)
        splitter.sizePolicy().setVerticalPolicy(QSizePolicy.Maximum)

        # Initialize query edit file
        query_edit = self.init_query_text_edit()
        # Disable query control buttons by default
        self.on_disconnected()
        splitter.addWidget(query_edit)

        # Initialize result desiplaying widgets
        results_widget = self.init_results_widget()
        splitter.addWidget(results_widget)
        splitter.setSizes([100, 900])
        return splitter