So I wrote this:

pyopengl_samples/  cube4 (original).py  pyqt4-two.py*    utils.py
#!/usr/bin/env python

import sys
#from PyQt4 import QtGui, QtCore
from PySide import QtGui, QtCore

class MainWindow(QtGui.QMainWindow):
    def __init__(self):
        QtGui.QMainWindow.__init__(self)

        exit = QtGui.QAction(QtGui.QIcon('icon.png'), "Quit", self)

        menubar = self.menuBar()
        foo = menubar.addMenu("&Foo")
        foo.addAction(exit)

app = QtGui.QApplication(sys.argv)
main = MainWindow()
main.show()

sys.exit(app.exec_())

more or less from a tutorial...
It works when the button is called "uit" but not if it's called "Quit"
then the menu disappears. Same happens in PyQt4. Any ideas?

Best
Simon

_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to