working on openning and closing files

This commit is contained in:
2026-01-15 16:24:43 +11:00
parent 353c230d15
commit 1cdd04f67b
9 changed files with 269 additions and 15 deletions

View File

@@ -26,6 +26,10 @@ class TimelineRow(Horizontal):
}
}
"""
def __init__(self, project_channel):
super().__init__()
self.project_channel = project_channel
class Timeline(Vertical):
DEFAULT_CSS = """
@@ -126,7 +130,7 @@ class Timeline(Vertical):
with VerticalScroll(id="rows"):
for channel in self.app.project.channels:
with TimelineRow() as row:
with TimelineRow(channel) as row:
row.styles.width = self.bar_offset * self.app.project.song_length