Merge branch 'VIS-20'
This commit is contained in:
commit
4d2cf50bd9
@ -2,7 +2,7 @@
|
||||
import sys
|
||||
import os
|
||||
from PyQt5 import QtCore
|
||||
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QMainWindow, QGridLayout
|
||||
from PyQt5.QtWidgets import QApplication, QWidget, QLabel, QMainWindow, QGridLayout, QMenu, QFileDialog, QAction
|
||||
from PyQt5.QtGui import QIcon, QPixmap
|
||||
|
||||
|
||||
@ -16,16 +16,32 @@ def main():
|
||||
scriptDir = os.path.dirname(os.path.realpath(__file__))
|
||||
w.setWindowIcon(QIcon(scriptDir + os.path.sep + 'static/v_logo.jpg'))
|
||||
|
||||
'''
|
||||
label = QLabel()
|
||||
pixmap = QPixmap(scriptDir + os.path.sep + 'static/visionscore_logo.jpg')
|
||||
label.setPixmap(pixmap)
|
||||
label.resize(pixmap.width(), pixmap.height())
|
||||
label.setAlignment(QtCore.Qt.AlignTop)
|
||||
w.setCentralWidget(label)
|
||||
'''
|
||||
# Toolbar
|
||||
menuBar = w.menuBar()
|
||||
homeMenu = QMenu("&Home", w)
|
||||
menuBar.addMenu(homeMenu)
|
||||
homeMenu.addAction("Load new file")
|
||||
|
||||
# Exit app
|
||||
exitAct = QAction('&Exit', w)
|
||||
exitAct.setShortcut('Ctrl+Q')
|
||||
exitAct.setStatusTip('Exit')
|
||||
exitAct.triggered.connect(app.quit)
|
||||
homeMenu.addAction(exitAct)
|
||||
|
||||
|
||||
historyMenu = menuBar.addMenu("&History")
|
||||
helpMenu = menuBar.addMenu("&Help")
|
||||
|
||||
w.show()
|
||||
|
||||
sys.exit(app.exec_())
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
Reference in New Issue
Block a user