comparison src/browser/sat_browser/menu.py @ 648:6d3142b782c3 frontends_multi_profiles

browser_side: classes reorganisation: - moved widgets in dedicated modules (base, contact, editor, libervia) and a widget module for single classes - same thing for panels (base, main, contact) - libervia_widget mix main panels and widget and drag n drop for technical reasons (see comments) - renamed WebPanel to WebWidget
author Goffi <goffi@goffi.org>
date Thu, 26 Feb 2015 18:10:54 +0100
parents 30180021f203
children 40c72f3b7638
comparison
equal deleted inserted replaced
647:e0021d571eef 648:6d3142b782c3
30 30
31 from constants import Const as C 31 from constants import Const as C
32 import file_tools 32 import file_tools
33 import xmlui 33 import xmlui
34 import chat 34 import chat
35 import panels 35 import widget
36 import dialog 36 import dialog
37 import contact_group 37 import contact_group
38 import base_menu 38 import base_menu
39 from base_menu import MenuCmd 39 from base_menu import MenuCmd
40 40
98 98
99 self.add(self.menu_bar) 99 self.add(self.menu_bar)
100 100
101 # General menu 101 # General menu
102 def onWebWidget(self): 102 def onWebWidget(self):
103 web_widget = self.host.displayWidget(panels.WebPanel, C.WEB_PANEL_DEFAULT_URL) 103 web_widget = self.host.displayWidget(widget.WebWidget, C.WEB_PANEL_DEFAULT_URL)
104 self.host.setSelected(web_widget) 104 self.host.setSelected(web_widget)
105 105
106 def onDisconnect(self): 106 def onDisconnect(self):
107 def confirm_cb(answer): 107 def confirm_cb(answer):
108 if answer: 108 if answer: