Skip to content

p0ny233/mmgui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMGUI

Python GUI Library

Install

# pip install mmgui

Usage

import sys, os
from mmgui import App, BrowserWindow

def py_func():
    return "hi from py"

app = App(headless=False)
win = None
def on_create(ctx):
    global win
    win = BrowserWindow({
        "title": "Demo - mmgui",
        "width": 1200,
        "height": 800
    })
    win.webview.bind_function("py_func", py_func)
    win.webview.load_file(os.path.join(os.path.dirname(os.path.abspath(__file__)), "index.html"))
    win.show()
app.on("create", on_create)
app.run()

See wiki or examples for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors