Skip to content

Commit 9ddff4f

Browse files
committed
fix: should detect class with is
1 parent 999f5ed commit 9ddff4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli2gui/application/application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ def run(buildSpec: types.FullBuildSpec) -> None:
3636
else:
3737
gui_wrapper = DearPyGuiWrapper
3838

39-
if isinstance(gui_wrapper, PySimpleGUIWrapper):
39+
if gui_wrapper is PySimpleGUIWrapper:
4040
gui = gui_wrapper(theme, buildSpec["gui"])
41-
elif isinstance(gui_wrapper, DearPyGuiWrapper):
41+
elif gui_wrapper is DearPyGuiWrapper:
4242
gui = gui_wrapper(theme)
4343

4444
def quit_callback() -> None:

0 commit comments

Comments
 (0)