File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- from textual .demo2 .demo_app import DemoApp
1
+ from textual .demo .demo_app import DemoApp
2
2
3
3
if __name__ == "__main__" :
4
4
app = DemoApp ()
Original file line number Diff line number Diff line change @@ -211,7 +211,8 @@ class ProjectsScreen(PageScreen):
211
211
"""
212
212
213
213
def compose (self ) -> ComposeResult :
214
- with VerticalScroll ():
214
+ with VerticalScroll () as container :
215
+ container .can_focus = False
215
216
with Center ():
216
217
yield Markdown (PROJECTS_MD )
217
218
with ItemGrid (min_column_width = 40 ):
Original file line number Diff line number Diff line change @@ -449,7 +449,8 @@ class WidgetsScreen(PageScreen):
449
449
BINDINGS = [("escape" , "unfocus" )]
450
450
451
451
def compose (self ) -> ComposeResult :
452
- with containers .VerticalScroll ():
452
+ with containers .VerticalScroll () as container :
453
+ container .can_focus = False
453
454
yield Markdown (WIDGETS_MD , classes = "column" )
454
455
yield Buttons ()
455
456
yield Checkboxes ()
You can’t perform that action at this time.
0 commit comments