Attachment 'custommenu_actions_standard.py'
Download 1 #!/usr/bin/env python
2
3 import sys
4 from PyQt4.QtCore import Qt
5 from PyQt4.QtGui import *
6
7 app = QApplication([])
8 tableWidget = QTableWidget()
9 tableWidget.setContextMenuPolicy(Qt.ActionsContextMenu)
10
11 quitAction = QAction("Quit", None)
12 quitAction.triggered.connect(qApp.quit)
13 tableWidget.addAction(quitAction)
14
15 tableWidget.show()
16 sys.exit(app.exec_())
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.
