summaryrefslogtreecommitdiffstats
path: root/examples3/smalltable.py
diff options
context:
space:
mode:
authoraneejit1 <aneejit1@gmail.com>2022-07-28 15:46:19 +0000
committeraneejit1 <aneejit1@gmail.com>2022-07-30 17:54:15 +0000
commite602246539fd7435aaeb440fcb7f852c92c8426b (patch)
tree35e09f5d93c67158e6c1160d6d9b27ae8a0bf966 /examples3/smalltable.py
parentb34531364d5c0d3be7056d87011afd8bd538a0e7 (diff)
downloadpytqt-e602246539fd7435aaeb440fcb7f852c92c8426b.tar.gz
pytqt-e602246539fd7435aaeb440fcb7f852c92c8426b.zip
Remove Qt V2 support and example files
Build files for pyuic2 have been removed along with the examples for version 2 of Qt and the build/configure scripts have been amended accordingly. The "examples3" directory has been renamed to just "examples". Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'examples3/smalltable.py')
-rwxr-xr-xexamples3/smalltable.py57
1 files changed, 0 insertions, 57 deletions
diff --git a/examples3/smalltable.py b/examples3/smalltable.py
deleted file mode 100755
index 52f212a..0000000
--- a/examples3/smalltable.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/env python
-
-#****************************************************************************
-#** $Id: smalltable.py,v 1.1 2002/06/19 07:56:07 phil Exp $
-#**
-#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
-#**
-#** This file is part of an example program for PyTQt. This example
-#** program may be used, distributed and modified without limitation.
-#**
-#*****************************************************************************/
-
-import sys
-import os
-from python_tqt.qt import *
-from python_tqt.qttable import *
-
-TRUE = 1
-FALSE = 0
-
-numRows = 30
-numCols = 10
-
-if __name__ == '__main__':
- app = TQApplication(sys.argv)
-
- table = TQTable(numRows, numCols)
-
- header = table.horizontalHeader()
-
- header.setLabel(0, "Tiny", 40)
- header.setLabel(1, "Checkboxes")
- header.setLabel(5, "Combos")
- header.setMovingEnabled(TRUE)
-
- img = TQImage("trolltech.bmp")
- pix = TQPixmap(img.scaleHeight(table.rowHeight(3)))
- table.setPixmap(3, 2, pix)
- table.setText(3, 2, "A Pixmap")
-
- comboEntries = TQStringList("one")
- comboEntries.append("two")
- comboEntries.append("three")
- comboEntries.append("four")
-
- for i in range(numRows):
- item = TQComboTableItem(table, comboEntries, FALSE)
- item.setCurrentItem(i % 4)
- table.setItem(i, 5, item)
-
- for i in range(numRows):
- table.setItem(i, 1, TQCheckTableItem(table, "Check me"))
-
- table.setCaption("Small table example")
- table.show()
- app.setMainWidget(table)
- app.exec_loop()