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.running

Source code for glxeveloop.properties.running

[docs] class RunningProperty: debug: bool def __init__(self) -> None: self.__running = False @property def running(self): """ The property :py:data:`running`, store the actual running state rate of the MainLoop, it property is use by the class :class:`MainLoop <glxeveloop.loop.mainloop.MainLoop>`. **Default Value:** ``false`` :return: :py:data:`running` property. :rtype: :py:data:`bool` :raise TypeError: if parameter is not a :py:data:`bool` type or None """ return self.__running @running.setter def running(self, value): """ Set the is_running attribute """ if value is None: value = False if not isinstance(value, bool): raise TypeError("'running' property value must be bool type or None") if self.running != value: self.__running = value

Top » Module code » glxeveloop.properties.running

© 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.