From 7cf88cdcb1f96350a2e198c1fe475c5a7f873254 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Beno=C3=AEt=20Fontaine?= Date: Mon, 19 Mar 2018 20:24:07 +0100 Subject: [PATCH] Fix: remove iconphoto on Mac OS platforms --- fstogedcom.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fstogedcom.py b/fstogedcom.py index 520a32c..52d0f23 100644 --- a/fstogedcom.py +++ b/fstogedcom.py @@ -11,6 +11,7 @@ import tempfile import asyncio import re import os +import sys # local import from getmyancestors import Session, Tree, Indi, Fam @@ -514,6 +515,7 @@ class FStoGEDCOM(Notebook): if __name__ == '__main__': root = Tk() root.title('FamilySearch to GEDCOM') - root.iconphoto(True, PhotoImage(file='fstogedcom.png')) + if sys.platform != 'darwin': + root.iconphoto(True, PhotoImage(file='fstogedcom.png')) fstogedcom = FStoGEDCOM(root) fstogedcom.mainloop() -- 2.52.0