Skip to content

Commit

Permalink
Make example similar to other templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Dec 25, 2023
1 parent b9cf29f commit a96eea9
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions myapp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,28 @@ def main():

rm = ReMarkable(simple=args.simple) if args.simple is not None else ReMarkable()

rm.eclear()

button = Widget(
id="but1",
id="back",
typ="button",
value="Hello!",
value="back",
justify="left",
x="0",
y="0",
)
text = Widget(
id="hello",
typ="label",
value="Hello World!",
x="50%",
y="50%",
)

rm.add(text)
rm.add(button)
rm.display()

while True:
clicked = rm.display()
if clicked and clicked[0] == button.id:
print("Quitting...")
break

0 comments on commit a96eea9

Please sign in to comment.