you can create channels now!!! :D

This commit is contained in:
2026-01-14 15:51:34 +11:00
parent 7ca336c321
commit 827f39afcc
4 changed files with 90 additions and 3 deletions

View File

@@ -2,8 +2,11 @@ from textual.app import App, ComposeResult
from textual.widgets import Footer, Tab, Tabs, Header
from ui.widgets.sidebar import Sidebar
from ui.widgets.timeline import Timeline
from ui.widgets.timeline import Timeline, TimelineRow
from ui.widgets.project_settings import ProjectSettings
from ui.widgets.channel import Channel
from project import ProjectChannel
from song_player import SongPlayer
@@ -22,6 +25,17 @@ class AppUI(App):
self.song_player = SongPlayer(self)
def create_channel(self, name: str):
self.query_one("#channels").mount(Channel(
len(self.project.channels),
name,
), before=-1)
self.query_one("#rows").mount(TimelineRow())
self.project.channels.append(ProjectChannel(
name
))
def on_mount(self):
self.song_player.play_song(self.app.project)