Ejemplo n.º 1
0
 def updateRowData(self, r, path):
     it0 = QTableWidgetItem('%s ' % '/'.join(path.split('/')[:-1]))
     it0.setFont(QFont("Courier"))
     self._tb.setItem(r, 0, it0)
     it1 = QTableWidgetItem('%s ' % path.split('/')[-1])
     it1.parent = self
     ft = QFont("Courier")
     ft.setWeight(QFont.Bold)
     it1.setFont(ft)
     self._tb.setItem(r, 1, it1)
     node = self._model.nodeFromPath(path)
     if node:
         it1 = QTableWidgetItem(node.data(COLUMN_SIDS))
         it1.parent = self
         it2 = QTableWidgetItem(node.data(COLUMN_DATATYPE))
         it2.parent = self
         val = node.data(COLUMN_VALUE)
         if val == HIDEVALUE:
             val = QIcon(QPixmap(":/images/icons/data-array-large.png"))
             it3 = QTableWidgetItem(val, '')
         else:
             it3 = QTableWidgetItem(val)
             it3.setFont(QFont("Courier"))
         it3.parent = self
         it1.setFont(QFont("Courier"))
         it2.setFont(QFont("Courier"))
         it3.setFont(QFont("Courier"))
         self._tb.setItem(r, 2, it1)
         self._tb.setItem(r, 3, it2)
         self._tb.setItem(r, 4, it3)
Ejemplo n.º 2
0
    def set_header_style(self):

        fnt = QFont()
        fnt.setWeight(QFont.Black)
        self.setFont(fnt)
        self.setBackground(QBrush(QColor(HEADER_BACKGROUND)))
        self.setForeground(QBrush(QColor(HEADER_FOREGROUND)))
Ejemplo n.º 3
0
	def set_header_style(self):

		fnt = QFont()
		fnt.setWeight(QFont.Black)
		self.setFont(fnt)
		self.setBackground(QBrush(QColor(HEADER_BACKGROUND)))
		self.setForeground(QBrush(QColor(HEADER_FOREGROUND)))