Skip to content

Commit

Permalink
troubleshoot again again again
Browse files Browse the repository at this point in the history
  • Loading branch information
rnmitchell committed Jul 2, 2024
1 parent 0a2c218 commit a12cfb0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lusSTR/cli/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,13 @@
from tkinter import filedialog


if os.environ.get('DISPLAY','') == '':
os.environ.__setitem__('DISPLAY', ':1.0')

# Create a global Tkinter root window
root = tk.Tk()
root.withdraw() # Hide the root window
try:
root = tk.Tk()
root.withdraw() # Hide the root window
except _tkinter.TclError:
print("No GUI available!")

#################################################################
# Functions #
Expand Down

0 comments on commit a12cfb0

Please sign in to comment.