Skip to content

Commit

Permalink
Only warn about tkinter bug for 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
laggykiller committed Oct 3, 2023
1 parent 58790f1 commit b1c5399
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sticker_convert/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,14 @@ def pack_frames(self):
self.control_frame.grid(column=0, row=4, columnspan=2, sticky='news', padx=5, pady=5)

def warn_tkinter_bug(self):
if platform.system() == 'Darwin' and platform.machine() == 'x86_64':
if (platform.system() == 'Darwin' and
platform.machine() == 'x86_64' and
sys.version_info[0] == 3 and
sys.version_info[1] == 11):
msg = 'NOTICE: If buttons are not responsive, try to press '
msg += 'on title bar or move mouse cursor away from window for a while.'
self.cb_msg(msg)
msg = '(This is due to a bug in tkinter specific to x86_64 macOS)'
msg = '(This is due to a bug in tkinter specific to x86_64 macOS python3.11)'
self.cb_msg(msg)
msg = '(https://github.com/python/cpython/issues/110218)'
self.cb_msg(msg)
Expand Down

0 comments on commit b1c5399

Please sign in to comment.