def __init__(self, args):
    super(MainWindow, self).__init__()
    self.setGeometry(1400, 70, 600, 370)
    self.setWindowTitle('VISUALIZATION')
    self.action_cb = args
    quitAction = QtGui.QAction('Quit', self)
    quitAction.triggered.connect(self.close_application)
    saveAction = QtGui.QAction('Save', self)
    saveAction.setShortcut('Ctrl+S')
    saveAction.triggered.connect(self.save_WatchList)
    loadAction = QtGui.QAction('Open File...', self)
    loadAction.setShortcut('Ctrl+O')
    loadAction.triggered.connect(self.action_cb['load_WatchList'])
    input_file = QtGui.QAction('Open input file', self)
    input_file.setShortcut('Ctrl+I')
    input_file.triggered.connect(self.open_input_file)
    menu = self.menuBar()
    filemenu = menu.addMenu('&File')
    filemenu.addAction(saveAction)
    filemenu.addAction(loadAction)
    filemenu.addAction(input_file)
    self.toolBar = self.addToolBar('ToolBar')
    self.toolBar.addAction(quitAction)
    self.create_sub_windows()
def __init__(self, args):
    super(MainWindow, self).__init__()
    self.setGeometry(1400, 70, 600, 370)
    self.setWindowTitle('VISUALIZATION')
    self.action_cb = args
    quitAction = QtGui.QAction('Quit', self)
    quitAction.triggered.connect(self.close_application)
    saveAction = QtGui.QAction('Save', self)
    saveAction.setShortcut('Ctrl+S')
    saveAction.triggered.connect(self.save_WatchList)
    loadAction = QtGui.QAction('Open File...', self)
    loadAction.setShortcut('Ctrl+O')
    loadAction.triggered.connect(self.action_cb['load_WatchList'])
    input_file = QtGui.QAction('Open input file', self)
    input_file.setShortcut('Ctrl+I')
    input_file.triggered.connect(self.open_input_file)
    menu = self.menuBar()
    filemenu = menu.addMenu('&File')
    filemenu.addAction(saveAction)
    filemenu.addAction(loadAction)
    filemenu.addAction(input_file)
    self.toolBar = self.addToolBar('ToolBar')
    self.toolBar.addAction(quitAction)
    self.create_sub_windows()