Created
July 24, 2016 19:22
-
-
Save sarim/bb78d42eecb81f0bfd86c3ed9868c8c3 to your computer and use it in GitHub Desktop.
This file contains 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 'gui.ui' | |
# | |
# Created by: PyQt5 UI code generator 5.6 | |
# | |
# WARNING! All changes made in this file will be lost! | |
from PyQt5 import QtCore, QtGui, QtWidgets | |
class Ui_MainWindow(object): | |
def setupUi(self, MainWindow): | |
MainWindow.setObjectName("MainWindow") | |
MainWindow.resize(800, 600) | |
self.centralwidget = QtWidgets.QWidget(MainWindow) | |
self.centralwidget.setObjectName("centralwidget") | |
self.pushButton = QtWidgets.QPushButton(self.centralwidget) | |
self.pushButton.setGeometry(QtCore.QRect(220, 170, 113, 32)) | |
self.pushButton.setObjectName("pushButton") | |
MainWindow.setCentralWidget(self.centralwidget) | |
self.menubar = QtWidgets.QMenuBar(MainWindow) | |
self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 22)) | |
self.menubar.setObjectName("menubar") | |
self.menuFile = QtWidgets.QMenu(self.menubar) | |
self.menuFile.setObjectName("menuFile") | |
self.menuBaba = QtWidgets.QMenu(self.menubar) | |
self.menuBaba.setObjectName("menuBaba") | |
MainWindow.setMenuBar(self.menubar) | |
self.statusbar = QtWidgets.QStatusBar(MainWindow) | |
self.statusbar.setObjectName("statusbar") | |
MainWindow.setStatusBar(self.statusbar) | |
self.actionOpen = QtWidgets.QAction(MainWindow) | |
self.actionOpen.setObjectName("actionOpen") | |
self.actionGittu = QtWidgets.QAction(MainWindow) | |
self.actionGittu.setObjectName("actionGittu") | |
self.actionSave_Me = QtWidgets.QAction(MainWindow) | |
self.actionSave_Me.setObjectName("actionSave_Me") | |
self.menuFile.addAction(self.actionOpen) | |
self.menuFile.addAction(self.actionGittu) | |
self.menuBaba.addAction(self.actionSave_Me) | |
self.menubar.addAction(self.menuFile.menuAction()) | |
self.menubar.addAction(self.menuBaba.menuAction()) | |
self.retranslateUi(MainWindow) | |
QtCore.QMetaObject.connectSlotsByName(MainWindow) | |
def retranslateUi(self, MainWindow): | |
_translate = QtCore.QCoreApplication.translate | |
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow")) | |
self.pushButton.setText(_translate("MainWindow", "PushButton")) | |
self.menuFile.setTitle(_translate("MainWindow", "File")) | |
self.menuBaba.setTitle(_translate("MainWindow", "Baba")) | |
self.actionOpen.setText(_translate("MainWindow", "Open")) | |
self.actionGittu.setText(_translate("MainWindow", "Gittu")) | |
self.actionSave_Me.setText(_translate("MainWindow", "Save Me")) | |
This file contains 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>800</width> | |
<height>600</height> | |
</rect> | |
</property> | |
<property name="windowTitle"> | |
<string>MainWindow</string> | |
</property> | |
<widget class="QWidget" name="centralwidget"> | |
<widget class="QPushButton" name="pushButton"> | |
<property name="geometry"> | |
<rect> | |
<x>220</x> | |
<y>170</y> | |
<width>113</width> | |
<height>32</height> | |
</rect> | |
</property> | |
<property name="text"> | |
<string>PushButton</string> | |
</property> | |
</widget> | |
</widget> | |
<widget class="QMenuBar" name="menubar"> | |
<property name="geometry"> | |
<rect> | |
<x>0</x> | |
<y>0</y> | |
<width>800</width> | |
<height>22</height> | |
</rect> | |
</property> | |
<widget class="QMenu" name="menuFile"> | |
<property name="title"> | |
<string>File</string> | |
</property> | |
<addaction name="actionOpen"/> | |
<addaction name="actionGittu"/> | |
</widget> | |
<widget class="QMenu" name="menuBaba"> | |
<property name="title"> | |
<string>Baba</string> | |
</property> | |
<addaction name="actionSave_Me"/> | |
</widget> | |
<addaction name="menuFile"/> | |
<addaction name="menuBaba"/> | |
</widget> | |
<widget class="QStatusBar" name="statusbar"/> | |
<action name="actionOpen"> | |
<property name="text"> | |
<string>Open</string> | |
</property> | |
</action> | |
<action name="actionGittu"> | |
<property name="text"> | |
<string>Gittu</string> | |
</property> | |
</action> | |
<action name="actionSave_Me"> | |
<property name="text"> | |
<string>Save Me</string> | |
</property> | |
</action> | |
</widget> | |
<resources/> | |
<connections/> | |
</ui> |
This file contains 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
from gui import Ui_MainWindow | |
import sys | |
from PyQt5.QtWidgets import QMainWindow, QApplication | |
from PyQt5.QtGui import QIcon | |
class Example(QMainWindow, Ui_MainWindow): | |
def __init__(self): | |
super().__init__() | |
self.setupUi(self) | |
self.show() | |
if __name__ == '__main__': | |
app = QApplication(sys.argv) | |
ex = Example() | |
sys.exit(app.exec_()) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment