Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
Copy Source | Copy HTML # -*- coding: utf-8 -*- # Form implementation generated from reading ui file '/home/username/ /habr.ui' # # Created: Fri Nov 13 23:52:05 2009 # by: PyQt4 UI code generator 4.6 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui class Ui_MainWindow (object): def setupUi (self, MainWindow): MainWindow.setObjectName( "MainWindow" ) MainWindow.resize( 226 , 146 ) self .centralwidget = QtGui.QWidget(MainWindow) self .centralwidget.setObjectName( "centralwidget" ) self .lineEdit = QtGui.QLineEdit( self .centralwidget) self .lineEdit.setGeometry(QtCore.QRect( 10 , 10 , 201 , 26 )) self .lineEdit.setObjectName( "lineEdit" ) self .pushButton = QtGui.QPushButton( self .centralwidget) self .pushButton.setGeometry(QtCore.QRect( 10 , 50 , 92 , 28 )) self .pushButton.setObjectName( "pushButton" ) self .pushButton_2 = QtGui.QPushButton( self .centralwidget) self .pushButton_2.setGeometry(QtCore.QRect( 120 , 50 , 92 , 28 )) self .pushButton_2.setObjectName( "pushButton_2" ) MainWindow.setCentralWidget( self .centralwidget) self .menubar = QtGui.QMenuBar(MainWindow) self .menubar.setGeometry(QtCore.QRect( 0 , 0 , 226 , 25 )) self .menubar.setObjectName( "menubar" ) MainWindow.setMenuBar( self .menubar) self .statusbar = QtGui.QStatusBar(MainWindow) self .statusbar.setObjectName( "statusbar" ) MainWindow.setStatusBar( self .statusbar) self . retranslateUi (MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) def retranslateUi (self, MainWindow): MainWindow.setWindowTitle(QtGui.QApplication.translate( "MainWindow" , "" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) self .pushButton_2.setText(QtGui.QApplication.translate( "MainWindow" , "PushButton" , None, QtGui.QApplication.UnicodeUTF8)) if __name__ == "__main__" : import sys app = QtGui.QApplication( sys .argv) MainWindow = QtGui.QMainWindow() ui = Ui_MainWindow () ui. setupUi (MainWindow) MainWindow.show() sys .exit(app.exec_())
QtGui.QApplication.translate ("MainWindow", "HabraWindow", None, QtGui.QApplication.UnicodeUTF8)
Copy Source | Copy HTML
- def toUtf (self, text):
- return QtGui.QApplication.translate ( "MainWindow" , text, None, QtGui.QApplication.UnicodeUTF8)
Copy Source | Copy HTML
- #! / usr / bin / python
- # - * - coding: utf-8 - * -
- import sys
- from forms import MainForm
- def main ():
- app, mainForm, window = MainForm.init ()
- window.show ()
- sys .exit (app.exec_ ())
- if __name__ == "__main__" :
- main ()
Copy Source | Copy HTML
- # - * - coding: utf-8 - * -
- import sys
- from PyQt4 import QtCore, QtGui, Qt
- class mainWindow (object):
- def setupUi (self, MainWindow):
- # set a fixed size for the window (knowledge of the method will not be superfluous)
- MainWindow.setFixedSize ( 950 , 550 )
- # I'm in charge, and all widgets from me are inherited
- self .main = QtGui.QWidget (MainWindow)
- MainWindow.setCentralWidget ( self .main)
- # for the completeness of sensations create a menu "File"
- self .menubar = QtGui.QMenuBar (MainWindow)
- self .menubar.setGeometry (QtCore.QRect ( 0 , 0 , 559 , 25 ))
- # create a QAction trigger action to bind it to a menu item
- self .menu_file_exit = QtGui.QAction ( self .main)
- self .menu_file_exit.setText ( self . toUtf ( "& Exit" ))
- MainWindow.connect ( self .menu_file_exit, QtCore.SIGNAL ( 'triggered ()' ), sys .exit)
- # create a menu item and add our QAction to it
- self .menu_file = self .menubar.addMenu ( self . toUtf ( '& File' ))
- self .menu_file.addAction ( self .menu_file_exit)
- MainWindow.setMenuBar ( self .menubar)
- # for solidity we attach statusbar
- self .statusbar = QtGui.QStatusBar (MainWindow)
- MainWindow.setStatusBar ( self .statusbar)
- # move the window where we want
- MainWindow.move ( 140 , 80 )
- self . retranslateUi (MainWindow)
- def retranslateUi (self, MainWindow):
- # give the window a name
- MainWindow.setWindowTitle ( self . ToUtf ( "HabraWindow 2.0" ))
- def toUtf (self, text):
- # that translation function
- return QtGui.QApplication.translate ( "MainWindow" , text, None, QtGui.QApplication.UnicodeUTF8)
- def init ():
- # initialize Qt
- app = QtGui.QApplication ( sys .argv)
- # create a separate, independent window object ...
- MainWindow = QtGui.QMainWindow ()
- # ... and run it through our class
- form = mainWindow ()
- form. setupUi (MainWindow)
- return app, form, MainWindow
main.py
forms /
> __init__.py (an empty file is needed for the folder to be recognized as a Python package)
> MainForm.py
Copy Source | Copy HTML
- # - * - coding: utf-8 - * -
- from PyQt4 import QtCore, QtGui
- class childWindow (object):
- def setupUi (self, SmallWindow):
- SmallWindow.setFixedSize ( 330 , 200 )
- SmallWindow.setWindowFlags (QtCore.Qt.Window)
- self . retranslateUi (SmallWindow)
- SmallWindow.setWindowModality (QtCore.Qt.WindowModal)
- def retranslateUi (self, Form):
- Form.setWindowTitle ( self . ToUtf ( "I am a child window" ))
- def toUtf (self, text):
- return QtGui.QApplication.translate ( "SmallWindow" , text, None, QtGui.QApplication.UnicodeUTF8)
- def init (parentwindow):
- SmallWindow = QtGui.QWidget (parentwindow)
- form = childWindow ()
- form. setupUi (SmallWindow)
- Return form, SmallWindow
Copy Source | Copy HTML
- ...
- from forms import ChildForm
- ...
- # create your own window class, this is needed to solve some problems with inheritance
- class myQMainWindow (QtGui.QMainWindow):
- def __init__ (self, parent = None):
- QtGui.QMainWindow. __init__ (self, parent)
- ...
- def setupUi (self, MainWindow):
- ...
- # we take out the window in the class field for more convenient inheritance
- self .mainwindow = MainWindow
- # draw a button by which the child window will be displayed
- self .btnHello = QtGui.QPushButton ( self .main)
- self .btnHello.setGeometry (QtCore.QRect ( 20 , 19 , 92 , 28 ))
- MainWindow.connect ( self .btnHello, QtCore.SIGNAL ( 'clicked ()' ), self . ShowChildWindow )
- ...
- def retranslateUi (self, MainWindow):
- ...
- self .btnHello.setText ( self .toUtf ( "Click!" ))
- ...
- def showChildWindow (self):
- self .childForm, self .childWindow = ChildForm. init ( self .mainwindow)
- self .childWindow.show ()
- def init ():
- ...
- #MainWindow = QtGui.QMainWindow ()
- MainWindow = myQMainWindow ()
- ...
Source: https://habr.com/ru/post/75226/
All Articles