Skip to content

Commit

Permalink
distutils version comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Schimansky committed Feb 11, 2021
1 parent 181c7aa commit f3a91fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def draw_main_frame(self, event=0):

def on_closing(self, event=0):
if sys.platform == "darwin": # macOS
if version_tuple(tkinter.Tcl().call("info", "patchlevel")) >= version_tuple("8.6.9"): # Tcl/Tk >= 8.6.9
if Version(tkinter.Tcl().call("info", "patchlevel")) >= Version("8.6.9"): # Tcl/Tk >= 8.6.9
os.system("defaults delete -g NSRequiresAquaSystemAppearance") # Only for dark-mode testing!
# This command reverts the darkmode setting for all programs.

Expand Down

0 comments on commit f3a91fd

Please sign in to comment.