mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-16 09:10:35 +03:00
EDDN: Abbreviate tracking_ui_update() code
This commit is contained in:
parent
60f3b524e2
commit
42594c9366
@ -996,19 +996,16 @@ def plugin_app(parent: tk.Tk) -> Optional[tk.Frame]:
|
||||
|
||||
def tracking_ui_update() -> None:
|
||||
"""Update the Tracking UI with current data."""
|
||||
if this.body_name is None:
|
||||
this.ui_j_body_name['text'] = '≪None≫'
|
||||
else:
|
||||
this.ui_j_body_name['text'] = '≪None≫'
|
||||
if this.body_name is not None:
|
||||
this.ui_j_body_name['text'] = this.body_name
|
||||
|
||||
if this.body_id is None:
|
||||
this.ui_j_body_id['text'] = '≪None≫'
|
||||
else:
|
||||
this.ui_j_body_id['text'] = '≪None≫'
|
||||
if this.body_id is not None:
|
||||
this.ui_j_body_id['text'] = str(this.body_id)
|
||||
|
||||
if this.status_body_name is None:
|
||||
this.ui_s_body_name['text'] = '≪None≫'
|
||||
else:
|
||||
this.ui_s_body_name['text'] = '≪None≫'
|
||||
if this.status_body_name is not None:
|
||||
this.ui_s_body_name['text'] = this.status_body_name
|
||||
|
||||
this.ui.update_idletasks()
|
||||
|
Loading…
x
Reference in New Issue
Block a user