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.

107 lines
5.5KB

  1. # -*- coding: utf-8 -*-
  2. # Form implementation generated from reading ui file '/gui/kcnrtl.ui'
  3. #
  4. # Created: Thu May 10 00:52:48 2012
  5. # by: PyQt4 UI code generator 4.9.1
  6. #
  7. # WARNING! All changes made in this file will be lost!
  8. from PyQt4 import QtCore, QtGui
  9. try:
  10. _fromUtf8 = QtCore.QString.fromUtf8
  11. except AttributeError:
  12. _fromUtf8 = lambda s: s
  13. class Ui_MainWindow(object):
  14. def setupUi(self, MainWindow):
  15. MainWindow.setObjectName(_fromUtf8("MainWindow"))
  16. MainWindow.resize(428, 605)
  17. icon = QtGui.QIcon()
  18. icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/kcnrtl_icon.svg")), QtGui.QIcon.Normal, QtGui.QIcon.Off)
  19. MainWindow.setWindowIcon(icon)
  20. self.centralwidget = QtGui.QWidget(MainWindow)
  21. self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
  22. self.gridLayout = QtGui.QGridLayout(self.centralwidget)
  23. self.gridLayout.setObjectName(_fromUtf8("gridLayout"))
  24. self.lineEdit = QtGui.QLineEdit(self.centralwidget)
  25. self.lineEdit.setInputMask(_fromUtf8(""))
  26. self.lineEdit.setObjectName(_fromUtf8("lineEdit"))
  27. self.gridLayout.addWidget(self.lineEdit, 0, 0, 1, 1)
  28. self.tabWidget = QtGui.QTabWidget(self.centralwidget)
  29. self.tabWidget.setObjectName(_fromUtf8("tabWidget"))
  30. self.tab = QtGui.QWidget()
  31. self.tab.setObjectName(_fromUtf8("tab"))
  32. self.verticalLayout_3 = QtGui.QVBoxLayout(self.tab)
  33. self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3"))
  34. self.comboBox = QtGui.QComboBox(self.tab)
  35. self.comboBox.setObjectName(_fromUtf8("comboBox"))
  36. self.verticalLayout_3.addWidget(self.comboBox)
  37. self.webView = QtWebKit.QWebView(self.tab)
  38. self.webView.setStyleSheet(_fromUtf8(""))
  39. self.webView.setUrl(QtCore.QUrl(_fromUtf8("about:blank")))
  40. self.webView.setObjectName(_fromUtf8("webView"))
  41. self.verticalLayout_3.addWidget(self.webView)
  42. self.tabWidget.addTab(self.tab, _fromUtf8(""))
  43. self.tab_2 = QtGui.QWidget()
  44. self.tab_2.setObjectName(_fromUtf8("tab_2"))
  45. self.verticalLayout_2 = QtGui.QVBoxLayout(self.tab_2)
  46. self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2"))
  47. self.listView = QtGui.QListView(self.tab_2)
  48. self.listView.setObjectName(_fromUtf8("listView"))
  49. self.verticalLayout_2.addWidget(self.listView)
  50. self.tabWidget.addTab(self.tab_2, _fromUtf8(""))
  51. self.tab_3 = QtGui.QWidget()
  52. self.tab_3.setObjectName(_fromUtf8("tab_3"))
  53. self.verticalLayout_4 = QtGui.QVBoxLayout(self.tab_3)
  54. self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4"))
  55. self.listView_2 = QtGui.QListView(self.tab_3)
  56. self.listView_2.setObjectName(_fromUtf8("listView_2"))
  57. self.verticalLayout_4.addWidget(self.listView_2)
  58. self.tabWidget.addTab(self.tab_3, _fromUtf8(""))
  59. self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)
  60. self.horizontalLayout = QtGui.QHBoxLayout()
  61. self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
  62. self.checkBox = QtGui.QCheckBox(self.centralwidget)
  63. self.checkBox.setObjectName(_fromUtf8("checkBox"))
  64. self.horizontalLayout.addWidget(self.checkBox)
  65. self.comboBox_2 = QtGui.QComboBox(self.centralwidget)
  66. self.comboBox_2.setObjectName(_fromUtf8("comboBox_2"))
  67. self.horizontalLayout.addWidget(self.comboBox_2)
  68. self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 1)
  69. MainWindow.setCentralWidget(self.centralwidget)
  70. self.menubar = QtGui.QMenuBar(MainWindow)
  71. self.menubar.setGeometry(QtCore.QRect(0, 0, 428, 21))
  72. self.menubar.setObjectName(_fromUtf8("menubar"))
  73. MainWindow.setMenuBar(self.menubar)
  74. self.statusbar = QtGui.QStatusBar(MainWindow)
  75. self.statusbar.setObjectName(_fromUtf8("statusbar"))
  76. MainWindow.setStatusBar(self.statusbar)
  77. self.retranslateUi(MainWindow)
  78. self.tabWidget.setCurrentIndex(0)
  79. QtCore.QMetaObject.connectSlotsByName(MainWindow)
  80. def retranslateUi(self, MainWindow):
  81. MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "KCnrtl", None, QtGui.QApplication.UnicodeUTF8))
  82. self.lineEdit.setText(QtGui.QApplication.translate("MainWindow", "Tapez un mot et pressez Entrer", None, QtGui.QApplication.UnicodeUTF8))
  83. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QtGui.QApplication.translate("MainWindow", "Lexicographie", None, QtGui.QApplication.UnicodeUTF8))
  84. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), QtGui.QApplication.translate("MainWindow", "Synonymie", None, QtGui.QApplication.UnicodeUTF8))
  85. self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), QtGui.QApplication.translate("MainWindow", "Antonymie", None, QtGui.QApplication.UnicodeUTF8))
  86. self.checkBox.setToolTip(QtGui.QApplication.translate("MainWindow", "<html><head/><body><p>En choisissant ce mode, vous pouvez directement utilisez le contenu du presse-papiers pour vos requêtes.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
  87. self.checkBox.setText(QtGui.QApplication.translate("MainWindow", "Clipboard Mode", None, QtGui.QApplication.UnicodeUTF8))
  88. from PyQt4 import QtWebKit
  89. import resources.kcnrtl_rc
  90. if __name__ == "__main__":
  91. import sys
  92. app = QtGui.QApplication(sys.argv)
  93. MainWindow = QtGui.QMainWindow()
  94. ui = Ui_MainWindow()
  95. ui.setupUi(MainWindow)
  96. MainWindow.show()
  97. sys.exit(app.exec_())