Advertisement
yankwizera

MainWindow.py(this is the window that contains the menu)

Jul 24th, 2011
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. from PyQt4 import uic
  2.  
  3. (Ui_MainWindow, QMainWindow) = uic.loadUiType('mainwindow.ui')
  4.  
  5. class MainWindow (QMainWindow):
  6.     """MainWindow inherits QMainWindow"""
  7.  
  8.     def __init__ (self, parent = None):
  9.         QMainWindow.__init__(self, parent)
  10.         self.ui = Ui_MainWindow()
  11.         self.ui.setupUi(self)
  12.          
  13.     def __del__ (self):
  14.         self.ui = None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement