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>
master
Slávek Banko 3 months ago
parent 1c362264d3
commit 16434e5519
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -19,7 +19,7 @@
#
# This is the build script for PyTQt. It should be run in the top level
# directory of the source distribution and by the Python interpreter for which
# it is being built. It uses either qmake or tmake to do the hard work of
# it is being built. It uses either tqmake or tmake to do the hard work of
# generating the platform specific Makefiles.
@ -46,14 +46,14 @@ config = sip_tqt_config.SIPConfig("PyTQt 3.18.1")
# Initialise the globals.
sipMajorVersion = config.sip_version >> 16
sciIncDir = config.qt_inc_dir
sciLibDir = config.qt_lib_dir
sciIncDir = config.tqt_inc_dir
sciLibDir = config.tqt_lib_dir
sciLib = None
sciVersion = None
binDir = config.default_bin_dir
modDir = config.default_mod_dir
sipDir = config.default_sip_dir
buildModules = ["qt"]
buildModules = ["tqt"]
tempBuildDir = None
catCppFiles = 0
catSplit = 1
@ -71,14 +71,14 @@ def usage(rcode = 2):
print(" %s [-h] [-a version] [-b dir] [-c] [-d dir] [-g] [-j #] [-n dir] [-o dir] [-r] [-v dir]" % sip_tqt_config.script())
print("where:")
print(" -h display this help message")
print(" -a tag explicitly enable the qtpe module")
print(" -a tag explicitly enable the tqtpe module")
print(" -b dir where pyuic and pylupdate will be installed [default %s]" % config.default_bin_dir)
print(" -c concatenate each module's C++ source files")
print(" -d dir where the PyTQt modules will be installed [default %s]" % config.default_mod_dir)
print(" -g always release the GIL (SIP-TQt v3.x behaviour)")
print(" -j # split the concatenated C++ source files into # pieces [default 1]")
print(" -n dir the directory containing the TQScintilla header files [default %s]" % config.qt_inc_dir)
print(" -o dir the directory containing the TQScintilla library [default %s]" % config.qt_lib_dir)
print(" -n dir the directory containing the TQScintilla header files [default %s]" % config.tqt_inc_dir)
print(" -o dir the directory containing the TQScintilla library [default %s]" % config.tqt_lib_dir)
print(" -r generate code with tracing enabled [default disabled]")
print(" -v dir where the PyTQt .sip files will be installed [default %s]" % config.default_sip_dir)
@ -87,7 +87,7 @@ def usage(rcode = 2):
def mkTempBuildDir(olddir=None):
"""Create a temporary build directory for a console application called
qttest, complete with patched Makefile. The global tempBuildDir is set to
tqttest, complete with patched Makefile. The global tempBuildDir is set to
the name of the directory. The temporary directory becomes the current
directory.
@ -107,26 +107,26 @@ def mkTempBuildDir(olddir=None):
prevdir = sip_tqt_config.push_dir(tempBuildDir)
sip_tqt_config.copy_to_file("qttest.pro.in",
sip_tqt_config.copy_to_file("tqttest.pro.in",
"""TEMPLATE = app
TARGET = qttest
TARGET = tqttest
CONFIG += console warn_off @TEST_OPENGL@ @BLX_CONFIG_APP@
INCLUDEPATH = @BLX_INCLUDEPATH@ @TEST_QSCINTILLA_INC@
INCLUDEPATH = @BLX_INCLUDEPATH@ @TEST_TQSCINTILLA_INC@
DEFINES = @BLX_DEFINES@
SOURCES = qttest.cpp
LIBS += @TEST_QUI_LIB@ @TEST_QSCINTILLA_LIB@
SOURCES = tqttest.cpp
LIBS += @TEST_TQUI_LIB@ @TEST_TQSCINTILLA_LIB@
""")
# Disable OpenGL, tqui and TQScintilla support by default.
config.patches["@TEST_OPENGL@"] = ""
config.patches["@TEST_QUI_LIB@"] = ""
config.patches["@TEST_QSCINTILLA_INC@"] = ""
config.patches["@TEST_QSCINTILLA_LIB@"] = ""
config.patches["@TEST_TQUI_LIB@"] = ""
config.patches["@TEST_TQSCINTILLA_INC@"] = ""
config.patches["@TEST_TQSCINTILLA_LIB@"] = ""
# Create a dummy source file to suppress a qmake warning.
sip_tqt_config.copy_to_file("qttest.cpp", "")
sip_tqt_config.copy_to_file("tqttest.cpp", "")
config.create_makefile("qttest.pro")
config.create_makefile("tqttest.pro")
else:
sip_tqt_config.pop_dir(olddir)
prevdir = None
@ -152,7 +152,7 @@ def tryModule(maindir, mname, incfile, ctor):
if not os.access(msip, os.F_OK):
return
sip_tqt_config.copy_to_file("qttest.cpp",
sip_tqt_config.copy_to_file("tqttest.cpp",
"""#include <%s>
int main(int argc,char **argv)
@ -177,7 +177,7 @@ def checkTQScintilla():
sciglobal = os.path.join(sciIncDir, "tqextscintillaglobal.h")
if os.access(sciglobal,os.F_OK):
config.patches["@PYQT_QSCINTILLA_INC@"] = sciIncDir
config.patches["@PYTQT_TQSCINTILLA_INC@"] = sciIncDir
sip_tqt_config.inform("%s contains tqextscintillaglobal.h." % (sciIncDir))
@ -209,13 +209,13 @@ def checkTQScintilla():
else:
sciLib = sip_tqt_config.escape("-L" + sciLibDir) + " -ltqscintilla"
config.patches["@PYQT_QSCINTILLA_LIB@"] = sciLib
config.patches["@PYTQT_TQSCINTILLA_LIB@"] = sciLib
else:
sip_tqt_config.inform("The TQScintilla library could not be found in %s and so the qtext module will not be built. If TQScintilla is installed then use the -o argument to explicitly specify the correct directory." % (sciLibDir))
sip_tqt_config.inform("The TQScintilla library could not be found in %s and so the tqtext module will not be built. If TQScintilla is installed then use the -o argument to explicitly specify the correct directory." % (sciLibDir))
sciVersion = -1
else:
sip_tqt_config.inform("tqextscintillaglobal.h could not be found in %s and so the qtext module will not be built. If TQScintilla is installed then use the -n argument to explicitly specify the correct directory." % sciIncDir)
sip_tqt_config.inform("tqextscintillaglobal.h could not be found in %s and so the tqtext module will not be built. If TQScintilla is installed then use the -n argument to explicitly specify the correct directory." % sciIncDir)
sciVersion = -1
@ -225,54 +225,54 @@ def moduleChecks(maindir):
"""
sip_tqt_config.inform("Checking which additional PyTQt modules to build.");
tryModule(maindir,"qtcanvas", "qcanvas.h", "TQCanvas()")
tryModule(maindir,"qtnetwork", "qsocket.h", "TQSocket()")
tryModule(maindir,"qttable", "qtable.h", "TQTable()")
tryModule(maindir,"qtxml", "qdom.h", "TQDomImplementation()")
tryModule(maindir,"tqtcanvas", "tqcanvas.h", "TQCanvas()")
tryModule(maindir,"tqtnetwork", "tqsocket.h", "TQSocket()")
tryModule(maindir,"tqttable", "tqtable.h", "TQTable()")
tryModule(maindir,"tqtxml", "tqdom.h", "TQDomImplementation()")
if config.qt_version >= 0x030000:
tryModule(maindir,"qtsql", "qsql.h", "TQSql()")
if config.tqt_version >= 0x030000:
tryModule(maindir,"tqtsql", "tqsql.h", "TQSql()")
# We need a different Makefile for the qtgl module.
# We need a different Makefile for the tqtgl module.
config.patches["@TEST_OPENGL@"] = "opengl"
config.create_makefile("qttest.pro")
config.create_makefile("tqttest.pro")
tryModule(maindir,"qtgl", "qgl.h", "TQGLWidget()")
tryModule(maindir,"tqtgl", "tqgl.h", "TQGLWidget()")
# Put things back.
config.patches["@TEST_OPENGL@"] = ""
config.create_makefile("qttest.pro")
config.create_makefile("tqttest.pro")
# Check for the tqui library.
if config.qt_version >= 0x030000:
if config.tqt_version >= 0x030000:
if sys.platform == "win32":
tquilib = r"$(TQTDIR)\lib\tqui.lib"
else:
tquilib = "-ltqui"
config.patches["@PYQT_QUI_LIB@"] = tquilib
config.patches["@PYTQT_TQUI_LIB@"] = tquilib
config.patches["@TEST_QUI_LIB@"] = tquilib
config.create_makefile("qttest.pro")
config.patches["@TEST_TQUI_LIB@"] = tquilib
config.create_makefile("tqttest.pro")
tryModule(maindir,"qtui", "qwidgetfactory.h", "TQWidgetFactory()")
tryModule(maindir,"tqtui", "tqwidgetfactory.h", "TQWidgetFactory()")
# Put things back.
config.patches["@TEST_QUI_LIB@"] = ""
config.create_makefile("qttest.pro")
config.patches["@TEST_TQUI_LIB@"] = ""
config.create_makefile("tqttest.pro")
# Check for the TQScintilla library.
if sciVersion >= 0:
config.patches["@TEST_QSCINTILLA_INC@"] = sciIncDir
config.patches["@TEST_QSCINTILLA_LIB@"] = sciLib
config.create_makefile("qttest.pro")
config.patches["@TEST_TQSCINTILLA_INC@"] = sciIncDir
config.patches["@TEST_TQSCINTILLA_LIB@"] = sciLib
config.create_makefile("tqttest.pro")
tryModule(maindir,"qtext", "tqextscintillabase.h", "TQextScintillaBase()")
tryModule(maindir,"tqtext", "tqextscintillabase.h", "TQextScintillaBase()")
# Put things back.
config.patches["@TEST_QSCINTILLA_INC@"] = ""
config.patches["@TEST_QSCINTILLA_LIB@"] = ""
config.create_makefile("qttest.pro")
config.patches["@TEST_TQSCINTILLA_INC@"] = ""
config.patches["@TEST_TQSCINTILLA_LIB@"] = ""
config.create_makefile("tqttest.pro")
def generateFeatures(featfile):
@ -302,7 +302,7 @@ def generateFeatures(featfile):
"WORKSPACE"]
# Generate the program which will generate the features file.
f = open("qttest.cpp","w")
f = open("tqttest.cpp","w")
# Escape the backslashes so that the name can be embedded in a C++ string.
ffstr = string.replace(featfile, "\\", "\\\\")
@ -328,7 +328,7 @@ int main(int argc,char **argv)
#endif
#if (defined(Q_OS_WIN32) || defined(Q_OS_WIN64)) && TQT_VERSION >= 0x030000
if (qWinVersion() != TQt::WV_XP)
if (tqWinVersion() != TQt::WV_XP)
fprintf(fp,"-x TQt_STYLE_WINDOWSXP\\n");
#endif
""" % (ffstr, ffstr))
@ -352,18 +352,18 @@ int main(int argc,char **argv)
f.close()
sip_tqt_config.run_make()
sip_tqt_config.run_program(os.path.join(os.getcwd(), "qttest"))
sip_tqt_config.run_program(os.path.join(os.getcwd(), "tqttest"))
sip_tqt_config.run_make("clean")
sip_tqt_config.inform("Generated the features file.")
def generateSource(mname, plattag, qttag, xtrtag):
def generateSource(mname, plattag, tqttag, xtrtag):
"""Generate the C++ source code for a particular PyTQt module.
mname is the name of the module.
plattag is the SIP-TQt tag for the platform.
qttag is the SIP-TQt tag for the TQt version.
tqttag is the SIP-TQt tag for the TQt version.
xtrtag is an optional extra SIP-TQt tag.
"""
sip_tqt_config.inform("Generating the C++ source for the %s module." % mname)
@ -381,7 +381,7 @@ def generateSource(mname, plattag, qttag, xtrtag):
pro = mname + ".pro"
argv = ["-t", plattag,
"-t", qttag,
"-t", tqttag,
"-z", "features",
"-I", "sip",
"-m", mname + "/" + pro + ".in",
@ -474,8 +474,8 @@ def main(argv):
if opt == "-h":
usage(0)
elif opt == "-a":
global qpeTag
qpeTag = arg
global tqpeTag
tqpeTag = arg
elif opt == "-b":
global binDir
binDir = arg
@ -522,19 +522,19 @@ def main(argv):
sip_tqt_config.error("Please copy the license file %s to the sip directory.\n" % config.license_file)
# Check the TQt version.
if config.qt_version == 0:
if config.tqt_version == 0:
sip_tqt_config.error("SIP-TQt has been built with TQt support disabled.\n")
# Early versions of TQt for the Mac didn't include everything. Rather than
# maintain these in the future we just mandate a later version.
if sys.platform == "darwin" and config.qt_version < 0x030100:
if sys.platform == "darwin" and config.tqt_version < 0x030100:
sip_tqt_config.error("PyTQt for MacOS/X requires TQt v3.1.0 or later.\n")
# Check the installation directory is valid and add it as a patch.
if not os.access(modDir,os.F_OK):
sip_tqt_config.error("The %s PyTQt destination directory does not seem to exist. Use the -d argument to set the correct directory." % (modDir))
config.patches["@PYQT_MODDIR@"] = sip_tqt_config.escape(modDir)
config.patches["@PYTQT_MODDIR@"] = sip_tqt_config.escape(modDir)
sip_tqt_config.inform("%s is the PyTQt installation directory." % (modDir))
@ -544,7 +544,7 @@ def main(argv):
else:
warn = "warn_off"
config.patches["@PYQT_WARN@"] = warn
config.patches["@PYTQT_WARN@"] = warn
# Create patches to allow some modules to link against others.
if sipMajorVersion >= 4:
@ -552,52 +552,52 @@ def main(argv):
elif sys.platform == "win32":
modlink = sip_tqt_config.escape(os.path.join(modDir, "libtqtc.lib"))
else:
modlink = sip_tqt_config.escape("-L" + modDir) + " -lqtcmodule"
modlink = sip_tqt_config.escape("-L" + modDir) + " -ltqtcmodule"
config.patches["@PYQT_QT_MODULE@"] = modlink
config.patches["@PYTQT_TQT_MODULE@"] = modlink
if sipMajorVersion >= 4:
modlink = ""
elif sys.platform == "win32":
modlink = sip_tqt_config.escape(os.path.join(modDir, "libtqttablec.lib")) + " " + sip_tqt_config.escape(os.path.join(modDir, "libtqtc.lib"))
else:
modlink = sip_tqt_config.escape("-L" + modDir) + " -lqttablecmodule -lqtcmodule"
modlink = sip_tqt_config.escape("-L" + modDir) + " -ltqttablecmodule -ltqtcmodule"
config.patches["@PYQT_QTTABLE_MODULE@"] = modlink
config.patches["@PYTQT_TQTTABLE_MODULE@"] = modlink
# The professional edition needs special handling if XML support is needed.
if config.qt_edition == "professional":
if config.tqt_edition == "professional":
rbprof = "rbprof"
else:
rbprof = ""
config.patches["@PYQT_RBPROF@"] = rbprof
config.patches["@PYTQT_RBPROF@"] = rbprof
# Link in the qassistantclient library for TQt v3.1+.
qaclib = ""
tqaclib = ""
if config.qt_version >= 0x030100:
if config.tqt_version >= 0x030100:
if sys.platform == "win32":
qaclib = r"$(TQTDIR)\lib\qassistantclient.lib"
tqaclib = r"$(TQTDIR)\lib\tqassistantclient.lib"
else:
qaclib = "-lqassistantclient"
tqaclib = "-ltqassistantclient"
config.patches["@PYQT_QASSISTANTCLIENT_LIB@"] = qaclib
config.patches["@PYTQT_QASSISTANTCLIENT_LIB@"] = tqaclib
# Check for TQScintilla.
if config.qt_version >= 0x030000:
if config.tqt_version >= 0x030000:
checkTQScintilla()
# Create a build directory that we can compile test programs.
maindir = mkTempBuildDir()
# Check what additional modules to build.
if config.qt_version >= 0x020000:
if config.tqt_version >= 0x020000:
moduleChecks(maindir)
# Work out the platform and TQt version tags to pass to SIP-TQt to generate the
# code we need.
if config.qt_lib == "qte":
if config.tqt_lib == "tqte":
plattag = "WS_QWS"
elif sys.platform == "win32":
plattag = "WS_WIN"
@ -606,7 +606,7 @@ def main(argv):
else:
plattag = "WS_X11"
qttags = {
tqttags = {
0x020000: "TQt_1_43",
0x020100: "TQt_2_00",
0x020200: "TQt_2_1_0",
@ -626,7 +626,7 @@ def main(argv):
0x040000: "TQt_3_3_0"
}
qttag = versionToTag(config.qt_version, qttags, "TQt")
tqttag = versionToTag(config.tqt_version, tqttags, "TQt")
# Work out the TQScintilla tag.
if sciVersion >= 0:
@ -648,20 +648,20 @@ def main(argv):
subdirs = []
for mname in buildModules:
if mname == "qtext":
if mname == "tqtext":
xtratag = scitag
else:
xtratag = None
generateSource(mname, plattag, qttag, xtratag)
generateSource(mname, plattag, tqttag, xtratag)
subdirs.append(mname)
# We handle the qtpe module explicitly rather than auto-detect. This is
# We handle the tqtpe module explicitly rather than auto-detect. This is
# because it does things a bit differently and I'm too lazy to deal with it
# properly at the moment.
if qpeTag:
generateSource("qtpe", plattag, qttag, qpeTag)
subdirs.append("qtpe")
if tqpeTag:
generateSource("tqtpe", plattag, tqttag, tqpeTag)
subdirs.append("tqtpe")
# Install the .sip files.
sip_tqt_config.inform("Creating Makefile for .sip files.")
@ -683,23 +683,23 @@ def main(argv):
subdirs.append("sip")
# See which version of pyuic to build.
config.patches["@PYQT_BINDIR@"] = sip_tqt_config.escape(binDir)
config.patches["@PYTQT_BINDIR@"] = sip_tqt_config.escape(binDir)
if config.qt_version >= 0x030000:
sip_tqt_config.inform("Creating Makefile for pyuic3.")
subdirs.append("pyuic3")
olddir = sip_tqt_config.push_dir("pyuic3")
if config.tqt_version >= 0x030000:
sip_tqt_config.inform("Creating Makefile for pytquic3.")
subdirs.append("pytquic3")
olddir = sip_tqt_config.push_dir("pytquic3")
config.create_makefile("pyuic.pro", [])
config.create_makefile("pytquic.pro", [])
sip_tqt_config.pop_dir(olddir)
# Build pylupdate if TQt v3.0 or later.
if config.qt_version >= 0x030000:
sip_tqt_config.inform("Creating Makefile for pylupdate3.")
subdirs.append("pylupdate3")
olddir = sip_tqt_config.push_dir("pylupdate3")
if config.tqt_version >= 0x030000:
sip_tqt_config.inform("Creating Makefile for pytqlupdate3.")
subdirs.append("pytqlupdate3")
olddir = sip_tqt_config.push_dir("pytqlupdate3")
config.create_makefile("pylupdate.pro", [])
config.create_makefile("pytqlupdate.pro", [])
sip_tqt_config.pop_dir(olddir)
# Generate the top-level Makefile.

File diff suppressed because it is too large Load Diff

@ -82,7 +82,7 @@ and run this version of PyTQt.</P
><P
><TT
CLASS="LITERAL"
>qt</TT
>tqt</TT
> is the main module and contains the core classes and most
user interface widgets.</P
></LI
@ -90,7 +90,7 @@ user interface widgets.</P
><P
><TT
CLASS="LITERAL"
>qtaxcontainer</TT
>tqtaxcontainer</TT
> contains a sub-set of the classes implemented
in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.</P
></LI
@ -98,7 +98,7 @@ in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.</P
><P
><TT
CLASS="LITERAL"
>qtcanvas</TT
>tqtcanvas</TT
> contains the classes implemented in TQt's Canvas
module.</P
></LI
@ -106,14 +106,14 @@ module.</P
><P
><TT
CLASS="LITERAL"
>qtgl</TT
>tqtgl</TT
> contains the classes implemented in TQt's OpenGL module.</P
></LI
><LI
><P
><TT
CLASS="LITERAL"
>qtnetwork</TT
>tqtnetwork</TT
> contains the classes implemented in TQt's Network
module.</P
></LI
@ -121,7 +121,7 @@ module.</P
><P
><TT
CLASS="LITERAL"
>qtpe</TT
>tqtpe</TT
> contains the classes implemented in TQtopia (originally
called the TQt Palmtop Environment). It is only supported with TQt/Embedded.</P
></LI
@ -129,14 +129,14 @@ called the TQt Palmtop Environment). It is only supported with TQt/Embedded.</P
><P
><TT
CLASS="LITERAL"
>qtsql</TT
>tqtsql</TT
> contains the classes implemented in TQt's SQL module.</P
></LI
><LI
><P
><TT
CLASS="LITERAL"
>qttable</TT
>tqttable</TT
> contains the classes implemented in TQt's Table
module.</P
></LI
@ -144,7 +144,7 @@ module.</P
><P
><TT
CLASS="LITERAL"
>qtui</TT
>tqtui</TT
> contains the classes implemented in TQt's tqui library.
These allow GUIs to be created directly from TQt Designer's
<TT
@ -156,14 +156,14 @@ CLASS="LITERAL"
><P
><TT
CLASS="LITERAL"
>qtxml</TT
>tqtxml</TT
> contains the classes implemented in TQt's XML module.</P
></LI
><LI
><P
><TT
CLASS="LITERAL"
>qtext</TT
>tqtext</TT
> contains useful third-party classes that are not part
of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of
the Scintilla programmer's editor class.</P
@ -172,11 +172,11 @@ the Scintilla programmer's editor class.</P
><P
>PyTQt also includes the <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> and
<TT
CLASS="LITERAL"
>pylupdate</TT
>pytqlupdate</TT
> utilities which correspond to the TQt
<TT
CLASS="LITERAL"
@ -187,11 +187,11 @@ CLASS="LITERAL"
> utilities.
<TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> converts the GUI designs created with TQt Designer to
executable Python code. <TT
CLASS="LITERAL"
>pylupdate</TT
>pytqlupdate</TT
> scans Python code,
extracts all strings that are candidates for internationalisation, and creates
an XML file for use by TQt Linguist.</P
@ -223,18 +223,18 @@ CLASS="LITERAL"
><P
>PyTQt includes <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> which generates Python code from the
same XML. The Python code is self contained and can be executed immediately.</P
><P
>It is sometimes useful to be able to include some specific Python code in the
output generated by <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
>. For example, if you are using
custom widgets, <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> has no way of knowing the name of the
Python module containing the widget and so cannot generate the required
<TT
@ -243,7 +243,7 @@ CLASS="LITERAL"
> statement. To help get around this,
<TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> will extract any lines entered in the
<TT
CLASS="LITERAL"
@ -271,7 +271,7 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
>This comment will be ignored by pyuic.
>This comment will be ignored by pytquic.
Python:
Python:# Import our custom widget.
Python:from foo import bar</PRE
@ -281,7 +281,7 @@ Python:from foo import bar</PRE
><P
>Here's the corresponding output from <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
>.</P
><TABLE
BORDER="0"
@ -291,7 +291,7 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
>from PyTQt.qt import *
>from PyTQt.tqt import *
# Import our custom widget.
from foo import bar</PRE
@ -301,7 +301,7 @@ from foo import bar</PRE
><P
>Thanks to Christian Bird, <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> will extract Python code
entered using TQt Designer to implement slots. In TQt Designer, when you need to
edit a slot and the source editor appears, enter Python code between the curly
@ -317,7 +317,7 @@ CLASS="LITERAL"
>.ui</TT
> file when using <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
>. The
<TT
CLASS="LITERAL"
@ -348,7 +348,7 @@ if self.debugging:
><P
>Here is the resulting code when <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> is run.</P
><TABLE
BORDER="0"
@ -413,7 +413,7 @@ your application.</P
><P
>Thanks to Detlev Offenbach, PyTQt includes the <TT
CLASS="LITERAL"
>pylupdate</TT
>pytqlupdate</TT
>
program. This generates the same <TT
CLASS="LITERAL"
@ -467,7 +467,7 @@ CLASS="SECT1"
NAME="AEN153"
><TT
CLASS="LITERAL"
>pyqtconfig</TT
>pytqtconfig</TT
> and Build System Support</A
></H2
><P
@ -477,14 +477,14 @@ CLASS="LITERAL"
> module) is described
in the SIP documentation. PyTQt includes the <TT
CLASS="LITERAL"
>pyqtconfig</TT
>pytqtconfig</TT
>
module that can be used by configuration scripts of other bindings that are
built on top of PyTQt.</P
><P
>The <TT
CLASS="LITERAL"
>pyqtconfig</TT
>pytqtconfig</TT
> module contains the following classes:</P
><P
></P
@ -514,17 +514,17 @@ CLASS="VARIABLELIST"
><DT
><TT
CLASS="LITERAL"
>pyqt_bin_dir</TT
>pytqt_bin_dir</TT
></DT
><DD
><P
>The name of the directory containing the <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> and
<TT
CLASS="LITERAL"
>pylupdate</TT
>pytqlupdate</TT
> executables.</P
><P
></P
@ -534,7 +534,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_mod_dir</TT
>pytqt_mod_dir</TT
></DT
><DD
><P
@ -547,7 +547,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_modules</TT
>pytqt_modules</TT
></DT
><DD
><P
@ -560,18 +560,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qt_sip_flags</TT
>pytqt_tqt_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qt</TT
>tqt</TT
> module and which should be added to those needed by any
module that imports the <TT
CLASS="LITERAL"
>qt</TT
>tqt</TT
> module.</P
><P
></P
@ -581,18 +581,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qtaxcontainer_sip_flags</TT
>pytqt_tqtaxcontainer_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qtaxcontainer</TT
>tqtaxcontainer</TT
> module and which should be added to those
needed by any module that imports the <TT
CLASS="LITERAL"
>qtaxcontainer</TT
>tqtaxcontainer</TT
> module.</P
><P
></P
@ -602,18 +602,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qtcanvas_sip_flags</TT
>pytqt_tqtcanvas_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qtcanvas</TT
>tqtcanvas</TT
> module and which should be added to those needed by
any module that imports the <TT
CLASS="LITERAL"
>qtcanvas</TT
>tqtcanvas</TT
> module.</P
><P
></P
@ -623,18 +623,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qtext_sip_flags</TT
>pytqt_tqtext_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qtext</TT
>tqtext</TT
> module and which should be added to those needed by
any module that imports the <TT
CLASS="LITERAL"
>qtext</TT
>tqtext</TT
> module.</P
><P
></P
@ -644,18 +644,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qtgl_sip_flags</TT
>pytqt_tqtgl_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qtgl</TT
>tqtgl</TT
> module and which should be added to those needed by any
module that imports the <TT
CLASS="LITERAL"
>qtgl</TT
>tqtgl</TT
> module.</P
><P
></P
@ -665,18 +665,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qtnetwork_sip_flags</TT
>pytqt_tqtnetwork_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qtnetwork</TT
>tqtnetwork</TT
> module and which should be added to those needed
by any module that imports the <TT
CLASS="LITERAL"
>qtnetwork</TT
>tqtnetwork</TT
> module.</P
><P
></P
@ -686,18 +686,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qtsql_sip_flags</TT
>pytqt_tqtsql_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qtsql</TT
>tqtsql</TT
> module and which should be added to those needed by
any module that imports the <TT
CLASS="LITERAL"
>qtsql</TT
>tqtsql</TT
> module.</P
><P
></P
@ -707,18 +707,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qttable_sip_flags</TT
>pytqt_tqttable_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qttable</TT
>tqttable</TT
> module and which should be added to those needed by
any module that imports the <TT
CLASS="LITERAL"
>qttable</TT
>tqttable</TT
> module.</P
><P
></P
@ -728,18 +728,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qtui_sip_flags</TT
>pytqt_tqtui_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qtui</TT
>tqtui</TT
> module and which should be added to those needed by any
module that imports the <TT
CLASS="LITERAL"
>qtui</TT
>tqtui</TT
> module.</P
><P
></P
@ -749,18 +749,18 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_qtxml_sip_flags</TT
>pytqt_tqtxml_sip_flags</TT
></DT
><DD
><P
>A string of the SIP flags used to generate the code for the
<TT
CLASS="LITERAL"
>qtxml</TT
>tqtxml</TT
> module and which should be added to those needed by
any module that imports the <TT
CLASS="LITERAL"
>qtxml</TT
>tqtxml</TT
> module.</P
><P
></P
@ -770,7 +770,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_sip_dir</TT
>pytqt_sip_dir</TT
></DT
><DD
><P
@ -788,7 +788,7 @@ the module.</P
><DT
><TT
CLASS="LITERAL"
>pyqt_version</TT
>pytqt_version</TT
></DT
><DD
><P
@ -805,7 +805,7 @@ CLASS="LITERAL"
><DT
><TT
CLASS="LITERAL"
>pyqt_version_str</TT
>pytqt_version_str</TT
></DT
><DD
><P
@ -831,7 +831,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qt</TT
>tqt</TT
> module.</P
><P
></P
@ -866,7 +866,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qtaxcontainer</TT
>tqtaxcontainer</TT
>
module.</P
><P
@ -902,7 +902,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qtcanvas</TT
>tqtcanvas</TT
>
module.</P
><P
@ -938,7 +938,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qtext</TT
>tqtext</TT
> module.</P
><P
></P
@ -973,7 +973,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qtgl</TT
>tqtgl</TT
> module.</P
><P
></P
@ -1008,7 +1008,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qtnetwork</TT
>tqtnetwork</TT
>
module.</P
><P
@ -1044,7 +1044,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qttable</TT
>tqttable</TT
>
module.</P
><P
@ -1080,7 +1080,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qtsql</TT
>tqtsql</TT
> module.</P
><P
></P
@ -1115,7 +1115,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qtui</TT
>tqtui</TT
> module.</P
><P
></P
@ -1150,7 +1150,7 @@ CLASS="LITERAL"
><P
>The Makefile class for modules that import the <TT
CLASS="LITERAL"
>qtxml</TT
>tqtxml</TT
> module.</P
><P
></P
@ -1751,7 +1751,7 @@ CLASS="PROGRAMLISTING"
><P
>Note that the code generated by <TT
CLASS="LITERAL"
>pyuic</TT
>pytquic</TT
> uses
<TT
CLASS="LITERAL"
@ -1982,7 +1982,7 @@ CLASS="SECT1"
NAME="AEN632"
><TT
CLASS="LITERAL"
>qt</TT
>tqt</TT
> Module Reference</A
></H2
><DIV
@ -10048,7 +10048,7 @@ CLASS="SECT1"
NAME="AEN3784"
><TT
CLASS="LITERAL"
>qtaxcontainer</TT
>tqtaxcontainer</TT
> Module Reference</A
></H2
><DIV
@ -10140,7 +10140,7 @@ CLASS="LITERAL"
> module to manipulate objects
created by the <TT
CLASS="LITERAL"
>qtaxcontainer</TT
>tqtaxcontainer</TT
> module.</P
><P
>The <TT
@ -10243,7 +10243,7 @@ CLASS="SECT1"
NAME="AEN3860"
><TT
CLASS="LITERAL"
>qtcanvas</TT
>tqtcanvas</TT
> Module Reference</A
></H2
><DIV
@ -10493,7 +10493,7 @@ CLASS="SECT1"
NAME="AEN3937"
><TT
CLASS="LITERAL"
>qtext</TT
>tqtext</TT
> Module Reference</A
></H2
><DIV
@ -10943,7 +10943,7 @@ CLASS="SECT1"
NAME="AEN4076"
><TT
CLASS="LITERAL"
>qtgl</TT
>tqtgl</TT
> Module Reference</A
></H2
><DIV
@ -11035,7 +11035,7 @@ CLASS="SECT1"
NAME="AEN4107"
><TT
CLASS="LITERAL"
>qtnetwork</TT
>tqtnetwork</TT
> Module Reference</A
></H2
><DIV
@ -11410,7 +11410,7 @@ CLASS="SECT1"
NAME="AEN4243"
><TT
CLASS="LITERAL"
>qtpe</TT
>tqtpe</TT
> Module Reference</A
></H2
><DIV
@ -11739,7 +11739,7 @@ CLASS="SECT1"
NAME="AEN4343"
><TT
CLASS="LITERAL"
>qtsql</TT
>tqtsql</TT
> Module Reference</A
></H2
><DIV
@ -12192,7 +12192,7 @@ CLASS="SECT1"
NAME="AEN4486"
><TT
CLASS="LITERAL"
>qttable</TT
>tqttable</TT
> Module Reference</A
></H2
><DIV
@ -12274,7 +12274,7 @@ CLASS="SECT1"
NAME="AEN4509"
><TT
CLASS="LITERAL"
>qtui</TT
>tqtui</TT
> Module Reference</A
></H2
><DIV
@ -12300,7 +12300,7 @@ CLASS="SECT1"
NAME="AEN4516"
><TT
CLASS="LITERAL"
>qtxml</TT
>tqtxml</TT
> Module Reference</A
></H2
><DIV

