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.loop.sequence

Source code for glxeveloop.loop.sequence

from glxeveloop.hooks import Hooks
from glxeveloop.loop.handle_events import HandleEvents


[docs] class SequenceLoop: hooks: Hooks handle_event = HandleEvents().handle_event
[docs] def sequence(self) -> None: """ * Parse user input into a Statement object * Start timer * Call precmd method * Add statement to History * Call cmd method * Call postcmd method * Stop timer and display the elapsed time * In Case of Exit call methods loop_finalization """ try: self.hooks.pre() except TypeError: # pragma: no cover pass try: self.handle_event() except TypeError: # pragma: no cover pass try: self.hooks.cmd() except TypeError: # pragma: no cover pass try: self.hooks.post() except TypeError: # pragma: no cover pass

Top » Module code » glxeveloop.loop.sequence

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