diff options
author | aneejit1 <aneejit1@gmail.com> | 2022-07-28 15:46:19 +0000 |
---|---|---|
committer | aneejit1 <aneejit1@gmail.com> | 2022-07-30 17:54:15 +0000 |
commit | e602246539fd7435aaeb440fcb7f852c92c8426b (patch) | |
tree | 35e09f5d93c67158e6c1160d6d9b27ae8a0bf966 /examples3/SQL/frmconnect.py | |
parent | b34531364d5c0d3be7056d87011afd8bd538a0e7 (diff) | |
download | pytqt-e602246539fd7435aaeb440fcb7f852c92c8426b.tar.gz pytqt-e602246539fd7435aaeb440fcb7f852c92c8426b.zip |
Remove Qt V2 support and example files
Build files for pyuic2 have been removed along with the examples for
version 2 of Qt and the build/configure scripts have been amended
accordingly. The "examples3" directory has been renamed to just
"examples".
Signed-off-by: aneejit1 <aneejit1@gmail.com>
Diffstat (limited to 'examples3/SQL/frmconnect.py')
-rw-r--r-- | examples3/SQL/frmconnect.py | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/examples3/SQL/frmconnect.py b/examples3/SQL/frmconnect.py deleted file mode 100644 index 97fb406..0000000 --- a/examples3/SQL/frmconnect.py +++ /dev/null @@ -1,120 +0,0 @@ -# Form implementation generated from reading ui file 'frmconnect.ui' -# -# Created: Sam Jul 6 12:47:10 2002 -# by: The PyTQt User Interface Compiler (pyuic) -# -# WARNING! All changes made in this file will be lost! - - -from python_tqt.qt import * - - -class frmConnect(TQDialog): - def __init__(self,parent = None,name = None,modal = 0,fl = 0): - TQDialog.__init__(self,parent,name,modal,fl) - - if name == None: - self.setName("frmConnect") - - self.resize(415,154) - self.setCaption(self.trUtf8("Connecting")) - self.setSizeGripEnabled(1) - - frmConnectLayout = TQGridLayout(self,1,1,11,6,"frmConnectLayout") - - Layout7 = TQVBoxLayout(None,0,6,"Layout7") - - self.buttonOK = TQPushButton(self,"buttonOK") - self.buttonOK.setText(self.trUtf8("&OK")) - self.buttonOK.setAutoDefault(1) - self.buttonOK.setDefault(1) - TQToolTip.add(self.buttonOK,self.trUtf8("Connect to Database")) - Layout7.addWidget(self.buttonOK) - - self.buttonCancel = TQPushButton(self,"buttonCancel") - self.buttonCancel.setText(self.trUtf8("&Cancel")) - TQToolTip.add(self.buttonCancel,self.trUtf8("Cancel Connecting")) - Layout7.addWidget(self.buttonCancel) - - self.buttonHelp = TQPushButton(self,"buttonHelp") - self.buttonHelp.setText(self.trUtf8("&Help")) - TQToolTip.add(self.buttonHelp,self.trUtf8("About Connecting")) - Layout7.addWidget(self.buttonHelp) - spacer = TQSpacerItem(0,0,TQSizePolicy.Minimum,TQSizePolicy.Expanding) - Layout7.addItem(spacer) - - frmConnectLayout.addLayout(Layout7,0,1) - - self.grpConnection = TQGroupBox(self,"grpConnection") - self.grpConnection.setTitle(self.trUtf8("")) - self.grpConnection.setColumnLayout(0,TQt.Vertical) - self.grpConnection.layout().setSpacing(6) - self.grpConnection.layout().setMargin(11) - grpConnectionLayout = TQGridLayout(self.grpConnection.layout()) - grpConnectionLayout.setAlignment(TQt.AlignTop) - - self.txtName = TQLineEdit(self.grpConnection,"txtName") - self.txtName.setMaxLength(16) - TQToolTip.add(self.txtName,self.trUtf8("Database User ID")) - - grpConnectionLayout.addWidget(self.txtName,0,1) - - self.lblDatabase = TQLabel(self.grpConnection,"lblDatabase") - self.lblDatabase.setText(self.trUtf8("&Database")) - - grpConnectionLayout.addWidget(self.lblDatabase,3,0) - - self.lblServer = TQLabel(self.grpConnection,"lblServer") - self.lblServer.setText(self.trUtf8("&Server")) - - grpConnectionLayout.addWidget(self.lblServer,2,0) - - self.lblName = TQLabel(self.grpConnection,"lblName") - self.lblName.setText(self.trUtf8("&Name")) - - grpConnectionLayout.addWidget(self.lblName,0,0) - - self.cmbDatabase = TQComboBox(0,self.grpConnection,"cmbDatabase") - self.cmbDatabase.setEditable(1) - self.cmbDatabase.setAutoCompletion(1) - self.cmbDatabase.setDuplicatesEnabled(0) - TQToolTip.add(self.cmbDatabase,self.trUtf8("Database Name")) - - grpConnectionLayout.addWidget(self.cmbDatabase,3,1) - - self.txtPasswd = TQLineEdit(self.grpConnection,"txtPasswd") - self.txtPasswd.setMaxLength(16) - self.txtPasswd.setEchoMode(TQLineEdit.Password) - TQToolTip.add(self.txtPasswd,self.trUtf8("Database User Password")) - - grpConnectionLayout.addWidget(self.txtPasswd,1,1) - - self.lblPasswd = TQLabel(self.grpConnection,"lblPasswd") - self.lblPasswd.setText(self.trUtf8("&Password")) - - grpConnectionLayout.addWidget(self.lblPasswd,1,0) - - self.cmbServer = TQComboBox(0,self.grpConnection,"cmbServer") - self.cmbServer.setEditable(1) - self.cmbServer.setAutoCompletion(1) - self.cmbServer.setDuplicatesEnabled(0) - TQToolTip.add(self.cmbServer,self.trUtf8("Database Server Address")) - - grpConnectionLayout.addWidget(self.cmbServer,2,1) - - frmConnectLayout.addWidget(self.grpConnection,0,0) - - self.connect(self.buttonOK,SIGNAL("clicked()"),self,SLOT("accept()")) - self.connect(self.buttonCancel,SIGNAL("clicked()"),self,SLOT("reject()")) - - self.setTabOrder(self.txtName,self.txtPasswd) - self.setTabOrder(self.txtPasswd,self.cmbServer) - self.setTabOrder(self.cmbServer,self.cmbDatabase) - self.setTabOrder(self.cmbDatabase,self.buttonOK) - self.setTabOrder(self.buttonOK,self.buttonCancel) - self.setTabOrder(self.buttonCancel,self.buttonHelp) - - self.lblDatabase.setBuddy(self.cmbDatabase) - self.lblServer.setBuddy(self.cmbServer) - self.lblName.setBuddy(self.txtName) - self.lblPasswd.setBuddy(self.txtPasswd) |