Python PyQt5.QtCore.QAbstractTableModel() Examples

The following are 9 code examples of PyQt5.QtCore.QAbstractTableModel(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module PyQt5.QtCore , or try the search function .
Example #1
Source File: scriptmodels.py    From legion with GNU General Public License v3.0 6 votes vote down vote up
def __init__(self, controller, scripts = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__scripts = scripts
        self.__controller = controller 
Example #2
Source File: cvemodels.py    From legion with GNU General Public License v3.0 6 votes vote down vote up
def __init__(self, controller, cves = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__cves = cves
        self.__controller = controller
        self.columnMapping = {
            0: "name",
            1: "severity",
            2: "product",
            3: "version",
            4: "url",
            5: "source",
            6: "exploitId",
            7: "exploit",
            8: "exploitUrl"
        } 
Example #3
Source File: main_gui.py    From IDAngr with BSD 2-Clause "Simplified" License 5 votes vote down vote up
def __init__(self, datain, headerdata, parent=None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.arraydata = datain
        self.headerdata = headerdata 
Example #4
Source File: sandbox_model.py    From kite with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, sandbox, *args, **kwargs):
        QtCore.QAbstractTableModel.__init__(self, *args, **kwargs)

        self.sandbox = sandbox
        self.selection_model = None
        self._createSources()

        self.sandbox.sigModelUpdated.connect(
            self.modelUpdated)
        self.sandbox.sigModelChanged.connect(
            self.modelChanged) 
Example #5
Source File: qt_utils.py    From kite with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, model, *args, **kwargs):
        QtCore.QAbstractTableModel.__init__(self, *args, **kwargs)
        logging.Handler.__init__(self)

        self.log_records = []
        self.app = None
        self.model = model
        self.model.sigLogRecord.connect(self.newRecord) 
Example #6
Source File: hostmodels.py    From legion with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, hosts = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__hosts = hosts 
Example #7
Source File: processmodels.py    From legion with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, controller, processes = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__processes = processes
        self.__controller = controller 
Example #8
Source File: servicemodels.py    From legion with GNU General Public License v3.0 5 votes vote down vote up
def __init__(self, services = [[]], headers = [], parent = None):
        QtCore.QAbstractTableModel.__init__(self, parent)
        self.__headers = headers
        self.__services = services 
Example #9
Source File: active_applications_qtmodel.py    From track with Apache License 2.0 5 votes vote down vote up
def __init__(self, parent, *args) -> None:
        QtCore.QAbstractTableModel.__init__(self, parent, *args)
        ActiveApplications.__init__(self)
        self.header = []
        self._sorted_keys = []
        self._sort_col = 0