summaryrefslogtreecommitdiffstats
path: root/examples/tablestatistics.py
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-01-03 00:52:18 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-01-20 02:10:39 +0100
commit16434e5519f6224e231bc5f7202f0e495eda7bb7 (patch)
treed0a3bc5f18eb65f89c1e6238dcf579e6c9cb80ad /examples/tablestatistics.py
parent1c362264d328c8886d33061ab992750741f7933a (diff)
downloadpytqt-16434e5519f6224e231bc5f7202f0e495eda7bb7.tar.gz
pytqt-16434e5519f6224e231bc5f7202f0e495eda7bb7.zip
Do rename qt=>tqt on source files, directories and libraries.
Rename pyuic=>pytquic, pylupdate=>pytqlupdate. Do rename qt=>tqt on constants and variables. Do rename QT=>TQT on constants. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
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)