comparison browser_side/menu.py @ 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 79970bf6af93
comparison
equal deleted inserted replaced
256:0e7f3944bd27 257:377de26d5bc2
181 self.add(menubar) 181 self.add(menubar)
182 182
183 #General menu 183 #General menu
184 def onWebWidget(self): 184 def onWebWidget(self):
185 web_panel = panels.WebPanel(self.host, "http://www.goffi.org") 185 web_panel = panels.WebPanel(self.host, "http://www.goffi.org")
186 self.host.addTab(web_panel, "Web widget") 186 self.host.addWidget(web_panel)
187 self.host.setSelected(web_panel)
187 188
188 def onDisconnect(self): 189 def onDisconnect(self):
189 def confirm_cb(answer): 190 def confirm_cb(answer):
190 if answer: 191 if answer:
191 print "disconnection" 192 print "disconnection"