🐣 `mojo-ui-html` immediate-mode `GUI`

Hello!
It is an immediate GUI project started last year,
it only needs socket and is based on html!
(still need to integrate magic to it)

The goal is to have an easy way to create an app,
and that the user don’t need to learn a lot of things,
this is why it works like in a simple loop !

Here are some examples:

It can also be used for larger project, like audio (next releases),
here is an example of a simple music making app:

Hope it can be useful and make people happy, that is the idea!

mojo-ui-html

4 Likes

2 Likes

:information_source: Example for small app:

from ui import *
from math import iota, sqrt
def main():
    GUI = Server[base_theme="theme_neutral.css"]()
    var counter = 0
    while GUI.Event():
        var tmp = iota[DType.float16,SIMD[DType.float16].size](counter)
        GUI.Text(tmp)
        GUI.Text(sqrt(tmp))
        
        GUI.Slider("Counter",counter)
        if GUI.Button("increment"): counter+=1
        if GUI.Button("decrement"): counter-=1
1 Like