class CommonDrugs(QTable):
def __init__(self, parent, db):
QTable.__init__(self, 4, 0, parent)
self.setMinimumHeight(102)
self.setMaximumHeight(102)
self.numCols = 0
self.startOCEANS = None
self.startIHCIS = None
self.vheader = self.verticalHeader()
self.vheader.setMinimumWidth(50)
self.
vheader.
setLabel(0,
QString('Cond A')) self.
vheader.
setLabel(1,
QString('Cond B')) self.
vheader.
setLabel(2,
QString('Cond C')) self.
vheader.
setLabel(3,
QString('Cond D'))
hheader = self.horizontalHeader()
self.connect(hheader, SIGNAL("clicked(int)")
, self.sortWholeRows
)
class CommonDrugs(QTable):
def __init__(self, parent, db):
QTable.__init__(self, 4, 0, parent)
self.setMinimumHeight(102)
self.setMaximumHeight(102)
self.numCols = 0
self.startOCEANS = None
self.startIHCIS = None
self.vheader = self.verticalHeader()
self.vheader.setMinimumWidth(50)
self.vheader.setLabel(0, QString('Cond A'))
self.vheader.setLabel(1, QString('Cond B'))
self.vheader.setLabel(2, QString('Cond C'))
self.vheader.setLabel(3, QString('Cond D'))
hheader = self.horizontalHeader()
self.connect(hheader, SIGNAL("clicked(int)")
, self.sortWholeRows
)
To copy to clipboard, switch view to plain text mode
Bookmarks