mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 17:00:53 +00:00
Update parse_cmx_events.py
Made title a property
This commit is contained in:
@@ -16,6 +16,7 @@ class EditList:
|
|||||||
self.title_statement = statements[0]
|
self.title_statement = statements[0]
|
||||||
self.event_statements = statements[1:]
|
self.event_statements = statements[1:]
|
||||||
|
|
||||||
|
@property
|
||||||
def title(self):
|
def title(self):
|
||||||
'The title of the edit list'
|
'The title of the edit list'
|
||||||
return self.title_statement.title
|
return self.title_statement.title
|
||||||
@@ -234,6 +235,3 @@ class Transition:
|
|||||||
"`True` if this is a key out event."
|
"`True` if this is a key out event."
|
||||||
return self.transition == KeyOut
|
return self.transition == KeyOut
|
||||||
|
|
||||||
def __repr__(self):
|
|
||||||
return f"""CmxTransition(transition={self.transition.__repr__()},operand={self.operand.__repr__()})"""
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user