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:
parent
cad5f72b0a
commit
b27e4a3628
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user