[core] add debugging around click events
log commandline outputs and errors. allow input handlers to be configured as "waiting" for debugging purposes. see #628
This commit is contained in:
parent
02a80840a1
commit
a697500491
3 changed files with 16 additions and 5 deletions
|
@ -7,6 +7,8 @@ import core.input
|
|||
import core.widget
|
||||
import core.decorators
|
||||
|
||||
import util.format
|
||||
|
||||
try:
|
||||
error = ModuleNotFoundError("")
|
||||
except Exception as e:
|
||||
|
@ -211,7 +213,14 @@ class Module(core.input.Object):
|
|||
]
|
||||
for action in actions:
|
||||
if self.parameter(action["name"]):
|
||||
core.input.register(self, action["id"], self.parameter(action["name"]))
|
||||
core.input.register(
|
||||
self,
|
||||
action["id"],
|
||||
self.parameter(action["name"]),
|
||||
util.format.asbool(
|
||||
self.parameter("{}-wait".format(action["name"]), False)
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class Error(Module):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue