Skip to content

Commit

Permalink
docs: Adds PanedWindow example
Browse files Browse the repository at this point in the history
  • Loading branch information
jasondelaat committed Mar 1, 2021
1 parent 5f5bd0f commit 4fe4da7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/panedwindow_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Demonstrates the PanedWindow widget.

from ticklish_ui import *

def make_frame(n):
return Frame(
# .row1
[Text(f'Some text in pane {n}')]
)

app = Application(
'PanedWindow Example',
# .row1
[PanedWindow(
(1, make_frame(1)),
(3, make_frame(2))
).options(orient='horizontal', width=640)
]
)

app.mainloop()

0 comments on commit 4fe4da7

Please sign in to comment.