summaryrefslogtreecommitdiffstats
path: root/python/pyqt/examples3/smalltable.py
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-14 19:47:20 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-14 19:47:20 +0000
commit875ae8e38bc3663e5057ca910e7ebe4b2994edb9 (patch)
treeddd3b3bc4d6f0343bae986aebbf9555c20f8e558 /python/pyqt/examples3/smalltable.py
parentcb61a0436524f8ceba31db51ce3f1c5d4afbbb0e (diff)
downloadtdebindings-875ae8e38bc3663e5057ca910e7ebe4b2994edb9.tar.gz
tdebindings-875ae8e38bc3663e5057ca910e7ebe4b2994edb9.zip
Updated python directory
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1175349 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'python/pyqt/examples3/smalltable.py')
-rwxr-xr-xpython/pyqt/examples3/smalltable.py57
1 files changed, 0 insertions, 57 deletions
diff --git a/python/pyqt/examples3/smalltable.py b/python/pyqt/examples3/smalltable.py
deleted file mode 100755
index 54f54c88..00000000
--- a/python/pyqt/examples3/smalltable.py
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/usr/bin/env python
-
-#****************************************************************************
-#** $Id$
-#**
-#** Copyright (C) 1992-1998 Troll Tech AS. All rights reserved.
-#**
-#** This file is part of an example program for PyQt. This example
-#** program may be used, distributed and modified without limitation.
-#**
-#*****************************************************************************/
-
-import sys
-import os
-from qt import *
-from qttable import *
-
-TRUE = 1
-FALSE = 0
-
-numRows = 30
-numCols = 10
-
-if __name__ == '__main__':
- app = QApplication(sys.argv)
-
- table = QTable(numRows, numCols)
-
- header = table.horizontalHeader()
-
- header.setLabel(0, "Tiny", 40)
- header.setLabel(1, "Checkboxes")
- header.setLabel(5, "Combos")
- header.setMovingEnabled(TRUE)
-
- img = QImage("trolltech.bmp")
- pix = QPixmap(img.scaleHeight(table.rowHeight(3)))
- table.setPixmap(3, 2, pix)
- table.setText(3, 2, "A Pixmap")
-
- comboEntries = QStringList("one")
- comboEntries.append("two")
- comboEntries.append("three")
- comboEntries.append("four")
-
- for i in range(numRows):
- item = QComboTableItem(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.setCaption("Small table example")
- table.show()
- app.setMainWidget(table)
- app.exec_loop()