This commit is contained in:
Joscha 2019-06-21 11:49:32 +00:00
parent 68595dcb7a
commit 11bd7778cf
14 changed files with 58 additions and 68 deletions

View file

@ -6,7 +6,6 @@ from .euph_renderer import *
from .launch_application import *
from .room_widget import *
from .single_room_application import *
from .user_list_widget import *
__all__: List[str] = []
@ -16,4 +15,3 @@ __all__ += euph_renderer.__all__
__all__ += launch_application.__all__
__all__ += room_widget.__all__
__all__ += single_room_application.__all__
__all__ += user_list_widget.__all__

View file

@ -1,7 +1,6 @@
from typing import Any, Dict, List, Optional, Set, TypeVar
from typing import Any, Dict, List, Optional, Set
from ..config import (ConfigValueException, Kind, Option, TransparentConfig,
TreeLoader)
from ..config import ConfigValueException, Kind, TransparentConfig, TreeLoader
__all__ = ["EuphConfig", "EuphLoader"]

View file

@ -57,8 +57,8 @@ def load_config(args: Any) -> EuphConfig:
return config
def export_defaults(path: str) -> None:
path = pathlib.Path(path).expanduser()
def export_defaults(path_str: str) -> None:
path = pathlib.Path(path_str).expanduser()
print(f"Exporting default config to {path}")
loader = EuphLoader()

View file

@ -1,16 +1,12 @@
import asyncio
import logging
from pathlib import Path
from typing import Any, Optional
import urwid
import yaml
from ..attributed_text_widget import ATWidget
from ..markup import AT, Attributes
from ..markup import AT
from .edit_widgets import EditWidget
from .euph_config import EuphConfig
from .launch_application import launch
from .euph_config import EuphConfig, EuphLoader
from .room_widget import RoomWidget
__all__ = ["SingleRoomApplication", "launch_single_room_application"]
@ -67,7 +63,7 @@ class ChooseRoomWidget(urwid.WidgetWrap):
self.set_error(ATWidget(text, align=urwid.CENTER))
class SingleRoomApplication(urwid.WidgetWrap):
#
# The characters in the ALPHABET make up the characters that are allowed in
# room names.
ALPHABET = "abcdefghijklmnopqrstuvwxyz0123456789"
@ -130,5 +126,5 @@ class SingleRoomApplication(urwid.WidgetWrap):
return key
def launch_single_room_application():
def launch_single_room_application() -> None:
launch(SingleRoomApplication)