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

This commit is contained in:
Athanasius committed 2021-08-23 18:29:31 +01:00
1 parent 11916f1387
commit 9c079c190d
1 file changed
+6 -1
+6 -1
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.