Mercurial > libervia-web
comparison browser_side/list_manager.py @ 406:63f8469b4ad3
browser_side: bug fix ListManager properties
author | souliane <souliane@mailoo.org> |
---|---|
date | Sun, 16 Mar 2014 20:55:50 +0100 |
parents | a71fcc27f231 |
children | 20c508f9b32a |
comparison
equal
deleted
inserted
replaced
405:41b8b96f2248 | 406:63f8469b4ad3 |
---|---|
228 return _map | 228 return _map |
229 | 229 |
230 @property | 230 @property |
231 def target_drop_cell(self): | 231 def target_drop_cell(self): |
232 """@return: the panel where something has been dropped.""" | 232 """@return: the panel where something has been dropped.""" |
233 return self.target_drop_cell | 233 return self._target_drop_cell |
234 | 234 |
235 @target_drop_cell.setter | 235 def setTargetDropCell(self, target_drop_cell): |
236 def target_drop_cell(self, target_drop_cell): | |
237 """@param: target_drop_cell: the panel where something has been dropped.""" | 236 """@param: target_drop_cell: the panel where something has been dropped.""" |
238 self.target_drop_cell = target_drop_cell | 237 self._target_drop_cell = target_drop_cell |
239 | 238 |
240 def registerPopupMenuPanel(self, entries, hide, callback): | 239 def registerPopupMenuPanel(self, entries, hide, callback): |
241 "Register a popup menu panel that will be bound to all contact keys elements." | 240 "Register a popup menu panel that will be bound to all contact keys elements." |
242 self.popup_menu = PopupMenuPanel(entries=entries, hide=hide, callback=callback, style={"item": self.style["popupMenuItem"]}) | 241 self.popup_menu = PopupMenuPanel(entries=entries, hide=hide, callback=callback, style={"item": self.style["popupMenuItem"]}) |
243 | 242 |
533 | 532 |
534 def setTargetDropCell(self, target_drop_cell): | 533 def setTargetDropCell(self, target_drop_cell): |
535 """ | 534 """ |
536 XXX: Property setter here would not make it, you need a proper method! | 535 XXX: Property setter here would not make it, you need a proper method! |
537 @param target_drop_cell: the panel where something has been dropped.""" | 536 @param target_drop_cell: the panel where something has been dropped.""" |
538 self._parent.target_drop_cell = target_drop_cell | 537 self._parent.setTargetDropCell(target_drop_cell) |
539 | 538 |
540 | 539 |
541 class ContactChooserPanel(DialogBox): | 540 class ContactChooserPanel(DialogBox): |
542 """Display the contacts chooser dialog. This has been implemented while | 541 """Display the contacts chooser dialog. This has been implemented while |
543 prototyping and is currently not used. Left for an eventual later use. | 542 prototyping and is currently not used. Left for an eventual later use. |