Mercurial > libervia-web
changeset 257:377de26d5bc2
browser_side: open the web widget in the current tab
author | souliane <souliane@mailoo.org> |
---|---|
date | Sat, 09 Nov 2013 17:12:05 +0100 |
parents | 0e7f3944bd27 |
children | 53c7f0237f1e |
files | browser_side/menu.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/browser_side/menu.py Sat Nov 09 09:39:45 2013 +0100 +++ b/browser_side/menu.py Sat Nov 09 17:12:05 2013 +0100 @@ -183,7 +183,8 @@ #General menu def onWebWidget(self): web_panel = panels.WebPanel(self.host, "http://www.goffi.org") - self.host.addTab(web_panel, "Web widget") + self.host.addWidget(web_panel) + self.host.setSelected(web_panel) def onDisconnect(self): def confirm_cb(answer):