Mercurial > libervia-desktop-kivy
comparison cagou/core/widgets_handler.py @ 312:772c170b47a9
Python3 port:
/!\ Cagou now runs with Python 3.6+
Port has been done in the same way as for backend (check backend commit b2d067339de3
message for details).
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 13 Aug 2019 19:14:22 +0200 |
parents | efd3fbc85aaf |
children | 19422bbd9c8e |
comparison
equal
deleted
inserted
replaced
311:a0d978d3ce84 | 312:772c170b47a9 |
---|---|
355 order of the widgets when changing slide is affected | 355 order of the widgets when changing slide is affected |
356 @param widget(QuickWidget): widget to sort | 356 @param widget(QuickWidget): widget to sort |
357 @return: a value which will be used for sorting | 357 @return: a value which will be used for sorting |
358 """ | 358 """ |
359 try: | 359 try: |
360 return unicode(widget.target).lower() | 360 return str(widget.target).lower() |
361 except AttributeError: | 361 except AttributeError: |
362 return unicode(list(widget.targets)[0]).lower() | 362 return str(list(widget.targets)[0]).lower() |
363 | 363 |
364 def updateHiddenSlides(self): | 364 def updateHiddenSlides(self): |
365 """adjust carousel slides according to visible widgets""" | 365 """adjust carousel slides according to visible widgets""" |
366 if self._slides_update_lock: | 366 if self._slides_update_lock: |
367 return | 367 return |