Skip to content
Snippets Groups Projects
Commit ddca99c4 authored by q3k's avatar q3k
Browse files

py: st4m -> st3m

parent 3bd77c9e
No related branches found
No related tags found
1 merge request!35py: grand st3m unification
from st4m.utils import xy_from_polar, tau
from st4m.property import PUSH_RED, GO_GREEN, BLACK
from st4m.goose import List, Optional
from st4m import Responder, Ctx, InputState
from st3m.utils import xy_from_polar, tau
from st3m.property import PUSH_RED, GO_GREEN, BLACK
from st3m.goose import List, Optional
from st3m import Responder, Ctx, InputState
import random
......
import st4m
import st3m
from st4m.input import InputState
from st4m.ui.ctx import Ctx
from st4m import Responder
from st3m.input import InputState
from st3m.ui.ctx import Ctx
from st3m import Responder
class ScrollController(st4m.Responder):
class ScrollController(st3m.Responder):
"""
ScrolLController is a controller for physically scrollable one-dimensional
lists.
......
import st4m
import st3m
from st4m import Responder
from st4m.goose import ABCBase, abstractmethod, List, Optional
from st4m.input import InputState, InputController
from st4m.ui.view import (
from st3m import Responder
from st3m.goose import ABCBase, abstractmethod, List, Optional
from st3m.input import InputState, InputController
from st3m.ui.view import (
ViewWithInputState,
View,
ViewManager,
ViewTransitionSwipeLeft,
ViewTransitionSwipeRight,
)
from st4m.ui.interactions import ScrollController
from st4m.ui.ctx import Ctx
from st3m.ui.interactions import ScrollController
from st3m.ui.ctx import Ctx
class MenuItem(ABCBase):
......
from st4m.reactor import Responder
from st4m.goose import ABCBase, abstractmethod, Optional, List
from st4m.input import InputState, InputController
from st4m.ui.ctx import Ctx
from st3m.reactor import Responder
from st3m.goose import ABCBase, abstractmethod, Optional, List
from st3m.input import InputState, InputController
from st3m.ui.ctx import Ctx
class View(Responder):
......
File moved
st4m
====
Experimental, heavily-typed flow3r UI/UX framework.
Proof of concept of:
1. Strongly typed Python (using MyPy) which is also used as docs.
2. A deep class hierarchy that is still performant enough.
3. Pretty UX.
Does not implement application lifecycle, but that could be built upon
View/ViewWithInput.
Should be trickle-merged into st3m.
Typechecking
------------
MYPYPATH=$(pwd)/python_payload/mypystubs mypy python_payload/main_st4m.py --strict
Running
-------
Move `main_st4m.py` to `main.py` then either run on badge or in simulator.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment