class Window(QMainWindow):
# Snip...
def newFile(self):
# Logic for creating a new file goes here...
self.centralWidget.setText(
"<b>File > New</b> clicked"
)
def openFile(self):
# Logic for opening an existing file goes here...
self.centralWidget.setText(
"<b>File > Open...</b> clicked"
)
def saveFile(self):
# Logic for saving a file goes here...
self.centralWidget.setText(
"<b>File > Save</b> clicked"
)
def copyContent(self):
# Logic for copying content goes here...
self.centralWidget.setText(
"<b>Edit > Copy</b> clicked"
)
def pasteContent(self):
# Logic for pasting content goes here...
self.centralWidget.setText(
"<b>Edit > Paste</b> clicked"
)
def cutContent(self):
# Logic for cutting content goes here...
self.centralWidget.setText(
"<b>Edit > Cut</b> clicked"
)
def helpContent(self):
# Logic for launching help goes here...
self.centralWidget.setText(
"<b>Help > Help Content...</b> clicked"
)
def about(self):
# Logic for showing an about dialog content goes here...
self.centralWidget.setText(
"<b>Help > About...</b> clicked"
)