Skip to content

Commit

Permalink
Merge pull request #36 from bdemick/main
Browse files Browse the repository at this point in the history
Fixes macOS import issue
  • Loading branch information
dc3-tsd authored Feb 1, 2024
2 parents 2425963 + 5e658fd commit 608bc37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyhidra/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ def _gui():
# where tkinter can't be imported. Since there may not be an attached
# terminal, the problem still needs to be reported somehow.
try:
import tkinter.messagebox as _
# This import creates problems for macOS
if platform.system() != 'Darwin':
import tkinter.messagebox as _
except ImportError as e:
if platform.system() == 'Windows':
# there is no console/terminal to report the error
Expand Down

0 comments on commit 608bc37

Please sign in to comment.