Skip to content

Instantly share code, notes, and snippets.

@overwatcheddude
Last active March 14, 2024 06:36
Show Gist options
  • Save overwatcheddude/2ff0278a6e507f0ac52a7820b6d73f0c to your computer and use it in GitHub Desktop.
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.
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