diff options
Diffstat (limited to 'examples3/SQL/frmconnect.py')
-rw-r--r-- | examples3/SQL/frmconnect.py | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/examples3/SQL/frmconnect.py b/examples3/SQL/frmconnect.py index 23cd067..92cf3f6 100644 --- a/examples3/SQL/frmconnect.py +++ b/examples3/SQL/frmconnect.py @@ -1,7 +1,7 @@ # Form implementation generated from reading ui file 'frmconnect.ui' # # Created: Sam Jul 6 12:47:10 2002 -# by: The PyQt User Interface Compiler (pyuic) +# by: The PyTQt User Interface Compiler (pyuic) # # WARNING! All changes made in this file will be lost! @@ -9,9 +9,9 @@ from qt import * -class frmConnect(QDialog): +class frmConnect(TQDialog): def __init__(self,parent = None,name = None,modal = 0,fl = 0): - QDialog.__init__(self,parent,name,modal,fl) + TQDialog.__init__(self,parent,name,modal,fl) if name == None: self.setName("frmConnect") @@ -20,85 +20,85 @@ class frmConnect(QDialog): self.setCaption(self.trUtf8("Connecting")) self.setSizeGripEnabled(1) - frmConnectLayout = QGridLayout(self,1,1,11,6,"frmConnectLayout") + frmConnectLayout = TQGridLayout(self,1,1,11,6,"frmConnectLayout") - Layout7 = QVBoxLayout(None,0,6,"Layout7") + Layout7 = TQVBoxLayout(None,0,6,"Layout7") - self.buttonOK = QPushButton(self,"buttonOK") + self.buttonOK = TQPushButton(self,"buttonOK") self.buttonOK.setText(self.trUtf8("&OK")) self.buttonOK.setAutoDefault(1) self.buttonOK.setDefault(1) - QToolTip.add(self.buttonOK,self.trUtf8("Connect to Database")) + TQToolTip.add(self.buttonOK,self.trUtf8("Connect to Database")) Layout7.addWidget(self.buttonOK) - self.buttonCancel = QPushButton(self,"buttonCancel") + self.buttonCancel = TQPushButton(self,"buttonCancel") self.buttonCancel.setText(self.trUtf8("&Cancel")) - QToolTip.add(self.buttonCancel,self.trUtf8("Cancel Connecting")) + TQToolTip.add(self.buttonCancel,self.trUtf8("Cancel Connecting")) Layout7.addWidget(self.buttonCancel) - self.buttonHelp = QPushButton(self,"buttonHelp") + self.buttonHelp = TQPushButton(self,"buttonHelp") self.buttonHelp.setText(self.trUtf8("&Help")) - QToolTip.add(self.buttonHelp,self.trUtf8("About Connecting")) + TQToolTip.add(self.buttonHelp,self.trUtf8("About Connecting")) Layout7.addWidget(self.buttonHelp) - spacer = QSpacerItem(0,0,QSizePolicy.Minimum,QSizePolicy.Expanding) + spacer = TQSpacerItem(0,0,TQSizePolicy.Minimum,TQSizePolicy.Expanding) Layout7.addItem(spacer) frmConnectLayout.addLayout(Layout7,0,1) - self.grpConnection = QGroupBox(self,"grpConnection") + self.grpConnection = TQGroupBox(self,"grpConnection") self.grpConnection.setTitle(self.trUtf8("")) - self.grpConnection.setColumnLayout(0,Qt.Vertical) + self.grpConnection.setColumnLayout(0,TQt.Vertical) self.grpConnection.layout().setSpacing(6) self.grpConnection.layout().setMargin(11) - grpConnectionLayout = QGridLayout(self.grpConnection.layout()) - grpConnectionLayout.setAlignment(Qt.AlignTop) + grpConnectionLayout = TQGridLayout(self.grpConnection.layout()) + grpConnectionLayout.setAlignment(TQt.AlignTop) - self.txtName = QLineEdit(self.grpConnection,"txtName") + self.txtName = TQLineEdit(self.grpConnection,"txtName") self.txtName.setMaxLength(16) - QToolTip.add(self.txtName,self.trUtf8("Database User ID")) + TQToolTip.add(self.txtName,self.trUtf8("Database User ID")) grpConnectionLayout.addWidget(self.txtName,0,1) - self.lblDatabase = QLabel(self.grpConnection,"lblDatabase") + self.lblDatabase = TQLabel(self.grpConnection,"lblDatabase") self.lblDatabase.setText(self.trUtf8("&Database")) grpConnectionLayout.addWidget(self.lblDatabase,3,0) - self.lblServer = QLabel(self.grpConnection,"lblServer") + self.lblServer = TQLabel(self.grpConnection,"lblServer") self.lblServer.setText(self.trUtf8("&Server")) grpConnectionLayout.addWidget(self.lblServer,2,0) - self.lblName = QLabel(self.grpConnection,"lblName") + self.lblName = TQLabel(self.grpConnection,"lblName") self.lblName.setText(self.trUtf8("&Name")) grpConnectionLayout.addWidget(self.lblName,0,0) - self.cmbDatabase = QComboBox(0,self.grpConnection,"cmbDatabase") + self.cmbDatabase = TQComboBox(0,self.grpConnection,"cmbDatabase") self.cmbDatabase.setEditable(1) self.cmbDatabase.setAutoCompletion(1) self.cmbDatabase.setDuplicatesEnabled(0) - QToolTip.add(self.cmbDatabase,self.trUtf8("Database Name")) + TQToolTip.add(self.cmbDatabase,self.trUtf8("Database Name")) grpConnectionLayout.addWidget(self.cmbDatabase,3,1) - self.txtPasswd = QLineEdit(self.grpConnection,"txtPasswd") + self.txtPasswd = TQLineEdit(self.grpConnection,"txtPasswd") self.txtPasswd.setMaxLength(16) - self.txtPasswd.setEchoMode(QLineEdit.Password) - QToolTip.add(self.txtPasswd,self.trUtf8("Database User Password")) + self.txtPasswd.setEchoMode(TQLineEdit.Password) + TQToolTip.add(self.txtPasswd,self.trUtf8("Database User Password")) grpConnectionLayout.addWidget(self.txtPasswd,1,1) - self.lblPasswd = QLabel(self.grpConnection,"lblPasswd") + self.lblPasswd = TQLabel(self.grpConnection,"lblPasswd") self.lblPasswd.setText(self.trUtf8("&Password")) grpConnectionLayout.addWidget(self.lblPasswd,1,0) - self.cmbServer = QComboBox(0,self.grpConnection,"cmbServer") + self.cmbServer = TQComboBox(0,self.grpConnection,"cmbServer") self.cmbServer.setEditable(1) self.cmbServer.setAutoCompletion(1) self.cmbServer.setDuplicatesEnabled(0) - QToolTip.add(self.cmbServer,self.trUtf8("Database Server Address")) + TQToolTip.add(self.cmbServer,self.trUtf8("Database Server Address")) grpConnectionLayout.addWidget(self.cmbServer,2,1) |