mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
name fix
This commit is contained in:
@@ -515,7 +515,7 @@ class DOMNode(MessagePump):
|
||||
tree = Tree(render_info(self))
|
||||
|
||||
def add_children(tree, node):
|
||||
for child in node.children_view:
|
||||
for child in node.children:
|
||||
info = render_info(child)
|
||||
branch = tree.add(info)
|
||||
if tree.children:
|
||||
@@ -557,7 +557,7 @@ class DOMNode(MessagePump):
|
||||
tree = Tree(render_info(self))
|
||||
|
||||
def add_children(tree, node):
|
||||
for child in node.children_view:
|
||||
for child in node.children:
|
||||
info = render_info(child)
|
||||
css = child.styles.css
|
||||
if css:
|
||||
@@ -571,7 +571,7 @@ class DOMNode(MessagePump):
|
||||
),
|
||||
)
|
||||
branch = tree.add(info)
|
||||
if tree.children_view:
|
||||
if tree.children:
|
||||
add_children(branch, child)
|
||||
|
||||
add_children(tree, self)
|
||||
|
||||
@@ -104,7 +104,7 @@ async def test_screens():
|
||||
app.push_screen("screen3")
|
||||
assert app.screen_stack == [screen2, screen3]
|
||||
assert app.screen is screen3
|
||||
# Only the current screen is in children_view
|
||||
# Only the current screen is in children
|
||||
assert app.children == (screen3,)
|
||||
|
||||
# Pop a screen
|
||||
|
||||
Reference in New Issue
Block a user