##// END OF EJS Templates
Address @ccordoba12's comments
Emilio Graff -
Show More
@@ -68,9 +68,10 b' def set_qt_api(gui):'
68 }
68 }
69 if loaded is not None and gui != "qt":
69 if loaded is not None and gui != "qt":
70 if qt_env2gui[loaded] != gui:
70 if qt_env2gui[loaded] != gui:
71 raise ImportError(
71 print(
72 f"Cannot switch Qt versions for this session; must use {qt_env2gui[loaded]}."
72 f"Cannot switch Qt versions for this session; must use {qt_env2gui[loaded]}."
73 )
73 )
74 return
74
75
75 if qt_api is not None and gui != "qt":
76 if qt_api is not None and gui != "qt":
76 if qt_env2gui[qt_api] != gui:
77 if qt_env2gui[qt_api] != gui:
@@ -108,9 +109,10 b' def set_qt_api(gui):'
108 if "QT_API" in os.environ.keys():
109 if "QT_API" in os.environ.keys():
109 del os.environ["QT_API"]
110 del os.environ["QT_API"]
110 else:
111 else:
111 raise ValueError(
112 print(
112 f'Unrecognized Qt version: {gui}. Should be "qt5", "qt6", or "qt".'
113 f'Unrecognized Qt version: {gui}. Should be "qt5", "qt6", or "qt".'
113 )
114 )
115 return
114
116
115
117
116 def get_inputhook_name_and_func(gui):
118 def get_inputhook_name_and_func(gui):
General Comments 0
You need to be logged in to leave comments. Login now