Athanasius
6a403a5482
hotkey: Final mypy lints
...
* Ignore types on the darwin stuff in-class if from platform specific
imports.
* None of the HotkeyMgr __init__ methods take any args, so don't try to
pass any through. Stops mypy complaints.
2021-04-12 08:31:48 +01:00
Athanasius
9f1ae40775
hotkey: Make LinuxHotkeyMgr 'pass' implementations.
...
We do need to 'implement' them, but it's a all a no-op on Linux.
2021-04-12 08:31:48 +01:00
Athanasius
9c8714177e
hotkey: Now runs on win32, despite MacHotkeyMgr class.
2021-04-12 08:31:48 +01:00
Athanasius
e0a3f1ad53
hotkey: Basic conversion to Abstract class, and implementation per platform
2021-04-12 08:31:48 +01:00
Athanasius
8aa0337ff4
Small imports tidy up.
2021-04-12 08:31:48 +01:00
Athanasius
1073a15fa2
Need tkinter always, not just TYPE_CHECKING
2021-04-12 08:31:48 +01:00
Athanasius
42cd2c501e
hotkey: win32 flake8 linting
2021-04-12 08:31:48 +01:00
Athanasius
7dbf150846
hotkey: flake8 lints for darwin
2021-04-12 08:31:48 +01:00
Athanasius
92376dda85
And now isort wants things to cuddle up
2021-04-12 08:31:48 +01:00
Athanasius
5d15751528
Remove unused darwin import
2021-04-12 08:31:48 +01:00
Athanasius
2de9352f9a
hotkey.py: module docstring, and fix imports
2021-04-12 08:31:48 +01:00
Athanasius
114379c8ed
hotkey: Load good/bad sounds without leaking an open file descriptor.
2021-04-01 14:45:50 +01:00
A_D
051245cf90
Renamed various config values to be backwards compatible
2021-04-01 14:45:48 +01:00
Athanasius
a8aab186bf
config: Update some 'callers' of config.shutting_down for it being a property
2021-04-01 14:45:48 +01:00
Athanasius
b39cc7974e
hotkey: Avoid event_generate() calls during shutdown
...
# Conflicts:
# hotkey.py
2021-04-01 14:45:48 +01:00
Athanasius
25852997c5
Updated all source to use new config methods
...
# Conflicts:
# monitor.py
2021-04-01 14:45:46 +01:00
Athanasius
abfde73362
dashboard, hotkey, protocol: Use EDMCLogging.get_main_logger()
...
It does the EDMC/EDMarketConnector check.
2021-04-01 14:45:44 +01:00
Athanasius
99e2dfb62a
hotkey: Detailed logging in HotKeyMgr.worker()
...
# Conflicts:
# hotkey.py
2021-04-01 14:45:44 +01:00
Athanasius
9cff84327d
hotkey: Detailed logging in HotKeyMgr.register()
2021-04-01 14:45:44 +01:00
Athanasius
a47b9cfa8d
hotkey: Detailed logging in HotKeyMgr.unregister()
2021-04-01 14:45:44 +01:00
Athanasius
462cd25312
config: Make config.shutting_down() a property, and change 'callers'
2021-01-11 16:54:09 +00:00
Athanasius
6cdc1dc20c
hotkey: Avoid event_generate() calls during shutdown
2021-01-11 16:41:57 +00:00
Jonathan Harris
0f09c09d43
Misc fixes for MacOS
2019-09-30 03:07:38 +01:00
Athanasius
89df69601d
TODO: 'Hotkey' setting works.
...
Tested with:
NumPad 5 (revealed s/unichr/chr/ issue)
F1
Ctrl+Shift+F1
Shift+Ins
Shift+Del
2019-09-26 11:40:42 +01:00
Jonathan Harris
28169cc404
Clean up hotkey thread on exit on Windows
2016-09-06 12:42:23 +01:00
Jonathan Harris
bc42ff6f28
Allow monitoring of client log over network share
...
on windows and Linux.
2016-07-27 15:55:46 +01:00
Jonathan Harris
da87eb71e6
Fix race condition on stopping.
2016-01-31 12:44:39 +00:00
Jonathan Harris
2cd52e8377
Consolidate handling of data resource path.
2016-01-28 12:32:25 +00:00
Jonathan Harris
eca4da57e0
Pass hotkey on if not used on Windows.
...
Fixes "Only when Elite: Dangerous is the active app" setting.
2016-01-05 01:06:37 +00:00
Jonathan Harris
b9257cead3
Unregister hotkey on app exit on Windows.
...
Hopefully fixes issues #68 and #69 .
2016-01-02 01:59:15 +00:00
Jonathan Harris
1af4bb7fba
Add some comments about hotkey handling on Windows.
2015-12-01 17:53:03 +00:00
Jonathan Harris
02772872fd
Minor optimzation.
2015-11-19 00:54:04 +00:00
Jonathan Harris
07455d8864
Add setting whether to activate hotkey when E:D is active.
...
Revert 536f4cc.
2015-09-13 14:32:21 +01:00
Jonathan Harris
7f08a6ff9f
Fixes for function hotkeys on OSX.
2015-09-12 16:58:22 +01:00
Jonathan Harris
56f3062388
Fixes for running on Linux.
2015-09-12 16:29:43 +01:00
Jonathan Harris
94841549aa
Fixes for packaged app on OSX.
2015-09-12 04:24:36 +01:00
Jonathan Harris
9273e1e3d7
Add hotkey/shortcut support.
2015-09-12 04:03:12 +01:00