1
0
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:
David Sangrey 2024-05-13 19:45:53 -04:00
parent 64cd5b3cc5
commit 459881d618
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC
2 changed files with 16 additions and 17 deletions

View File

@ -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."""

View File

@ -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