New Site dialog implemented
[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 self.current_db = None
14
15 def onFileNew (self):
16 dlg = scd.SiteConfigDialog (self)
17 dlg.exec_ ()
18
19 def onFileQuit (self):
20 sys.exit (0)