update asserts
This commit is contained in:
25
examples/widgets/tabview/lv_example_tabview_1.py
Normal file
25
examples/widgets/tabview/lv_example_tabview_1.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# Create a Tab view object
|
||||
tabview = lv.tabview(lv.scr_act())
|
||||
|
||||
# Add 3 tabs (the tabs are page (lv_page) and can be scrolled
|
||||
tab1 = tabview.add_tab("Tab 1")
|
||||
tab2 = tabview.add_tab("Tab 2")
|
||||
tab3 = tabview.add_tab("Tab 3")
|
||||
|
||||
# Add content to the tabs
|
||||
label = lv.label(tab1)
|
||||
label.set_text("""This the first tab
|
||||
|
||||
If the content
|
||||
of a tab
|
||||
become too long
|
||||
the it
|
||||
automatically
|
||||
become
|
||||
scrollable.""")
|
||||
|
||||
label = lv.label(tab2)
|
||||
label.set_text("Second tab")
|
||||
|
||||
label = lv.label(tab3)
|
||||
label.set_text("Third tab")
|
||||
Reference in New Issue
Block a user