Added the Site Configuration dialog
[biaweb_qt.git] / main_window.py
1 # BiaWeb Website content manager (c) 2010 V.Harishankar
2 # Main Window class
3
4 import PyQt4
5 import ui_main_window
6 import site_configuration_dialog as scd
7 import sys
8
9 class MainWindow (PyQt4.QtGui.QMainWindow, ui_main_window.Ui_MainWindow):
10 def __init__ (self):
11 PyQt4.QtGui.QMainWindow.__init__ (self)
12 self.setupUi (self)
13
14 def onFileNew (self):
15 dlg = scd.SiteConfigDialog (self)
16 dlg.exec_ ()
17
18 def onFileQuit (self):
19 sys.exit (0)