C:/mesDocs/QT_confDbVis_canvas/main.py

Go to the documentation of this file.
00001 import sys
00002 from qt import *
00003 from mainWindow import *
00004 
00005 ##########################################################################
00006 # Application class
00007 ##########################################################################
00008 
00009 ##
00010 # This class represents the application CdbVis. 
00011 #     Opens the mainWindow frame and shows it as the program window.
00012 #     
00013 class cdbVis(QApplication):
00014     def __init__(self,args):
00015                 QApplication.__init__(self,args)
00016                 ##self.connect(self, SIGNAL("aboutToQuit()"), self.quit);  # TODO : print the recover file before exit !!
00017                 #splash screen
00018                 splash=QSplashScreen(QPixmap.fromMimeSource("lhcbdetector.png"))
00019                 splash.show()
00020                 splash.message("Loading CdbVis ...",Qt.AlignRight | Qt.AlignTop, Qt.white)
00021                 self.frame = mainWindow(self,self,"frame")
00022                 self.frame.setGeometry(200,200,800,600)
00023                 self.setMainWidget(self.frame)
00024                 self.frame.show()
00025                 splash.finish(self.frame)
00026                 splash=None
00027                 self.setCursorFlashTime(2)
00028                 self.exec_loop()
00029 
00030 #Main method
00031 #Execute the cdbVis class
00032 if __name__ == '__main__':
00033         #import pychecker.checker
00034         #os.environ['PYCHECKER'] = 'cdbVis.py'
00035         app = cdbVis(sys.argv)
00036 
00037  
00038 
00039 
00040 

Generated on Fri Aug 31 11:11:14 2007 for CDBVis by  doxygen 1.5.3