summaryrefslogtreecommitdiffstats
path: root/examples/tablestatistics.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tablestatistics.py')
-rwxr-xr-xexamples/tablestatistics.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/tablestatistics.py b/examples/tablestatistics.py
index 1288ff0..dd3058d 100755
--- a/examples/tablestatistics.py
+++ b/examples/tablestatistics.py
@@ -12,8 +12,8 @@
import sys
import os
-from PyTQt.qt import *
-from PyTQt.qttable import *
+from PyTQt.tqt import *
+from PyTQt.tqttable import *
TRUE = 1
FALSE = 0
@@ -52,11 +52,11 @@ class Table(TQTable):
def initTable(self):
# read all the TQt source and header files into a list
all = []
- qtdir = os.getenv("TQTDIR")
- if qtdir is None:
+ tqtdir = os.getenv("TQTDIR")
+ if tqtdir is None:
raise Exception("The TQTDIR environment variable has not been set.")
for i in dirs:
- dir = TQDir(os.path.join(qtdir, "src", i))
+ dir = TQDir(os.path.join(tqtdir, "src", i))
lst = TQStringList(dir.entryList("*.cpp; *.h"))
for f in lst:
if f.contains("moc"):
@@ -71,7 +71,7 @@ class Table(TQTable):
# insert the data into the table
for it in all:
self.setText(i, TB_FILE, it)
- f = TQFile(os.path.join(qtdir, "src", str(it)))
+ f = TQFile(os.path.join(tqtdir, "src", str(it)))
self.setText(i, TB_SIZE, str(f.size()))
ci = ComboItem(self, TQTableItem.WhenCurrent)
self.setItem(i, TB_FLAG, ci)