import flask as f
from flaskwebgui import FlaskUI
class Game(f.Flask)
def __init__(self):
super().__init__(__name__)
@self.route('/')
def homepage():
return f.render_template("game.html")
FlaskUI(self, server="flask").run("0.0.0.0")
should work I changed the inheritance to be properly working and also added the FlaskUI to conform the the docs
Exception in thread Thread-1:
Traceback (most recent call last):
File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/nix/store/hd4cc9rh83j291r5539hkf6qd8lgiikb-python3-3.10.8/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
TypeError: Flask.__call__() missing 2 required positional arguments: 'environ' and 'start_response'
import flask as f
from flaskwebgui import FlaskUI
class Game(f.Flask):
def __init__(self):
super().__init__(__name__)
@self.route('/')
def homepage():
return f.render_template("game.html")
FlaskUI(self).run()
Unsure but I believe flaskui. It was returning a “browser path not found” error. When I tried adding a small portable version of pale moon and added that path, it said “access denied”.