Rename python extension module from python_tqt to PyTQt.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/12/head
Slávek Banko 1 year ago
parent 223af3b47f
commit 7ec95b9522
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -73,7 +73,7 @@ sipcfg = sip_tqt_config.Configuration()
opt_tqtlib = None
opt_qconfigdir = None
opt_pyqtbindir = sipcfg.default_bin_dir
opt_pyqtmoddir = os.path.join(sipcfg.default_mod_dir, "python_tqt")
opt_pyqtmoddir = os.path.join(sipcfg.default_mod_dir, "PyTQt")
opt_pyqtsipdir = sipcfg.default_sip_dir
opt_qtpetag = None
opt_qsciincdir = None

@ -291,7 +291,7 @@ WIDTH="100%"
><TD
><PRE
CLASS="PROGRAMLISTING"
>from python_tqt.qt import *
>from PyTQt.qt import *
# Import our custom widget.
from foo import bar</PRE

@ -256,7 +256,7 @@ Here's the corresponding output from <Literal>pyuic</Literal>.
</Para>
<ProgramListing>
from python_tqt.qt import *
from PyTQt.qt import *
# Import our custom widget.
from foo import bar

@ -285,7 +285,7 @@ Here's the corresponding output from <Literal>pyuic</Literal>.
</Para>
<ProgramListing>
from python_tqt.qt import *
from PyTQt.qt import *
# Import our custom widget.
from foo import bar

