# mmgui **Repository Path**: yhnu/mmgui ## Basic Information - **Project Name**: mmgui - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-06 - **Last Updated**: 2024-06-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MMGUI Python GUI Library ## Install ``` # pip install mmgui ``` ## Usage ```python 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](../../wiki) or [examples](../../tree/master/examples) for more details.