1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-12 15:27:14 +03:00

[2186] General Cleanup

This commit is contained in:
David Sangrey 2024-03-27 22:01:49 -04:00
parent cfb6f729ab
commit 016fb96e06
No known key found for this signature in database
GPG Key ID: 3AEADBB0186884BC
4 changed files with 5 additions and 10 deletions

View File

@ -364,7 +364,7 @@ class PreferencesDialog(tk.Toplevel):
self.outdir_entry = ttk.Entry(output_frame, takefocus=False) self.outdir_entry = ttk.Entry(output_frame, takefocus=False)
self.outdir_entry.grid(columnspan=2, padx=self.PADX, pady=self.BOXY, sticky=tk.EW, row=row.get()) self.outdir_entry.grid(columnspan=2, padx=self.PADX, pady=self.BOXY, sticky=tk.EW, row=row.get())
text = (_('Browse...')) # LANG: NOT-macOS Settings - files location selection button text = _('Browse...') # LANG: NOT-macOS Settings - files location selection button
self.outbutton = ttk.Button( self.outbutton = ttk.Button(
output_frame, output_frame,
@ -410,7 +410,7 @@ class PreferencesDialog(tk.Toplevel):
self.logdir_entry.grid(columnspan=4, padx=self.PADX, pady=self.BOXY, sticky=tk.EW, row=row.get()) self.logdir_entry.grid(columnspan=4, padx=self.PADX, pady=self.BOXY, sticky=tk.EW, row=row.get())
text = (_('Browse...')) # LANG: NOT-macOS Setting - files location selection button text = _('Browse...') # LANG: NOT-macOS Setting - files location selection button
with row as cur_row: with row as cur_row:
self.logbutton = ttk.Button( self.logbutton = ttk.Button(

1
td.py
View File

@ -1,7 +1,6 @@
"""Export data for Trade Dangerous.""" """Export data for Trade Dangerous."""
import pathlib import pathlib
import sys
import time import time
from collections import defaultdict from collections import defaultdict
from operator import itemgetter from operator import itemgetter

View File

@ -31,7 +31,6 @@ if TYPE_CHECKING:
def _(x: str) -> str: return x def _(x: str) -> str: return x
# FIXME: Split this into multi-file module to separate the platforms
class HyperlinkLabel(tk.Label or ttk.Label): # type: ignore class HyperlinkLabel(tk.Label or ttk.Label): # type: ignore
"""Clickable label for HTTP links.""" """Clickable label for HTTP links."""

View File

@ -7,10 +7,8 @@ See LICENSE file.
""" """
from __future__ import annotations from __future__ import annotations
import os
import sys import sys
import threading import threading
from os.path import dirname, join
from traceback import print_exc from traceback import print_exc
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
from xml.etree import ElementTree from xml.etree import ElementTree
@ -163,10 +161,9 @@ class Updater:
return None return None
else: # For *these* purposes anything else is the same as 'windows', as
# For *these* purposes anything else is the same as 'windows', as # non-win32 would be running from source.
# non-win32 would be running from source. sparkle_platform = 'windows'
sparkle_platform = 'windows'
for item in feed.findall('channel/item'): for item in feed.findall('channel/item'):
# xml is a pain with types, hence these ignores # xml is a pain with types, hence these ignores