Mercurial > libervia-web
comparison libervia/pages/_browser/slideshow.py @ 1357:dbd573b0bc9c
browser: updated code to work with new Brython 3.8.10:
/!\ Brython 3.8.10 is now the minimal version
Removed `.js.` and `.elt.` attributes which are not working and needed anymore.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 17 Sep 2020 22:46:55 +0200 |
parents | 1df0d1b28b83 |
children | 3c5054a22e7a |
comparison
equal
deleted
inserted
replaced
1356:39719ff4fcad | 1357:dbd573b0bc9c |
---|---|
32 """item attached to the current slide, if any""" | 32 """item attached to the current slide, if any""" |
33 current = self.current_slide | 33 current = self.current_slide |
34 if current is None: | 34 if current is None: |
35 return None | 35 return None |
36 try: | 36 try: |
37 return current.js._item | 37 return current._item |
38 except AttributeError: | 38 except AttributeError: |
39 return None | 39 return None |
40 | 40 |
41 @property | 41 @property |
42 def current_options(self): | 42 def current_options(self): |
43 """options attached to the current slide, if any""" | 43 """options attached to the current slide, if any""" |
44 current = self.current_slide | 44 current = self.current_slide |
45 if current is None: | 45 if current is None: |
46 return None | 46 return None |
47 try: | 47 try: |
48 return current.js._options | 48 return current._options |
49 except AttributeError: | 49 except AttributeError: |
50 return None | 50 return None |
51 | 51 |
52 @property | 52 @property |
53 def index(self): | 53 def index(self): |