Mercurial > libervia-backend
comparison frontends/src/primitivus/xmlui.py @ 1518:8c071bc359c9
primitivus (XMLUI): manage message in FileDialog /!\ Urwid SàText need to be updated /!\
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 25 Sep 2015 19:19:12 +0200 |
parents | a77217511afd |
children | d5e332055d9f |
comparison
equal
deleted
inserted
replaced
1517:4eca4f5e21ec | 1518:8c071bc359c9 |
---|---|
359 PrimitivusDialog.__init__(self, _xmlui_parent) | 359 PrimitivusDialog.__init__(self, _xmlui_parent) |
360 xmlui.FileDialog.__init__(self, _xmlui_parent) | 360 xmlui.FileDialog.__init__(self, _xmlui_parent) |
361 style = [] | 361 style = [] |
362 if filetype == C.XMLUI_DATA_FILETYPE_DIR: | 362 if filetype == C.XMLUI_DATA_FILETYPE_DIR: |
363 style.append('dir') | 363 style.append('dir') |
364 files_management.FileDialog.__init__(self, ok_cb=lambda path: self._xmluiValidated({'path': path}), cancel_cb=lambda dummy: self._xmluiCancelled(), title=title) | 364 files_management.FileDialog.__init__(self, |
365 ok_cb=lambda path: self._xmluiValidated({'path': path}), | |
366 cancel_cb=lambda dummy: self._xmluiCancelled(), | |
367 message=message, | |
368 title=title, | |
369 style=style) | |
365 | 370 |
366 | 371 |
367 class GenericFactory(object): | 372 class GenericFactory(object): |
368 | 373 |
369 def __getattr__(self, attr): | 374 def __getattr__(self, attr): |