Skip to content

Instantly share code, notes, and snippets.

@novaTopFlex
Created April 30, 2024 12:16
Show Gist options
  • Save novaTopFlex/f58b6d91984eafa0df6adf076103232f to your computer and use it in GitHub Desktop.
Save novaTopFlex/f58b6d91984eafa0df6adf076103232f to your computer and use it in GitHub Desktop.
This is an incomplete Python script of only the modules that I am likely to import in my Python projects and nothing else.
import os # Interface with the operating system
import sys # Interface with system information
import tkinter # Interface with Tcl/Tk; default graphical toolkit for Python
import tkinter.ttk # Extended interface for Tcl/Tk
import tkinter.colorchooser # Add colorchooser compatibility to Tkinter.
import tkinter.commondialog # Add support for dialog types to Tkinter.
import tkinter.constants # Implementation of various constants from Tkinter
import tkinter.dnd # Create drag-and-drop support with Tkinter.
import tkinter.filedialog # Create file dialogs with Tkinter.
import tkinter.messagebox # Create graphical message boxes (technically dialog boxes) for Tkinter.
import tkinter.scrolledtext # Insert scrolled-text elements on Tkinter.
import tkinter.simpledialog # Insert simple dialog types for Tkinter.
# We do not import tkinter.tix as the module has been deprecated since `python3.6`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment