예제 #1
0
 def __init__(self, keys):
     """
     @type ert: res.enkf.EnKFMain
     """
     QAbstractItemModel.__init__(self)
     self._keys = keys
     self.__icon = resourceIcon("star_filled.svg")
예제 #2
0
 def __init__(self, ert):
     """
     @type ert: res.enkf.EnKFMain
     """
     QAbstractItemModel.__init__(self)
     self.__ert = ert
     self.__icon = resourceIcon("ide/small/bullet_star")
예제 #3
0
 def __init__(self, parent=None):
     """Constructor."""
     QAbstractItemModel.__init__(self, parent)
     self.abbreviator = Abbreviator()
     self.testresults = []
     try:
         self.monospace_font = parent.window().editor.get_plugin_font()
     except AttributeError:  # If run standalone for testing
         self.monospace_font = QFont("Courier New")
         self.monospace_font.setPointSize(10)
예제 #4
0
 def __init__(self):
     QAbstractItemModel.__init__(self)
     self.__data = None
예제 #5
0
 def __init__(self, cases):
     QAbstractItemModel.__init__(self)
     self.__data = cases
예제 #6
0
 def __init__(self, source_model: QAbstractItemModel, parent=None) -> None:
     QAbstractItemModel.__init__(self, parent)
     self._source_model = source_model
     self._progress = None
     self._connect()
예제 #7
0
 def __init__(self, facade: LibresFacade):
     self.facade = facade
     QAbstractItemModel.__init__(self)
     self.__data = []
예제 #8
0
    def __init__(self, tree_root, parent=None):
        QAbstractItemModel.__init__(self, parent)

        self.__root = tree_root