Galaxie EveLoop 0.1.5 documentation


Navigation:   | Index   | Search   | Top   | Up   |
Table of Content: |

© Copyright 2021-2024, Galaxie EveLoop Team all right reserved.

Top » Module code » glxeveloop.properties.timer

Source code for glxeveloop.properties.timer

from glxeveloop.timer import Timer


[docs] class TimerProperty: def __init__(self) -> None: self.__timer = Timer() @property def timer(self): return self.__timer @timer.setter def timer(self, value): if value is None: value = Timer() if not isinstance(value, Timer): raise TypeError("'timer' property value must be a Timer instance or None") if self.timer != value: self.__timer = value

Top » Module code » glxeveloop.properties.timer

© Copyright 2021-2024, Galaxie EveLoop Team all right reserved.
This page is licensed under the GNU General Public License v3 or later (GPLv3+).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 7.3.7.