1# -*- coding: utf-8 -*- 2 3# Form implementation generated from reading ui file 'mainwindow.ui' 4# 5# Created: Fri Jul 26 06:46:58 2013 6# by: PyQt5 UI code generator 5.0.1-snapshot-2a99e59669ee 7# 8# WARNING! All changes made in this file will be lost! 9 10from PyQt5 import QtCore, QtGui, QtWidgets 11 12class Ui_MainWindow(object): 13 def setupUi(self, MainWindow): 14 MainWindow.setObjectName("MainWindow") 15 MainWindow.resize(812, 605) 16 self.centralWidget = QtWidgets.QWidget(MainWindow) 17 self.centralWidget.setObjectName("centralWidget") 18 self.hboxlayout = QtWidgets.QHBoxLayout(self.centralWidget) 19 self.hboxlayout.setContentsMargins(0, 0, 0, 0) 20 self.hboxlayout.setSpacing(6) 21 self.hboxlayout.setObjectName("hboxlayout") 22 self.Frame3 = QtWidgets.QFrame(self.centralWidget) 23 self.Frame3.setFrameShape(QtWidgets.QFrame.StyledPanel) 24 self.Frame3.setFrameShadow(QtWidgets.QFrame.Sunken) 25 self.Frame3.setObjectName("Frame3") 26 self.vboxlayout = QtWidgets.QVBoxLayout(self.Frame3) 27 self.vboxlayout.setContentsMargins(1, 1, 1, 1) 28 self.vboxlayout.setSpacing(0) 29 self.vboxlayout.setObjectName("vboxlayout") 30 self.WebBrowser = QAxContainer.QAxWidget(self.Frame3) 31 self.WebBrowser.setFocusPolicy(QtCore.Qt.StrongFocus) 32 self.WebBrowser.setControl("{8856F961-340A-11D0-A96B-00C04FD705A2}") 33 self.WebBrowser.setObjectName("WebBrowser") 34 self.vboxlayout.addWidget(self.WebBrowser) 35 self.hboxlayout.addWidget(self.Frame3) 36 MainWindow.setCentralWidget(self.centralWidget) 37 self.tbNavigate = QtWidgets.QToolBar(MainWindow) 38 self.tbNavigate.setOrientation(QtCore.Qt.Horizontal) 39 self.tbNavigate.setObjectName("tbNavigate") 40 MainWindow.addToolBar(4, self.tbNavigate) 41 self.tbAddress = QtWidgets.QToolBar(MainWindow) 42 self.tbAddress.setOrientation(QtCore.Qt.Horizontal) 43 self.tbAddress.setObjectName("tbAddress") 44 MainWindow.addToolBar(4, self.tbAddress) 45 self.menubar = QtWidgets.QMenuBar(MainWindow) 46 self.menubar.setGeometry(QtCore.QRect(0, 0, 812, 26)) 47 self.menubar.setObjectName("menubar") 48 self.PopupMenu = QtWidgets.QMenu(self.menubar) 49 self.PopupMenu.setObjectName("PopupMenu") 50 self.FileNewGroup_2 = QtWidgets.QMenu(self.PopupMenu) 51 self.FileNewGroup_2.setObjectName("FileNewGroup_2") 52 self.unnamed = QtWidgets.QMenu(self.menubar) 53 self.unnamed.setObjectName("unnamed") 54 MainWindow.setMenuBar(self.menubar) 55 self.actionGo = QtWidgets.QAction(MainWindow) 56 icon = QtGui.QIcon() 57 icon.addFile(":/icons/image0.xpm") 58 self.actionGo.setIcon(icon) 59 self.actionGo.setObjectName("actionGo") 60 self.actionBack = QtWidgets.QAction(MainWindow) 61 icon1 = QtGui.QIcon() 62 icon1.addFile(":/icons/image1.xpm") 63 self.actionBack.setIcon(icon1) 64 self.actionBack.setObjectName("actionBack") 65 self.actionForward = QtWidgets.QAction(MainWindow) 66 icon2 = QtGui.QIcon() 67 icon2.addFile(":/icons/image2.xpm") 68 self.actionForward.setIcon(icon2) 69 self.actionForward.setObjectName("actionForward") 70 self.actionStop = QtWidgets.QAction(MainWindow) 71 icon3 = QtGui.QIcon() 72 icon3.addFile(":/icons/image3.xpm") 73 self.actionStop.setIcon(icon3) 74 self.actionStop.setObjectName("actionStop") 75 self.actionRefresh = QtWidgets.QAction(MainWindow) 76 icon4 = QtGui.QIcon() 77 icon4.addFile(":/icons/image4.xpm") 78 self.actionRefresh.setIcon(icon4) 79 self.actionRefresh.setObjectName("actionRefresh") 80 self.actionHome = QtWidgets.QAction(MainWindow) 81 icon5 = QtGui.QIcon() 82 icon5.addFile(":/icons/image5.xpm") 83 self.actionHome.setIcon(icon5) 84 self.actionHome.setObjectName("actionHome") 85 self.actionFileClose = QtWidgets.QAction(MainWindow) 86 self.actionFileClose.setObjectName("actionFileClose") 87 self.actionSearch = QtWidgets.QAction(MainWindow) 88 icon6 = QtGui.QIcon() 89 icon6.addFile(":/icons/image6.xpm") 90 self.actionSearch.setIcon(icon6) 91 self.actionSearch.setObjectName("actionSearch") 92 self.actionAbout = QtWidgets.QAction(MainWindow) 93 self.actionAbout.setObjectName("actionAbout") 94 self.actionAboutQt = QtWidgets.QAction(MainWindow) 95 self.actionAboutQt.setObjectName("actionAboutQt") 96 self.FileNewGroup = QtWidgets.QActionGroup(MainWindow) 97 self.FileNewGroup.setObjectName("FileNewGroup") 98 self.actionNewWindow = QtWidgets.QAction(self.FileNewGroup) 99 self.actionNewWindow.setObjectName("actionNewWindow") 100 self.tbNavigate.addAction(self.actionBack) 101 self.tbNavigate.addAction(self.actionForward) 102 self.tbNavigate.addAction(self.actionStop) 103 self.tbNavigate.addAction(self.actionRefresh) 104 self.tbNavigate.addAction(self.actionHome) 105 self.tbNavigate.addSeparator() 106 self.tbNavigate.addAction(self.actionSearch) 107 self.tbAddress.addAction(self.actionGo) 108 self.FileNewGroup_2.addAction(self.actionNewWindow) 109 self.PopupMenu.addAction(self.FileNewGroup_2.menuAction()) 110 self.PopupMenu.addSeparator() 111 self.PopupMenu.addAction(self.actionFileClose) 112 self.unnamed.addAction(self.actionAbout) 113 self.unnamed.addAction(self.actionAboutQt) 114 self.menubar.addAction(self.PopupMenu.menuAction()) 115 self.menubar.addAction(self.unnamed.menuAction()) 116 117 self.retranslateUi(MainWindow) 118 QtCore.QMetaObject.connectSlotsByName(MainWindow) 119 120 def retranslateUi(self, MainWindow): 121 _translate = QtCore.QCoreApplication.translate 122 MainWindow.setWindowTitle(_translate("MainWindow", "Qt WebBrowser")) 123 self.tbNavigate.setWindowTitle(_translate("MainWindow", "Navigation")) 124 self.tbAddress.setWindowTitle(_translate("MainWindow", "Address")) 125 self.PopupMenu.setTitle(_translate("MainWindow", "&File")) 126 self.FileNewGroup_2.setTitle(_translate("MainWindow", "New")) 127 self.unnamed.setTitle(_translate("MainWindow", "&Help")) 128 self.actionGo.setIconText(_translate("MainWindow", "Go")) 129 self.actionBack.setIconText(_translate("MainWindow", "Back")) 130 self.actionBack.setShortcut(_translate("MainWindow", "Backspace")) 131 self.actionForward.setIconText(_translate("MainWindow", "Forward")) 132 self.actionStop.setIconText(_translate("MainWindow", "Stop")) 133 self.actionRefresh.setIconText(_translate("MainWindow", "Refresh")) 134 self.actionHome.setIconText(_translate("MainWindow", "Home")) 135 self.actionFileClose.setText(_translate("MainWindow", "C&lose")) 136 self.actionFileClose.setIconText(_translate("MainWindow", "Close")) 137 self.actionSearch.setIconText(_translate("MainWindow", "Search")) 138 self.actionAbout.setIconText(_translate("MainWindow", "About")) 139 self.actionAboutQt.setIconText(_translate("MainWindow", "About Qt")) 140 self.actionNewWindow.setIconText(_translate("MainWindow", "Window")) 141 self.actionNewWindow.setShortcut(_translate("MainWindow", "Ctrl+N")) 142 143from PyQt5 import QAxContainer 144