Skip to content

Commit 4802016

Browse files
committed
Fix the make_gui function as well
1 parent b86fc60 commit 4802016

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ManualClient.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,11 @@ def run_gui(self):
226226
self.ui_task = asyncio.create_task(self.ui.async_run(), name="UI")
227227

228228
def make_gui(self) -> typing.Type["kvui.GameManager"]:
229-
ui = super().make_gui() # before the kivy imports so kvui gets loaded first
229+
if hasattr(SuperContext, "make_gui"):
230+
ui = super().make_gui() # before the kivy imports so kvui gets loaded first
231+
else:
232+
from kvui import GameManager
233+
ui = GameManager
230234

231235
from kivy.metrics import dp
232236
from kivy.uix.button import Button

0 commit comments

Comments
 (0)