1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-17 17:42:20 +03:00

CAPI: Set up AppWindow handling of <<CAPIResponse>> Tk event

This commit is contained in:
Athanasius 2021-08-16 14:32:08 +01:00
parent 11916f1387
commit 9c079c190d
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -648,7 +648,8 @@ class AppWindow(object):
self.w.bind('<FocusOut>', self.onleave) # Special handling for transparency
self.w.bind('<Return>', self.getandsend)
self.w.bind('<KP_Enter>', self.getandsend)
self.w.bind_all('<<Invoke>>', self.getandsend) # Hotkey monitoring
self.w.bind_all('<<Invoke>>', self.getandsend) # Ask for CAPI queries to be performed
self.w.bind_all('<<CAPIResponse>>', self.capi_handle_response)
self.w.bind_all('<<JournalEvent>>', self.journal_event) # Journal monitoring
self.w.bind_all('<<DashboardEvent>>', self.dashboard_event) # Dashboard monitoring
self.w.bind_all('<<PluginError>>', self.plugin_error) # Statusbar
@ -1089,6 +1090,10 @@ class AppWindow(object):
self.suit_show_if_set()
self.cooldown()
def capi_handle_response(self, event=None):
"""Handle the resulting data from a CAPI query."""
...
def journal_event(self, event): # noqa: C901, CCR001 # Currently not easily broken up.
"""
Handle a Journal event passed through event queue from monitor.py.