Created
November 20, 2012 16:45
-
-
Save saghul/4119155 to your computer and use it in GitHub Desktop.
PyQt / PySide bug example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Form implementation generated from reading ui file 'test.ui' | |
# | |
# Created: Tue Nov 20 17:41:14 2012 | |
# by: PyQt4 UI code generator 4.9.3 | |
# | |
# WARNING! All changes made in this file will be lost! | |
from PyQt4 import QtCore, QtGui | |
try: | |
_fromUtf8 = QtCore.QString.fromUtf8 | |
except AttributeError: | |
_fromUtf8 = lambda s: s | |
class Ui_MainWindow(object): | |
def setupUi(self, MainWindow): | |
MainWindow.setObjectName(_fromUtf8("MainWindow")) | |
MainWindow.resize(696, 153) | |
self.centralwidget = QtGui.QWidget(MainWindow) | |
self.centralwidget.setObjectName(_fromUtf8("centralwidget")) | |
self.verticalLayout = QtGui.QVBoxLayout(self.centralwidget) | |
self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) | |
self.widget = QtGui.QWidget(self.centralwidget) | |
self.widget.setObjectName(_fromUtf8("widget")) | |
self.horizontalLayout = QtGui.QHBoxLayout(self.widget) | |
self.horizontalLayout.setMargin(5) | |
self.horizontalLayout.setMargin(0) | |
self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) | |
self.pushButton = QtGui.QPushButton(self.widget) | |
self.pushButton.setObjectName(_fromUtf8("pushButton")) | |
self.horizontalLayout.addWidget(self.pushButton) | |
self.verticalLayout.addWidget(self.widget) | |
MainWindow.setCentralWidget(self.centralwidget) | |
self.menubar = QtGui.QMenuBar(MainWindow) | |
self.menubar.setGeometry(QtCore.QRect(0, 0, 696, 22)) | |
self.menubar.setObjectName(_fromUtf8("menubar")) | |
MainWindow.setMenuBar(self.menubar) | |
self.statusbar = QtGui.QStatusBar(MainWindow) | |
self.statusbar.setObjectName(_fromUtf8("statusbar")) | |
MainWindow.setStatusBar(self.statusbar) | |
self.retranslateUi(MainWindow) | |
QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
def retranslateUi(self, MainWindow): | |
MainWindow.setWindowTitle(QtGui.QApplication.translate("MainWindow", "MainWindow", None, QtGui.QApplication.UnicodeUTF8)) | |
self.pushButton.setText(QtGui.QApplication.translate("MainWindow", "PushButton", None, QtGui.QApplication.UnicodeUTF8)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ui version="4.0"> | |
<class>MainWindow</class> | |
<widget class="QMainWindow" name="MainWindow"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>696</width> | |
<height>153</height> | |
</rect> | |
</property> | |
<property name="windowTitle"> | |
<string>MainWindow</string> | |
</property> | |
<widget class="QWidget" name="centralwidget"> | |
<layout class="QVBoxLayout" name="verticalLayout"> | |
<item> | |
<widget class="QWidget" name="widget" native="true"> | |
<layout class="QHBoxLayout" name="horizontalLayout"> | |
<property name="margin"> | |
<number>5</number> | |
</property> | |
<item> | |
<widget class="QPushButton" name="pushButton"> | |
<property name="text"> | |
<string>PushButton</string> | |
</property> | |
</widget> | |
</item> | |
</layout> | |
</widget> | |
</item> | |
</layout> | |
</widget> | |
<widget class="QMenuBar" name="menubar"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>696</width> | |
<height>22</height> | |
</rect> | |
</property> | |
</widget> | |
<widget class="QStatusBar" name="statusbar"/> | |
</widget> | |
<resources/> | |
<connections/> | |
</ui> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment