Python tkinter cut down path but open as full directory
问题 Here is my full Python code: from tkinter import * import glob import os from PIL import Image, ImageTk, ImageGrab import tkinter as tk import pyautogui import datetime #date & time now = datetime.datetime.now() root = tk.Tk() root.title("SIGN OFF") root.minsize(840, 800) # Add a grid mainframe = tk.Frame(root) mainframe.columnconfigure(0, weight=1) mainframe.rowconfigure(0, weight=1) mainframe.pack(pady=100, padx=100) # Create a Tkinter variable tkvar = tk.StringVar(root) # Directory