| Philipp Le | 84173f6 | 2022-04-19 22:27:12 +0200 | [diff] [blame] | 1 | # SPDX-License-Identifier: MPL-2.0 |
| 2 | # Copyright (c) 2022 Philipp Le <philipp@philipple.de>. |
| 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
| 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
| 5 | # file, You can obtain one at https://mozilla.org/MPL/2.0/. |
| 6 | |
| 7 | from typing import List, Type |
| 8 | from . import base |
| 9 | |
| Philipp Le | b0e45c8 | 2022-04-19 22:03:44 +0200 | [diff] [blame^] | 10 | from .ch02_phasor import Ch02PhasorWindow |
| 11 | |
| Philipp Le | 84173f6 | 2022-04-19 22:27:12 +0200 | [diff] [blame] | 12 | |
| 13 | def get_windows() -> List[Type[base.Window]]: |
| 14 | return [ |
| Philipp Le | b0e45c8 | 2022-04-19 22:03:44 +0200 | [diff] [blame^] | 15 | Ch02PhasorWindow, |
| Philipp Le | 84173f6 | 2022-04-19 22:27:12 +0200 | [diff] [blame] | 16 | ] |
| 17 | |
| 18 | |
| 19 | def get_groups() -> List[Type[base.Group]]: |
| 20 | return base.get_groups(get_windows()) |
| 21 | |
| 22 | |
| 23 | def get_win_of_group(grp: Type[base.Group]) -> List[Type[base.Window]]: |
| 24 | return base.get_win_of_group(get_windows(), grp) |