Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Root's .gitignore hides doc/extension/demo.py (#452)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabien Lelaquais <[email protected]>
  • Loading branch information
FabienLelaquais and Fabien Lelaquais authored Oct 7, 2022
1 parent bc333ce commit dbe8175
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/extension/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!demo.py
21 changes: 21 additions & 0 deletions doc/extension/demo.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from taipy.gui import Gui
from my_custom_lib import MyLibrary
import random
import string

value = "a"

page = """
# A custom element
*My custom label:* <|{value}|my_custom.label|>
<|Add a character|button|>
"""

def on_action(state):
state.value = state.value + random.choice(string.ascii_letters)

gui = Gui(page)
gui.add_library(MyLibrary())
gui.run()

0 comments on commit dbe8175

Please sign in to comment.