How to use the pandasgui.qtdesigner.scatter.columnPicker function in pandasgui

To help you get started, we’ve selected a few pandasgui examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adamerose / pandasgui / pandasgui / qtdesigner / scatter.py View on Github external
self.columnDestination.setCurrentItem(self.columnDestination.topLevelItem(0))

        # Add to items to selection section
        self.addTreeItem('test1')
        self.addTreeItem('test2')

    def addTreeItem(self, label):
        # Add to tree
        destinationSection = self.columnDestination.selectedItems()[0]
        treeItem = QtWidgets.QTreeWidgetItem(destinationSection, [label])
        destinationSection.setExpanded(True)
        treeItem.setFlags(treeItem.flags() & ~QtCore.Qt.ItemIsDropEnabled)

import sys
app = QtWidgets.QApplication(sys.argv)
win = columnPicker()
app.exec_()
github adamerose / pandasgui / pandasgui / qtdesigner / scatter.py View on Github external
def initUI(self):
        layout = QtWidgets.QVBoxLayout()
        self.setLayout(layout)
        self.columnPicker = columnPicker()