Add tabopen
This commit is contained in:
parent
e31e15b34a
commit
ea31eb35c8
@ -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_())
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user