comparison frontends/src/primitivus/xmlui.py @ 1185:6184779544c7

Primitivus (xmlui): fixed window closing on save params + removed now unused onConfigureRoom in Chat
author Goffi <goffi@goffi.org>
date Mon, 08 Sep 2014 18:32:36 +0200
parents e2e1e27a3680
children f91e7028e2c3
comparison
equal deleted inserted replaced
1184:62cba918cc63 1185:6184779544c7
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 from sat.core.i18n import _ 20 from sat.core.i18n import _
21 import urwid 21 import urwid
22 import copy 22 import copy
23 from sat.core import exceptions
23 from urwid_satext import sat_widgets 24 from urwid_satext import sat_widgets
24 from urwid_satext import files_management 25 from urwid_satext import files_management
25 from sat.core.log import getLogger 26 from sat.core.log import getLogger
26 log = getLogger(__name__) 27 log = getLogger(__name__)
27 from sat_frontends.primitivus.constants import Const as C 28 from sat_frontends.primitivus.constants import Const as C
403 self.host.redraw() 404 self.host.redraw()
404 405
405 def _xmluiClose(self): 406 def _xmluiClose(self):
406 if self._dest == 'window': 407 if self._dest == 'window':
407 self.host.removeWindow() 408 self.host.removeWindow()
409 elif self._dest == 'popup':
410 self.host.removePopUp()
408 else: 411 else:
409 self.host.removePopUp() 412 raise exceptions.InternalError("self._dest unknown, are you sure you have called XMLUI.show ?")
410 413
411 414
412 class XMLUIDialog(xmlui.XMLUIDialog): 415 class XMLUIDialog(xmlui.XMLUIDialog):
413 dialog_factory = GenericFactory() 416 dialog_factory = GenericFactory()
414 417