format
This commit is contained in:
parent
d60cfbc0a6
commit
89165cc65e
@ -1,6 +1,6 @@
|
|||||||
import argparse
|
import argparse
|
||||||
|
|
||||||
from .app import register_overview_parser, show_overview, register_join_parser
|
from .app import register_join_parser, register_overview_parser, show_overview
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
|
@ -1,23 +1,27 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import argparse
|
import argparse
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
from typing import Optional
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
from typing import Callable, Optional, Type
|
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
from gi.repository import Gio, Gtk
|
|
||||||
from clan_cli.clan_uri import ClanURI
|
from clan_cli.clan_uri import ClanURI
|
||||||
|
from gi.repository import Gio, Gtk
|
||||||
|
|
||||||
from .constants import constants
|
from .constants import constants
|
||||||
|
from .interfaces import Callbacks, InitialJoinValues
|
||||||
from .windows.join import JoinWindow
|
from .windows.join import JoinWindow
|
||||||
from .windows.overview import OverviewWindow
|
from .windows.overview import OverviewWindow
|
||||||
from .interfaces import Callbacks, InitialJoinValues
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ClanWindows():
|
class ClanWindows:
|
||||||
join: type[JoinWindow]
|
join: type[JoinWindow]
|
||||||
overview: type[OverviewWindow]
|
overview: type[OverviewWindow]
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class ClanConfig():
|
class ClanConfig:
|
||||||
initial_window: str
|
initial_window: str
|
||||||
url: Optional[ClanURI]
|
url: Optional[ClanURI]
|
||||||
|
|
||||||
|
@ -1,13 +1,15 @@
|
|||||||
|
from collections.abc import Callable
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from typing import Callable, Optional, Type
|
|
||||||
from clan_cli.clan_uri import ClanURI
|
from clan_cli.clan_uri import ClanURI
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class InitialJoinValues():
|
class InitialJoinValues:
|
||||||
url: ClanURI
|
url: ClanURI
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class Callbacks():
|
class Callbacks:
|
||||||
show_list: Callable[[],None]
|
show_list: Callable[[],None]
|
||||||
show_join: Callable[[InitialJoinValues],None]
|
show_join: Callable[[InitialJoinValues],None]
|
@ -1,16 +1,12 @@
|
|||||||
import argparse
|
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import gi
|
import gi
|
||||||
from clan_cli.clan_uri import ClanURI
|
|
||||||
|
|
||||||
from ..interfaces import Callbacks, InitialJoinValues
|
from ..interfaces import Callbacks, InitialJoinValues
|
||||||
|
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
from gi.repository import Gio, Gtk
|
|
||||||
from typing import Callable
|
|
||||||
from dataclasses import dataclass
|
|
||||||
|
|
||||||
|
from gi.repository import Gio, Gtk
|
||||||
|
|
||||||
|
|
||||||
class JoinWindow(Gtk.ApplicationWindow):
|
class JoinWindow(Gtk.ApplicationWindow):
|
||||||
|
@ -5,7 +5,6 @@ import gi
|
|||||||
from ..models import VMBase
|
from ..models import VMBase
|
||||||
|
|
||||||
gi.require_version("Gtk", "3.0")
|
gi.require_version("Gtk", "3.0")
|
||||||
import argparse
|
|
||||||
|
|
||||||
from gi.repository import Gio, Gtk
|
from gi.repository import Gio, Gtk
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user