summaryrefslogtreecommitdiffstats
path: root/examples3/smalltable.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples3/smalltable.py')
-rwxr-xr-xexamples3/smalltable.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples3/smalltable.py b/examples3/smalltable.py
index 83e74bf..2fbda72 100755
--- a/examples3/smalltable.py
+++ b/examples3/smalltable.py
@@ -5,7 +5,7 @@
#**
#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
#**
-#** This file is part of an example program for PyQt. This example
+#** This file is part of an example program for PyTQt. This example
#** program may be used, distributed and modified without limitation.
#**
#*****************************************************************************/
@@ -22,9 +22,9 @@ numRows = 30
numCols = 10
if __name__ == '__main__':
- app = QApplication(sys.argv)
+ app = TQApplication(sys.argv)
- table = QTable(numRows, numCols)
+ table = TQTable(numRows, numCols)
header = table.horizontalHeader()
@@ -33,23 +33,23 @@ if __name__ == '__main__':
header.setLabel(5, "Combos")
header.setMovingEnabled(TRUE)
- img = QImage("trolltech.bmp")
- pix = QPixmap(img.scaleHeight(table.rowHeight(3)))
+ img = TQImage("trolltech.bmp")
+ pix = TQPixmap(img.scaleHeight(table.rowHeight(3)))
table.setPixmap(3, 2, pix)
table.setText(3, 2, "A Pixmap")
- comboEntries = QStringList("one")
+ comboEntries = TQStringList("one")
comboEntries.append("two")
comboEntries.append("three")
comboEntries.append("four")
for i in range(numRows):
- item = QComboTableItem(table, comboEntries, FALSE)
+ item = TQComboTableItem(table, comboEntries, FALSE)
item.setCurrentItem(i % 4)
table.setItem(i, 5, item)
for i in range(numRows):
- table.setItem(i, 1, QCheckTableItem(table, "Check me"))
+ table.setItem(i, 1, TQCheckTableItem(table, "Check me"))
table.setCaption("Small table example")
table.show()