StardewModLauncher/app/LauncherApplication.py

19 lines
472 B
Python

import webview
from app.Version import Version
from app.webview_api import WebviewApi
class LauncherApplication:
def __init__(self, app_root):
self.webviewApi = WebviewApi()
self.window = webview.create_window(Version.get_full_name(), app_root + '/assets/index.html', js_api=self.webviewApi, min_size=(600,400))
def start(self):
webview.start(debug=True)
if __name__ == '__main__':
app = LauncherApplication('..')
app.start()