Python PyQt5.QtCore.QAbstractTableModel() Examples

The following are 9 code examples for showing how to use PyQt5.QtCore.QAbstractTableModel(). These examples are extracted from open source projects. 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 check out the related API usage on the sidebar.

You may also want to check out all available functions/classes of the module PyQt5.QtCore , or try the search function .

Example 1
Project: legion   Author: GoVanguard   File: cvemodels.py    License: 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 2
Project: IDAngr   Author: andreafioraldi   File: main_gui.py    License: 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 3
Project: kite   Author: pyrocko   File: sandbox_model.py    License: 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 4
Project: kite   Author: pyrocko   File: qt_utils.py    License: 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 5
Project: legion   Author: GoVanguard   File: scriptmodels.py    License: GNU General Public License v3.0 5 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 6
Project: legion   Author: GoVanguard   File: hostmodels.py    License: 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
Project: legion   Author: GoVanguard   File: processmodels.py    License: 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
Project: legion   Author: GoVanguard   File: servicemodels.py    License: 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
Project: track   Author: frans-fuerst   File: active_applications_qtmodel.py    License: 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