Add tabopen

This commit is contained in:
Florian Bruhin 2013-12-16 22:07:11 +01:00
parent e31e15b34a
commit ea31eb35c8
2 changed files with 3 additions and 1 deletions

View File

@ -8,8 +8,9 @@ def main():
mw = MainWindow()
cp = CommandParser()
mw.status.cmd.editingFinished.connect(lambda: cp.parse(mw.status.cmd.text()))
mw.status.cmd.returnPressed.connect(lambda: cp.parse(mw.status.cmd.text()))
cp.openurl.connect(mw.tabs.openurl)
cp.tabopen.connect(mw.tabs.tabopen)
mw.show()
sys.exit(app.exec_())

View File

@ -15,6 +15,7 @@ class TabbedBrowser(TabWidget):
tab.openurl(url)
self.tabs.append(tab)
self.addTab(tab, url)
self.setCurrentWidget(tab)
@pyqtSlot(str)
def openurl(self, url):