Commit Graph
76 Commits
Author SHA1 Message Date
David Sangrey 5ea845c3ac Update for New Enum 2026-01-04 20:05:34 -05:00
David Sangrey beb68efae8 [2568] Fix Ships JSON Typo 2025-12-25 01:36:24 -05:00
David Sangrey 2041b3d3d3 [Minor] Update Type Hints and Alias Usages 2025-12-01 22:04:28 -05:00
David Sangrey c3f9247cd1 [#2116] Hand more things to TTK 2025-11-11 20:24:58 -05:00
David Sangrey 08bfbe1582 [2406] Refactor Non-Plugin Modules 2025-04-14 21:33:54 -04:00
David Sangrey 625856c31c [1805] Apply More Pywin32 2024-06-11 11:36:43 -04:00
David Sangrey b1ba45ab90 [1805] Update Prototypes 2024-06-10 23:29:04 -04:00
David Sangrey 17a7af959a [#1805] pywin32 Handoff 2024-06-10 23:00:44 -04:00
David Sangrey 080d9f98f2 [1812] Handover Translations 2024-04-22 17:33:28 -04:00
David Sangrey 57cd75e75e [2186] Additional Files 2024-03-27 19:39:51 -04:00
David Sangrey 57b00c6105 [Minor] Minor Code Tweaks
Officially Deprecates ttkHyperlinkLabel/openurl() function, a few minor code readability updates, and updates dependencies
2023-12-23 20:12:17 -05:00
David Sangrey cb2a18025c [2051] First Pass Remaining Files 2023-11-30 21:30:18 -05:00
Athanasius cdb61bcced stats.py: Checking CAPI lastStarport is un-necessary, as never used.
The `lastSystem` *is* however used, for the 'current ship not currently
docked' case.
2022-12-23 15:44:42 +00:00
Athanasius bc5cb48f8c stats.py: Remove usage of un-necessary typing types.
Dict, List, Optional
2022-12-23 14:47:41 +00:00
Athanasius 95b442cf02 stats.py: Minor typing fixes. 2022-12-23 14:47:16 +00:00
A_D bff6175ee7 Update to use sys.platform over platform 2022-01-26 18:51:49 +02:00
A_D ddcb5219b4 fix mercenary rank, add some comments 2022-01-25 19:23:22 +02:00
A_D 2a4199e098 de-magic-number row splitting 2022-01-25 19:13:32 +02:00
A_D cf4c2d18f1 silence flake8 N806 2022-01-25 18:54:42 +02:00
A_D 046c07e89c add Elite I-V 2022-01-25 18:43:04 +02:00
A_D 626fb0cb87 add odyssey ranks to status page 2022-01-25 17:39:44 +02:00
Athanasius 531302b7da Notify user when 'File' > 'Status' fails
Rather than a silent failure, set a status line message and also play
the 'bad' sound to draw their attention to it.
2021-10-20 14:32:04 +01:00
Athanasius 120414ac59 CAPI: Convert StatsDialog.showstats() to using cached CAPI data
This will just bail if no data has yet been received for /profile, but
that's the same behaviour as if we don't yet have `monitor.cmdr`.
2021-08-25 14:08:36 +01:00
Athanasius 1dcefafc73 CAPI: Pass tk_response_event in Request to optionally use in response
EDMC.py will also need to make CAPI queries using the new threaded
method, but it has no tkinter, thus we need to pass in the event name
when we expect one to be generated, and only generate it if this is not
None.
2021-08-24 12:41:02 +01:00
Athanasius 8d7072fda4 stats.py: TODO: Use cached /profile CAPI data when available 2021-08-23 18:29:35 +01:00
Athanasius 21098f8cfd stats.py: Missing LANG comment, and type ignore on some ctypes 2021-06-13 12:14:01 +01:00
A_D 2fb47377a3 Added comments 2021-06-07 12:43:22 +02:00
A_D a89d4f1901 Fixed line too long 2021-05-21 11:02:51 +02:00
A_D e68494035e Sorted imports 2021-05-17 08:25:13 +02:00
A_D 9d68938293 Added the ability to copy individual entries from status
Currently no method for entire pages.

closes #1060
2021-05-17 08:22:35 +02:00
Athanasius ad8c63c64c Move util_ships.py ship_map to data.py ship_name_map
Also refactors data.py to edmc_data.py as I'm having weird issues with
PyCharm debugger not starting, and this seems to be to do with module
name clashes.
2021-04-12 08:31:47 +01:00
Athanasius a09512f3b3 Mostly refactoring companion.ship_file_name() into util_ships.py
* Also prevent "You're not docked at a station!" for on_foot.
2021-04-12 08:30:51 +01:00
A_D b5282fc8ea Deprecated camelCase methods
Python prefers snake_case methods and camelCase classes. This replaces
some camelCase methods with snake_case variants, and has the original
names raise a DeprecationWarning before calling the snake_case versions
2021-04-01 14:45:47 +01:00
A_D fe26359170 passed only what was needed to StatsDialog
passing the entire AppWindow just made a mess of typing
2021-04-01 14:45:44 +01:00
A_D 2819c92006 Removed tabs 2021-04-01 14:45:44 +01:00
A_D 7f5bfa36f0 added logging of exception 2021-04-01 14:45:44 +01:00
A_D ecd13b094b Removed mutable default 2021-04-01 14:45:44 +01:00
A_D ad8fdd763a made ships() return a List of NamedTuples
This way, we can access items without remembing indexes, if needed
2021-04-01 14:45:44 +01:00
A_D 3b4d56b842 Added docstrings, type annotations
This looks quite large, but it makes no code changes other than
docstrings and type annotations. Along with a small code style fix.
2021-04-01 14:45:44 +01:00
A_D d1e2e2b1f3 Removed uneeded list comprehensions 2021-04-01 14:45:44 +01:00
A_D 53c6f85124 Fixed (im)possible UnboundLocalExceptions 2021-04-01 14:45:44 +01:00
A_D 84a093a7e3 replaced string formatting with interpolation 2021-04-01 14:45:44 +01:00
A_D c7e0850ea1 removed star import 2021-04-01 14:45:44 +01:00
A_D a25ea9dfa9 autoformatted code 2021-04-01 14:45:44 +01:00
A_D c13caa22ef sorted imports, manually formatted some super long lines 2021-04-01 14:45:44 +01:00
Athanasius e51b4f5c68 Cleanup of EDMC.py and related code. All flags tested.
Mostly the usual file-mode versus .encode('utf-8') tweaks, but also
one list() needed around a <dict>.values().
2019-09-26 11:40:42 +01:00
Athanasius 218c068ee5 Running EDMarketConnector.py 'works'.
First pass utilising 'futurize' to do most of the work.

  There's an issue with ur'\"' in l10n.py which I'm not sure how to
properly fix.

  This now has errors when hitting the 'Update' button.
2019-09-26 11:40:38 +01:00
Jonathan Harris a6ce9edc1d Fix running under Wine 2019-06-19 12:09:26 +01:00
Jonathan Harris 70ec257934 Wait til log set up before installing translations 2019-04-09 10:10:33 -07:00
Jonathan Harris f17f5d3f25 PKCE OAuth2 access to cAPI 2018-12-28 03:32:26 +00:00