2013-12-14 22:15:16 +01:00
|
|
|
import sys
|
2013-12-15 20:33:43 +01:00
|
|
|
from PyQt5.QtWidgets import QWidget, QApplication
|
|
|
|
from qutebrowser.widgets.mainwindow import MainWindow
|
2014-01-16 17:12:55 +01:00
|
|
|
import qutebrowser.commands as cmds
|
2013-12-14 22:15:16 +01:00
|
|
|
|
|
|
|
def main():
|
|
|
|
app = QApplication(sys.argv)
|
2013-12-15 20:33:43 +01:00
|
|
|
|
2013-12-15 22:24:47 +01:00
|
|
|
mw = MainWindow()
|
2014-01-16 17:12:55 +01:00
|
|
|
cp = cmds.CommandParser()
|
2014-01-16 17:49:57 +01:00
|
|
|
mw.status.cmd.got_cmd.connect(cp.parse)
|
2014-01-16 15:55:52 +01:00
|
|
|
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
|
2013-12-15 20:33:43 +01:00
|
|
|
mw.show()
|
|
|
|
|
2013-12-14 22:15:16 +01:00
|
|
|
sys.exit(app.exec_())
|