Skip to content

Commit

Permalink
- Warn about tkinter bug if macOS 14 python3.11
Browse files Browse the repository at this point in the history
- Notify about uploading a sticker pack
  • Loading branch information
laggykiller committed Oct 5, 2023
1 parent db2b1ec commit f271355
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sticker_convert/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ def pack_frames(self):

def warn_tkinter_bug(self):
if (platform.system() == 'Darwin' and
platform.machine() == 'x86_64' and
platform.mac_ver().split('.')[0] == '14' 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 python3.11)'
msg = '(This is due to a bug in tkinter specific to macOS 14 python3.11)'
self.cb_msg(msg)
msg = '(https://github.com/python/cpython/issues/110218)'
self.cb_msg(msg)
Expand Down
1 change: 1 addition & 0 deletions src/sticker_convert/uploaders/upload_signal.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def upload_stickers_signal(self) -> list[str]:

packs = MetadataHandler.split_sticker_packs(self.in_dir, title=title, file_per_pack=200, separate_image_anim=False)
for pack_title, stickers in packs.items():
self.cb_msg(f'Uploading pack {pack_title}')
pack = LocalStickerPack()
pack.title = pack_title
pack.author = author
Expand Down
1 change: 1 addition & 0 deletions src/sticker_convert/uploaders/upload_telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ def upload_stickers_telegram(self) -> list[str]:
packs = MetadataHandler.split_sticker_packs(self.in_dir, title=title, file_per_anim_pack=50, file_per_image_pack=120, separate_image_anim=not self.fake_vid)

for pack_title, stickers in packs.items():
self.cb_msg(f'Uploading pack {pack_title}')
result = anyio.run(self.upload_pack, pack_title, stickers, emoji_dict)
self.cb_msg(result)
urls.append(result)
Expand Down

0 comments on commit f271355

Please sign in to comment.