misc: don't use relative imports

This commit is contained in:
rr-
2019-01-14 14:42:29 +01:00
parent 561f28bd95
commit 97552a711a
5 changed files with 10 additions and 10 deletions
+1 -2
View File
@@ -11,8 +11,7 @@ from pqcli import lingo
from pqcli.config import CLASSES, PRIME_STATS, RACES from pqcli.config import CLASSES, PRIME_STATS, RACES
from pqcli.mechanic import Player, Simulation, StatsBuilder, create_player from pqcli.mechanic import Player, Simulation, StatsBuilder, create_player
from pqcli.roster import Roster from pqcli.roster import Roster
from pqcli.ui.base import BaseUserInterface
from ..base import BaseUserInterface
LOGO = """ LOGO = """
____ ___ _ ____ ___ _
+1 -2
View File
@@ -9,6 +9,7 @@ from pqcli import lingo
from pqcli.config import Class, Race from pqcli.config import Class, Race
from pqcli.mechanic import Player, Stats, create_player from pqcli.mechanic import Player, Stats, create_player
from pqcli.roster import Roster from pqcli.roster import Roster
from pqcli.ui.base import BaseUserInterface
from pqcli.ui.curses.colors import ( from pqcli.ui.curses.colors import (
COLOR_FOCUSED, COLOR_FOCUSED,
COLOR_LOGO, COLOR_LOGO,
@@ -31,8 +32,6 @@ from pqcli.ui.curses.views import (
RosterView, RosterView,
) )
from ..base import BaseUserInterface
class StopMainLoop(Exception): class StopMainLoop(Exception):
pass pass
+4 -3
View File
@@ -1,8 +1,9 @@
import typing as T import typing as T
from ..event_handler import EventHandler from pqcli.ui.curses.event_handler import EventHandler
from ..util import Choice from pqcli.ui.curses.util import Choice
from ..widgets import Menu from pqcli.ui.curses.widgets import Menu
from .base_view import BaseView from .base_view import BaseView
+3 -1
View File
@@ -24,7 +24,9 @@ LOGO = """
█▄▄▀ █▀▀ ▄▀▀▄ ▄▀▀▄ █▀▀ ▄▀▀▄ ▄▀▀▀ ▄▀▀▀ █ █ █ █ ▄▀▀▄ ▄▀▀▀ ▀█▀ █▄▄▀ █▀▀ ▄▀▀▄ ▄▀▀▄ █▀▀ ▄▀▀▄ ▄▀▀▀ ▄▀▀▀ █ █ █ █ ▄▀▀▄ ▄▀▀▀ ▀█▀
█ █ █ █ ▀▄▄█ █ █▀▀ ▀▀▄ ▀▀▄ █ ▌█ █ █ █▀▀ ▀▀▄ █ █ █ █ █ ▀▄▄█ █ █▀▀ ▀▀▄ ▀▀▄ █ ▌█ █ █ █▀▀ ▀▀▄ █
▀ ▀ ▀▀ ▄▄▀ ▀ ▀▀ ▀▀▀ ▀▀▀ ▀▀▌ ▀▀ ▀▀ ▀▀▀ ▀ ▀ ▀ ▀▀ ▄▄▀ ▀ ▀▀ ▀▀▀ ▀▀▀ ▀▀▌ ▀▀ ▀▀ ▀▀▀ ▀
""".strip("\n") """.strip(
"\n"
)
class MainMenu(Menu): class MainMenu(Menu):
+1 -2
View File
@@ -2,10 +2,9 @@ import curses
import curses.ascii import curses.ascii
import typing as T import typing as T
from pqcli.ui.curses.util import KEYS_CYCLE, KEYS_DOWN, KEYS_UP from pqcli.ui.curses.util import KEYS_CYCLE, KEYS_DOWN, KEYS_UP, Choice
from pqcli.ui.curses.widgets.focusable import focus_standout from pqcli.ui.curses.widgets.focusable import focus_standout
from ..util import Choice
from .base import Widget from .base import Widget