@ -54,61 +54,61 @@ The bindings are implemented as a number of Python modules
<ItemizedList>
<ListItem>
<Para>
<Literal>qt</Literal> is the main module and contains the core classes and most
<Literal>tqt</Literal> is the main module and contains the core classes and most
user interface widgets.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtaxcontainer</Literal> contains a sub-set of the classes implemented
<Literal>tqtaxcontainer</Literal> contains a sub-set of the classes implemented
in TQt's TQAxContainer module, part of TQt's ActiveTQt framework.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtcanvas</Literal> contains the classes implemented in TQt's Canvas
<Literal>tqtcanvas</Literal> contains the classes implemented in TQt's Canvas
module.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtgl</Literal> contains the classes implemented in TQt's OpenGL module.
<Literal>tqtgl</Literal> contains the classes implemented in TQt's OpenGL module.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtnetwork</Literal> contains the classes implemented in TQt's Network
<Literal>tqtnetwork</Literal> contains the classes implemented in TQt's Network
module.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtpe</Literal> contains the classes implemented in TQtopia (originally
<Literal>tqtpe</Literal> contains the classes implemented in TQtopia (originally
called the TQt Palmtop Environment). It is only supported with TQt/Embedded.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtsql</Literal> contains the classes implemented in TQt's SQL module.
<Literal>tqtsql</Literal> contains the classes implemented in TQt's SQL module.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qttable</Literal> contains the classes implemented in TQt's Table
<Literal>tqttable</Literal> contains the classes implemented in TQt's Table
module.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtui</Literal> contains the classes implemented in TQt's tqui library.
<Literal>tqtui</Literal> contains the classes implemented in TQt's tqui library.
These allow GUIs to be created directly from TQt Designer's
<Literal>.ui</Literal> files.
</Para>
@ -116,13 +116,13 @@ These allow GUIs to be created directly from TQt Designer's
<ListItem>
<Para>
<Literal>qtxml</Literal> contains the classes implemented in TQt's XML module.
<Literal>tqtxml</Literal> contains the classes implemented in TQt's XML module.
</Para>
</ListItem>
<ListItem>
<Para>
<Literal>qtext</Literal> contains useful third-party classes that are not part
<Literal>tqtext</Literal> contains useful third-party classes that are not part
of TQt. At the moment it contains bindings for TQScintilla, the port to TQt of
the Scintilla programmer's editor class.
</Para>
@ -130,11 +130,11 @@ the Scintilla programmer's editor class.
</ItemizedList>
<Para>
PyTQt also includes the <Literal>pyuic</Literal> and
<Literal>pylupdate</Literal> utilities which correspond to the TQt
PyTQt also includes the <Literal>pytquic</Literal> and
<Literal>pytqlupdate</Literal> utilities which correspond to the TQt
<Literal>uic</Literal> and <Literal>lupdate</Literal> utilities.
<Literal>pyuic</Literal> converts the GUI designs created with TQt Designer to
executable Python code. <Literal>pylupdate</Literal> scans Python code,
<Literal>pytquic</Literal> converts the GUI designs created with TQt Designer to
executable Python code. <Literal>pytqlupdate</Literal> scans Python code,
extracts all strings that are candidates for internationalisation, and creates
an XML file for use by TQt Linguist.
</Para>
@ -196,7 +196,7 @@ The missing <Literal>MacintoshVersion</Literal> enum has been added.
<ListItem>
<Para>
<Literal>PYQT_BUILD</Literal> has been removed.
<Literal>PYTQT_BUILD</Literal> has been removed.
</Para>
</ListItem>
@ -223,17 +223,17 @@ It generates an XML description of a GUI design. TQt includes
</Para>
<Para>
PyTQt includes <Literal>pyuic</Literal> which generates Python code from the
PyTQt includes <Literal>pytquic</Literal> which generates Python code from the
same XML. The Python code is self contained and can be executed immediately.
</Para>