you can create channels now!!! :D
This commit is contained in:
@@ -3,6 +3,7 @@ from textual.widgets import Button, ListView
|
||||
from textual.app import ComposeResult
|
||||
|
||||
from ui.widgets.channel import Channel
|
||||
from ui.screens.channel_create_screen import ChannelCreateScreen
|
||||
|
||||
|
||||
class Sidebar(Vertical):
|
||||
@@ -22,6 +23,10 @@ class Sidebar(Vertical):
|
||||
}
|
||||
"""
|
||||
|
||||
def on_button_pressed(self, event: Button.Pressed):
|
||||
if event.button.id == "add-channel":
|
||||
self.app.push_screen(ChannelCreateScreen())
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
with VerticalScroll(id="channels"):
|
||||
for i, channel in enumerate(self.app.project.channels):
|
||||
|
||||
Reference in New Issue
Block a user