@ -9,7 +9,7 @@
void ConnectDialog::init()
{
from python_tqt.qtsql import TQSqlDatabase
from PyTQt.qtsql import TQSqlDatabase
#qDebug("ConnectDialog init")
self.comboDriver.clear()
self.comboDriver.insertStringList(TQSqlDatabase.drivers())

@ -1,8 +1,8 @@
#!/usr/bin/env python
import sys
from python_tqt.qt import *
from python_tqt.qtsql import *
from PyTQt.qt import *
from PyTQt.qtsql import *
from frmconnect import frmConnect
from dbpar import *

@ -6,7 +6,7 @@
# WARNING! All changes made in this file will be lost!
from python_tqt.qt import *
from PyTQt.qt import *
class frmConnect(TQDialog):

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from python_tqt.qt import *
from PyTQt.qt import *
from form1 import Form1
from dbconnect import createConnection

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from python_tqt.qt import *
from PyTQt.qt import *
from form2 import Form2
from dbconnect import createConnection

@ -1,8 +1,8 @@
#!/usr/bin/env python
import sys
from python_tqt.qt import *
from python_tqt.qtsql import *
from PyTQt.qt import *
from PyTQt.qtsql import *
from sqlex import SqlEx
from connect import ConnectDialog

@ -11,8 +11,8 @@
#*****************************************************************************/
import sys
from python_tqt.qt import *
from python_tqt.qtsql import *
from PyTQt.qt import *
from PyTQt.qtsql import *
from dbconnect import createConnection

@ -11,8 +11,8 @@
#*****************************************************************************/
import sys
from python_tqt.qt import *
from python_tqt.qtsql import *
from PyTQt.qt import *
from PyTQt.qtsql import *
from dbconnect import createConnection

@ -11,8 +11,8 @@
#*****************************************************************************/
import sys
from python_tqt.qt import *
from python_tqt.qtsql import *
from PyTQt.qt import *
from PyTQt.qtsql import *
from dbconnect import createConnection

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from python_tqt.qt import *
from PyTQt.qt import *
def TQMIN(x, y):
if y > x: return y

@ -4,7 +4,7 @@
import sys, string
from python_tqt.qt import *
from PyTQt.qt import *
TRUE = 1
FALSE = 0

@ -4,7 +4,7 @@
import sys, string
from python_tqt.qt import *
from PyTQt.qt import *
fileopen = [

@ -1,7 +1,7 @@
#!/usr/bin/env python
import os, sys, string
from python_tqt.qt import *
from PyTQt.qt import *
if TQT_VERSION < 0x030100:

@ -12,8 +12,8 @@
import sys
import os
from python_tqt.qt import *
from python_tqt.qttable import *
from PyTQt.qt import *
from PyTQt.qttable import *
TRUE = 1
FALSE = 0

@ -10,7 +10,7 @@
#*****************************************************************************/
import sys
from python_tqt.qt import *
from PyTQt.qt import *
TRUE = 1
FALSE = 0

@ -1,8 +1,8 @@
#!/usr/bin/env python
import sys
from python_tqt.qt import *
from python_tqt.qtcanvas import *
from PyTQt.qt import *
from PyTQt.qtcanvas import *
import random

@ -3,7 +3,7 @@
# Copyright (C) 2002 Oleksandr Yakovlyev (yshurik) <yshurik@thekompany.com>
import sys
from python_tqt.qt import *
from PyTQt.qt import *
TRUE = 1
FALSE = 0

@ -10,7 +10,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
# cb_bits and cm_bits were generated by X bitmap program.

@ -4,7 +4,7 @@
import sys, string
from python_tqt.qt import *
from PyTQt.qt import *
class DigitalClock(TQLCDNumber):

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from python_tqt.qt import *
from PyTQt.qt import *
seed = 0.353535353535
KINDA_RAND_MAX = 32767

@ -12,7 +12,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
folder_closed_xpm = [
"16 16 9 1",

@ -3,7 +3,7 @@
# Ported to PyTQt by Issac Trotts on Jan 1, 2002
import sys
from python_tqt.qt import *
from PyTQt.qt import *
import dropsite, secret

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys, random
from python_tqt.qt import *
from PyTQt.qt import *
TRUE = 1
FALSE = 0

@ -1,7 +1,7 @@
# This is part of the dragdrop example.
from python_tqt.qt import *
from PyTQt.qt import *
import secret

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
class FontRowTable( TQFrame ):
def __init__( self, parent=None, name=None ):

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
class Viewer( TQWidget ):
def __init__( self ):

@ -3,8 +3,8 @@
import sys
import math
from python_tqt.qt import *
from python_tqt.qtgl import *
from PyTQt.qt import *
from PyTQt.qtgl import *
from OpenGL.GL import *
def gear(inner_radius,outer_radius,width,teeth,tooth_depth):

@ -5,7 +5,7 @@
from whrandom import randint
import sys
from python_tqt.qt import *
from PyTQt.qt import *
from mywidget import MyWidget

@ -1,6 +1,6 @@
# Copyright (c) 2002 Detlev Offenbach <detlev@die-offenbachs.de>
from python_tqt.qt import *
from PyTQt.qt import *
class MyWidget(TQMainWindow):

@ -11,7 +11,7 @@
#*****************************************************************************/
import sys
from python_tqt.qt import *
from PyTQt.qt import *
TRUE = 1
FALSE = 0

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
FALSE = 0
TRUE = 1

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
FALSE = 0
TRUE = 1

@ -4,7 +4,7 @@
import sys, string
from python_tqt.qt import *
from PyTQt.qt import *
fileopen = [

@ -11,7 +11,7 @@
#*****************************************************************************/
import sys, string
from python_tqt.qt import *
from PyTQt.qt import *
TRUE = 1
FALSE = 0

@ -13,7 +13,7 @@
#*****************************************************************************/
import sys
from python_tqt.qt import *
from PyTQt.qt import *
from random import randint
class AnimatedThingy(TQLabel):

@ -12,7 +12,7 @@
#import pdb
import sys
from python_tqt.qt import *
from PyTQt.qt import *
FALSE = 0
TRUE = 1

@ -5,7 +5,7 @@
from __future__ import print_function
import os
import pickle
from python_tqt.qt import *
from PyTQt.qt import *
from dirview import Directory, DirectoryView
bookmarks = [

@ -11,7 +11,7 @@
#*****************************************************************************/
import sys
from python_tqt.qt import *
from PyTQt.qt import *
TRUE = 1
FALSE = 0

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
INT_MAX = sys.maxsize

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
sayings = [
"<b>Saying 1:</b><br>"

@ -1,7 +1,7 @@
# This is part of the dragdrop example.
from python_tqt.qt import *
from PyTQt.qt import *
def canDecode(e):

@ -7,12 +7,12 @@ import sys
# Check if thread support was enabled.
try:
from python_tqt.qt import TQThread
from PyTQt.qt import TQThread
except:
print("Thread support not enabled")
sys.exit(1)
from python_tqt.qt import *
from PyTQt.qt import *
# The semaphore instances.

@ -12,8 +12,8 @@
import sys
import os
from python_tqt.qt import *
from python_tqt.qttable import *
from PyTQt.qt import *
from PyTQt.qttable import *
TRUE = 1
FALSE = 0

@ -1,7 +1,7 @@
#!/usr/bin/env python
import sys
from python_tqt.qt import *
from PyTQt.qt import *
class Test(TQWidget):
def __init__(self, parent=None, name='Test', f=0):

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
class TabDialog( TQTabDialog ):
def __init__( self, parent=None, name=None, filename=None ):

@ -12,8 +12,8 @@
import sys
import os
from python_tqt.qt import *
from python_tqt.qttable import *
from PyTQt.qt import *
from PyTQt.qttable import *
TRUE = 1
FALSE = 0

@ -11,7 +11,7 @@
***************************************************************************"""
import sys
from python_tqt.qt import *
from PyTQt.qt import *
from random import random
class DynamicTip( TQToolTip ):

@ -3,7 +3,7 @@
# TQt tutorial 1.
import sys
from python_tqt import qt
from PyTQt import qt
a = qt.TQApplication(sys.argv)

@ -3,7 +3,7 @@
# TQt tutorial 10.
import sys
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQVBox):

@ -4,7 +4,7 @@
import sys
import math
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQVBox):

@ -5,7 +5,7 @@
import sys
import math
import random
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQVBox):

@ -5,7 +5,7 @@
import sys
import math
import random
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQWidget):

@ -5,7 +5,7 @@
import sys
import math
import random
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQWidget):

@ -3,7 +3,7 @@
# TQt tutorial 2.
import sys
from python_tqt import qt
from PyTQt import qt
a = qt.TQApplication(sys.argv)

@ -3,7 +3,7 @@
# TQt tutorial 3.
import sys
from python_tqt import qt
from PyTQt import qt
a = qt.TQApplication(sys.argv)

@ -3,7 +3,7 @@
# TQt tutorial 4.
import sys
from python_tqt import qt
from PyTQt import qt
class MyWidget(qt.TQWidget):

@ -3,7 +3,7 @@
# TQt tutorial 5.
import sys
from python_tqt import qt
from PyTQt import qt
class MyWidget(qt.TQVBox):

@ -3,7 +3,7 @@
# TQt tutorial 6.
import sys
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQVBox):

@ -3,7 +3,7 @@
# TQt tutorial 7.
import sys
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQVBox):

@ -3,7 +3,7 @@
# TQt tutorial 8.
import sys
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQVBox):

@ -3,7 +3,7 @@
# TQt tutorial 9.
import sys
from python_tqt import qt
from PyTQt import qt
class LCDRange(qt.TQVBox):

@ -8,8 +8,8 @@
# WARNING! All changes made in this file will be lost!
from python_tqt.qt import *
from python_tqt.qtaxcontainer import TQAxWidget
from PyTQt.qt import *
from PyTQt.qtaxcontainer import TQAxWidget
image0_data = [
"32 32 3 1",

@ -7,8 +7,8 @@
import sys
from python_tqt import qt
from python_tqt import qtaxcontainer
from PyTQt import qt
from PyTQt import qtaxcontainer
import mainwindow

@ -2,7 +2,7 @@
import sys, string
from python_tqt.qt import *
from PyTQt.qt import *
#
## Constructs an analog clock widget that uses an internal TQTimer.

@ -6,8 +6,8 @@ for m_path in sys.path:
if os.path.exists(os.path.join(m_path, 'sip4_tqt')):
m_sip_dir = os.path.join(m_path, 'sip4_tqt')
tqt_modules.insert(0, m_sip_dir)
if os.path.exists(os.path.join(m_path, 'python_tqt')):
m_pyqt_dir = os.path.join(m_path, 'python_tqt')
if os.path.exists(os.path.join(m_path, 'PyTQt')):
m_pyqt_dir = os.path.join(m_path, 'PyTQt')
tqt_modules.insert(0, m_pyqt_dir)
for m_path in tqt_modules:
sys.path.insert(0, m_path)
@ -49,4 +49,4 @@ if is_module_available('qtgl'):
__all__.append('qtgl')
# Import namespaces
from python_tqt import *
from PyTQt import *

@ -134,7 +134,7 @@ void Uic::embed( TQTextStream& out, const char* project, const TQStringList& ima
out << "\n";
out << "\n";
out << "from python_tqt.qt import TQImage, TQMimeSourceFactory";
out << "from PyTQt.qt import TQImage, TQMimeSourceFactory";
#ifndef TQT_NO_IMAGE_COLLECTION_COMPRESSION
out << ", tqUncompress";
#endif

@ -258,13 +258,13 @@ void Uic::createFormImpl( const TQDomElement &e )
}
if (globalIncludes.findIndex("qtable.h") >= 0)
out << indent << "from python_tqt.qttable import TQTable" << endl;
out << indent << "from PyTQt.qttable import TQTable" << endl;
if (!axwidgets.empty())
out << indent << "from python_tqt.qtaxcontainer import TQAxWidget" << endl;
out << indent << "from PyTQt.qtaxcontainer import TQAxWidget" << endl;
if (globalIncludes.findIndex("tqextscintilla.h") >= 0)
out << indent << "from python_tqt.qtext import TQextScintilla" << endl;
out << indent << "from PyTQt.qtext import TQextScintilla" << endl;
registerDatabases( e );
dbConnections = unique( dbConnections );
@ -302,7 +302,7 @@ void Uic::createFormImpl( const TQDomElement &e )
sqlClasses += "TQDataView";
if ( !sqlClasses.empty() ) {
out << indent << "from python_tqt.qtsql import";
out << indent << "from PyTQt.qtsql import";
const char *sep = " ";
for ( it = sqlClasses.begin(); it != sqlClasses.end(); ++it ) {

@ -219,7 +219,7 @@ int main( int argc, char * argv[] )
if (testCode || execCode)
out << "import sys" << endl;
out << "from python_tqt.qt import *" << endl;
out << "from PyTQt.qt import *" << endl;
Uic( fileName, outputFile, out, doc, subcl, trmacro, className, uicClass );

@ -36,7 +36,7 @@
// qt module which sorts it out, but this module doesn't so we add a dummy. It
// is ignored by SIP v4.x and later.
%PrePythonCode
from python_tqt.qt import TQObject
from PyTQt.qt import TQObject
%End

Loading…
Cancel
Save