mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-04 17:41:18 +03:00
[1173] Fix Circular Import
This commit is contained in:
parent
64cd5b3cc5
commit
459881d618
@ -431,25 +431,10 @@ from hotkey import hotkeymgr
|
|||||||
from l10n import translations as tr
|
from l10n import translations as tr
|
||||||
from monitor import monitor
|
from monitor import monitor
|
||||||
from theme import theme
|
from theme import theme
|
||||||
from ttkHyperlinkLabel import HyperlinkLabel
|
from ttkHyperlinkLabel import HyperlinkLabel, SHIPYARD_HTML_TEMPLATE
|
||||||
|
|
||||||
SERVER_RETRY = 5 # retry pause for Companion servers [s]
|
SERVER_RETRY = 5 # retry pause for Companion servers [s]
|
||||||
|
|
||||||
SHIPYARD_HTML_TEMPLATE = """
|
|
||||||
<!DOCTYPE HTML>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv="refresh" content="0; url={link}">
|
|
||||||
<title>Redirecting you to your {ship_name} at {provider_name}...</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<a href="{link}">
|
|
||||||
You should be redirected to your {ship_name} at {provider_name} shortly...
|
|
||||||
</a>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
"""
|
|
||||||
|
|
||||||
|
|
||||||
class AppWindow:
|
class AppWindow:
|
||||||
"""Define the main application window."""
|
"""Define the main application window."""
|
||||||
|
@ -32,7 +32,21 @@ from os import path
|
|||||||
from config import config, logger
|
from config import config, logger
|
||||||
from l10n import translations as tr
|
from l10n import translations as tr
|
||||||
from monitor import monitor
|
from monitor import monitor
|
||||||
from EDMarketConnector import SHIPYARD_HTML_TEMPLATE
|
|
||||||
|
SHIPYARD_HTML_TEMPLATE = """
|
||||||
|
<!DOCTYPE HTML>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta http-equiv="refresh" content="0; url={link}">
|
||||||
|
<title>Redirecting you to your {ship_name} at {provider_name}...</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<a href="{link}">
|
||||||
|
You should be redirected to your {ship_name} at {provider_name} shortly...
|
||||||
|
</a>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
class HyperlinkLabel(tk.Label or ttk.Label): # type: ignore
|
class HyperlinkLabel(tk.Label or ttk.Label): # type: ignore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user