Galaxie Shell 0.5.3 documentation


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

© Copyright 2020-2024, Galaxie Viewer Team.

Top » Module code » glxviewer.singleton

Source code for glxviewer.singleton

[docs] class Singleton(type): def __init__(cls, name, bases, dictionary): super(Singleton, cls).__init__(name, bases, dictionary) cls.instance = None def __call__(cls, *args, **kw): if cls.instance is None: cls.instance = super(Singleton, cls).__call__(*args) return cls.instance

Top » Module code » glxviewer.singleton

© Copyright 2020-2024, Galaxie Viewer Team.
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.2.6.