1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-06-05 01:43:16 +03:00

fixed tk import and type annotations

This commit is contained in:
A_D 2020-07-27 15:15:48 +02:00
parent cad5f72b0a
commit b27e4a3628
No known key found for this signature in database
GPG Key ID: 4BE9EB7DF45076C4

View File

@ -24,7 +24,6 @@
import sys
import tkinter
from typing import Any, Optional, TYPE_CHECKING
import requests
@ -43,7 +42,7 @@ this.system_link: Optional[str] = None
this.system: Optional[str] = None
this.system_address: Optional[str] = None
this.system_population: Optional[int] = None
this.station_link: 'Optional[tkinter.Tk]' = None
this.station_link: 'Optional[Tk]' = None
this.station: Optional[str] = None
this.station_marketid: Optional[int] = None
@ -71,7 +70,7 @@ def plugin_start3(plugin_dir):
return 'eddb'
def plugin_app(parent: 'tkinter.Tk'):
def plugin_app(parent: 'Tk'):
this.system_link = parent.children['system'] # system label in main window
this.system = None
this.system_address = None