SIP4 python bindings for TQt
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

frmconnect.py 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # Form implementation generated from reading ui file 'frmconnect.ui'
  2. #
  3. # Created: Sam Jul 6 12:47:10 2002
  4. # by: The PyTQt User Interface Compiler (pyuic)
  5. #
  6. # WARNING! All changes made in this file will be lost!
  7. from python_tqt.qt import *
  8. class frmConnect(TQDialog):
  9. def __init__(self,parent = None,name = None,modal = 0,fl = 0):
  10. TQDialog.__init__(self,parent,name,modal,fl)
  11. if name == None:
  12. self.setName("frmConnect")
  13. self.resize(415,154)
  14. self.setCaption(self.trUtf8("Connecting"))
  15. self.setSizeGripEnabled(1)
  16. frmConnectLayout = TQGridLayout(self,1,1,11,6,"frmConnectLayout")
  17. Layout7 = TQVBoxLayout(None,0,6,"Layout7")
  18. self.buttonOK = TQPushButton(self,"buttonOK")
  19. self.buttonOK.setText(self.trUtf8("&OK"))
  20. self.buttonOK.setAutoDefault(1)
  21. self.buttonOK.setDefault(1)
  22. TQToolTip.add(self.buttonOK,self.trUtf8("Connect to Database"))
  23. Layout7.addWidget(self.buttonOK)
  24. self.buttonCancel = TQPushButton(self,"buttonCancel")
  25. self.buttonCancel.setText(self.trUtf8("&Cancel"))
  26. TQToolTip.add(self.buttonCancel,self.trUtf8("Cancel Connecting"))
  27. Layout7.addWidget(self.buttonCancel)
  28. self.buttonHelp = TQPushButton(self,"buttonHelp")
  29. self.buttonHelp.setText(self.trUtf8("&Help"))
  30. TQToolTip.add(self.buttonHelp,self.trUtf8("About Connecting"))
  31. Layout7.addWidget(self.buttonHelp)
  32. spacer = TQSpacerItem(0,0,TQSizePolicy.Minimum,TQSizePolicy.Expanding)
  33. Layout7.addItem(spacer)
  34. frmConnectLayout.addLayout(Layout7,0,1)
  35. self.grpConnection = TQGroupBox(self,"grpConnection")
  36. self.grpConnection.setTitle(self.trUtf8(""))
  37. self.grpConnection.setColumnLayout(0,TQt.Vertical)
  38. self.grpConnection.layout().setSpacing(6)
  39. self.grpConnection.layout().setMargin(11)
  40. grpConnectionLayout = TQGridLayout(self.grpConnection.layout())
  41. grpConnectionLayout.setAlignment(TQt.AlignTop)
  42. self.txtName = TQLineEdit(self.grpConnection,"txtName")
  43. self.txtName.setMaxLength(16)
  44. TQToolTip.add(self.txtName,self.trUtf8("Database User ID"))
  45. grpConnectionLayout.addWidget(self.txtName,0,1)
  46. self.lblDatabase = TQLabel(self.grpConnection,"lblDatabase")
  47. self.lblDatabase.setText(self.trUtf8("&Database"))
  48. grpConnectionLayout.addWidget(self.lblDatabase,3,0)
  49. self.lblServer = TQLabel(self.grpConnection,"lblServer")
  50. self.lblServer.setText(self.trUtf8("&Server"))
  51. grpConnectionLayout.addWidget(self.lblServer,2,0)
  52. self.lblName = TQLabel(self.grpConnection,"lblName")
  53. self.lblName.setText(self.trUtf8("&Name"))
  54. grpConnectionLayout.addWidget(self.lblName,0,0)
  55. self.cmbDatabase = TQComboBox(0,self.grpConnection,"cmbDatabase")
  56. self.cmbDatabase.setEditable(1)
  57. self.cmbDatabase.setAutoCompletion(1)
  58. self.cmbDatabase.setDuplicatesEnabled(0)
  59. TQToolTip.add(self.cmbDatabase,self.trUtf8("Database Name"))
  60. grpConnectionLayout.addWidget(self.cmbDatabase,3,1)
  61. self.txtPasswd = TQLineEdit(self.grpConnection,"txtPasswd")
  62. self.txtPasswd.setMaxLength(16)
  63. self.txtPasswd.setEchoMode(TQLineEdit.Password)
  64. TQToolTip.add(self.txtPasswd,self.trUtf8("Database User Password"))
  65. grpConnectionLayout.addWidget(self.txtPasswd,1,1)
  66. self.lblPasswd = TQLabel(self.grpConnection,"lblPasswd")
  67. self.lblPasswd.setText(self.trUtf8("&Password"))
  68. grpConnectionLayout.addWidget(self.lblPasswd,1,0)
  69. self.cmbServer = TQComboBox(0,self.grpConnection,"cmbServer")
  70. self.cmbServer.setEditable(1)
  71. self.cmbServer.setAutoCompletion(1)
  72. self.cmbServer.setDuplicatesEnabled(0)
  73. TQToolTip.add(self.cmbServer,self.trUtf8("Database Server Address"))
  74. grpConnectionLayout.addWidget(self.cmbServer,2,1)
  75. frmConnectLayout.addWidget(self.grpConnection,0,0)
  76. self.connect(self.buttonOK,SIGNAL("clicked()"),self,SLOT("accept()"))
  77. self.connect(self.buttonCancel,SIGNAL("clicked()"),self,SLOT("reject()"))
  78. self.setTabOrder(self.txtName,self.txtPasswd)
  79. self.setTabOrder(self.txtPasswd,self.cmbServer)
  80. self.setTabOrder(self.cmbServer,self.cmbDatabase)
  81. self.setTabOrder(self.cmbDatabase,self.buttonOK)
  82. self.setTabOrder(self.buttonOK,self.buttonCancel)
  83. self.setTabOrder(self.buttonCancel,self.buttonHelp)
  84. self.lblDatabase.setBuddy(self.cmbDatabase)
  85. self.lblServer.setBuddy(self.cmbServer)
  86. self.lblName.setBuddy(self.txtName)
  87. self.lblPasswd.setBuddy(self.txtPasswd)