mirror of
https://github.com/1j01/textual-paint.git
synced 2024-12-21 22:01:31 +03:00
Show every event with comments in generated code
This commit is contained in:
parent
baa2b8cbc6
commit
9739422936
@ -162,6 +162,7 @@ class PilotRecorder():
|
|||||||
helpers: dict[str, str] = {}
|
helpers: dict[str, str] = {}
|
||||||
steps_code = ""
|
steps_code = ""
|
||||||
for step_index, (event, offset, selector, index) in enumerate(self.steps):
|
for step_index, (event, offset, selector, index) in enumerate(self.steps):
|
||||||
|
steps_code += f"# {event!r}, {offset!r}, {selector!r}, {index!r})\n"
|
||||||
if isinstance(event, (MouseDown, MouseMove)):
|
if isinstance(event, (MouseDown, MouseMove)):
|
||||||
pass
|
pass
|
||||||
elif isinstance(event, MouseUp):
|
elif isinstance(event, MouseUp):
|
||||||
|
Loading…
Reference in New Issue
Block a user