Mercurial > libervia-desktop-kivy
comparison src/cagou/core/cagou_main.py @ 40:a1ec6cb57a1b
core: removed forgotten debug logs
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 28 Aug 2016 15:37:22 +0200 |
parents | 9f45098289cc |
children | 7cac2d1a6f20 |
comparison
equal
deleted
inserted
replaced
39:b9ee3bf81018 | 40:a1ec6cb57a1b |
---|---|
349 """declare a widget visible | 349 """declare a widget visible |
350 | 350 |
351 for internal use only! | 351 for internal use only! |
352 """ | 352 """ |
353 assert isinstance(widget, quick_widgets.QuickWidget) | 353 assert isinstance(widget, quick_widgets.QuickWidget) |
354 log.info(u"addVisibleWidget: {}".format(', '.join([unicode(t) for t in widget.targets]))) | |
355 self._visible_widgets.setdefault(widget.__class__, []).append(widget) | 354 self._visible_widgets.setdefault(widget.__class__, []).append(widget) |
356 | 355 |
357 def removeVisibleWidget(self, widget): | 356 def removeVisibleWidget(self, widget): |
358 """declare a widget not visible anymore | 357 """declare a widget not visible anymore |
359 | 358 |
360 for internal use only! | 359 for internal use only! |
361 """ | 360 """ |
362 log.info(u"removeVisibleWidget: {}".format(', '.join([unicode(t) for t in widget.targets]))) | |
363 self._visible_widgets[widget.__class__].remove(widget) | 361 self._visible_widgets[widget.__class__].remove(widget) |
364 log.info("remove: " + unicode(widget.targets)) | |
365 self.widgets.deleteWidget(widget) | 362 self.widgets.deleteWidget(widget) |
366 | 363 |
367 def getVisibleList(self, cls): | 364 def getVisibleList(self, cls): |
368 """get list of visible widgets for a given class | 365 """get list of visible widgets for a given class |
369 | 366 |