Hello
 I'm just getting start with PyQt, so i have some basic question about it, 
please help me out :D
As i know that pyQt is kind of standalone software develop by Nokia (or 
riverBank), and PyQt when we use with Maya is just a package, so when i try 
to run some PyQt code in maya, it crash. Here is the code i use, i using 
Maya 2011 64bit

import sys
from PyQt4 import QtGui

class Example(QtGui.QMainWindow):
    
    def __init__(self):
        super(Example, self).__init__()
        
        self.initUI()
        
    def initUI(self):               
        
        exitAction = QtGui.QAction(QtGui.QIcon('exit.png'), '&Exit', self) 
       
        exitAction.setShortcut('Ctrl+Q')
        exitAction.setStatusTip('Exit application')
        exitAction.triggered.connect(QtGui.qApp.quit)

        self.statusBar()

        menubar = self.menuBar()
        fileMenu = menubar.addMenu('&File')
        fileMenu.addAction(exitAction)
        
        self.setGeometry(300, 300, 300, 200)
        self.setWindowTitle('Menubar')    
        self.show()
        
        
def main():
    
    app = QtGui.QApplication(sys.argv)
    ex = Example()
    sys.exit(app.exec_())


if __name__ == '__main__':
    main()    


And i don't know where to code in PyQt application either, In the menubar, 
i chose Form\ViewCode, it gave me a "Unable to lauch 
C:/Python26/Lib/site-packages/pyQt4/bin/uic" error, i can't convert an UI 
file to Python either. T_T it freaking me out.

Thanks

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to