Skip to content

Commit 415b3d7

Browse files
Add HelloWorld app
1 parent 37c5469 commit 415b3d7

3 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "HelloWorld",
3+
"publisher": "MicroPythonOS",
4+
"short_description": "Minimal app",
5+
"long_description": "Demonstrates the simplest app.",
6+
"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.helloworld/icons/com.micropythonos.helloworld_0.0.2_64x64.png",
7+
"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.helloworld/mpks/com.micropythonos.helloworld_0.0.2.mpk",
8+
"fullname": "com.micropythonos.helloworld",
9+
"version": "0.0.2",
10+
"entrypoint": "assets/hello.py",
11+
"category": "development",
12+
"activities": [
13+
{
14+
"entrypoint": "assets/hello.py",
15+
"classname": "Hello",
16+
"intent_filters": [
17+
{
18+
"action": "main",
19+
"category": "launcher"
20+
}
21+
]
22+
}
23+
]
24+
}
25+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from mpos.apps import Activity
2+
3+
class Hello(Activity):
4+
5+
def onCreate(self):
6+
screen = lv.obj()
7+
label = lv.label(screen)
8+
label.set_text('Hello World!')
9+
label.center()
10+
self.setContentView(screen)
5.25 KB
Loading

0 commit comments

Comments
 (0)