Connect signals properly

This commit is contained in:
Florian Bruhin 2014-01-16 15:55:52 +01:00
parent 0250f61b8a
commit 1d88bb7c9c

View File

@ -9,9 +9,9 @@ def main():
mw = MainWindow()
cp = cmds.CommandParser()
mw.status.cmd.got_cmd.connect(cp.parse)
cmds.cmd_dict['openurl'].connect(mw.tabs.openurl)
cmds.cmd_dict['tabopen'].connect(mw.tabs.tabopen)
cmds.cmd_dict['quit'].connect(QApplication.closeAllWindows) # FIXME
cmds.cmd_dict['open'].signal.connect(mw.tabs.openurl)
cmds.cmd_dict['tabopen'].signal.connect(mw.tabs.tabopen)
cmds.cmd_dict['quit'].signal.connect(QApplication.closeAllWindows) # FIXME
mw.show()
sys.exit(app.exec_())