Exemplo n.º 1
0
 def __init__(self):
     QAbstractTableModel.__init__(self)
     self.word = None
     self.corpus = None
     self.indices = None
     self.word_index = None
     self.width = 8
     self.colored_rows = None
Exemplo n.º 2
0
 def __init__(self):
     QAbstractTableModel.__init__(self)
     self.word = None
     self.corpus = None
     self.tokens = None
     self.n_tokens = None
     self.n_types = None
     self.indices = None
     self.word_index = None
     self.width = 8
     self.colored_rows = None
Exemplo n.º 3
0
    def headerData(self, section, orientation, role=Qt.DisplayRole):

        if role == Qt.DisplayRole and orientation == Qt.Horizontal:
            return self.header_labels[section]
        return QAbstractTableModel.headerData(self, section, orientation, role)
Exemplo n.º 4
0
 def __init__(self):
     QAbstractTableModel.__init__(self)
     self.variables = []
Exemplo n.º 5
0
 def __init__(self):
     QAbstractTableModel.__init__(self)
     self.attrdescs = []
Exemplo n.º 6
0
 def __init__(self):
     QAbstractTableModel.__init__(self)
     self.variables = []
 def __init__(self, data, parent=None):
     QAbstractTableModel.__init__(self, parent)
     self._data = np.array(data.values)
     self._cols = data.columns
     self.r, self.c = np.shape(self._data)