New Site dialog implemented
[biaweb_qt.git] / main_window.py
index 258e0d4..6a856bb 100644 (file)
@@ -3,15 +3,18 @@
 
 import PyQt4
 import ui_main_window
+import site_configuration_dialog as scd
 import sys
 
 class MainWindow (PyQt4.QtGui.QMainWindow, ui_main_window.Ui_MainWindow):
        def __init__ (self):
                PyQt4.QtGui.QMainWindow.__init__ (self)
                self.setupUi (self)
+               self.current_db = None
 
        def onFileNew (self):
-               print "New triggered"
+               dlg = scd.SiteConfigDialog (self)
+               dlg.exec_ ()
 
        def onFileQuit (self):
                sys.exit (0)