You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sys.stdout.write("Checking for required packages before importing tkinter:\n")
152
+
sys.stdout.flush()
150
153
151
154
to_install= []
152
155
forpkginpackages:
153
-
sys.stdout.write(f"Checking{pkg}...")
156
+
sys.stdout.write(f"{pkg}...")
154
157
sys.stdout.flush()
155
158
156
159
ifcheck_package(pkg):
@@ -160,12 +163,15 @@ def setup_tkinter():
160
163
to_install.append(pkg)
161
164
162
165
ifto_install:
163
-
ifprompt_user_install(', '.join(to_install)):
166
+
response=input(f"{YELLOW} Would you like to install {', '.join(to_install)}{"package"iflen(to_install) ==1else"packages"}? [Y/n]: {RESET}").strip().lower()
0 commit comments