You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
565 B
16 lines
565 B
# -*- coding: utf-8 -*-
|
|
|
|
from PySide import QtGui
|
|
|
|
class MainMenu():
|
|
def __init__(self, parent):
|
|
exitAction = QtGui.QAction(QtGui.QIcon('image/Exit.png'), '&Exit', parent)
|
|
exitAction.setShortcut('Ctrl+Q')
|
|
exitAction.setStatusTip('Exit application')
|
|
exitAction.triggered.connect(parent.close)
|
|
|
|
parent.toolbar = parent.addToolBar('Exit')
|
|
parent.toolbar.addAction(exitAction)
|
|
# menubar = parent.menuBar()
|
|
# fileMenu = menubar.addMenu('&File')
|
|
# fileMenu.addAction(exitAction) |