Last active
March 14, 2024 06:36
-
-
Save overwatcheddude/2ff0278a6e507f0ac52a7820b6d73f0c to your computer and use it in GitHub Desktop.
A very simple Python script that checks whether tkinter is available or not.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
import tkinter as tk | |
print("tkinter is available") | |
except ImportError: | |
print("tkinter is not available") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment