From: BenoƮt Fontaine Date: Sat, 17 Mar 2018 21:19:28 +0000 (+0100) Subject: Fix icon for linux platform X-Git-Url: https://git.nutra.tk/v1?a=commitdiff_plain;h=dd555ebc5026c72357626c6a2f8ab375709f1709;p=gamesguru%2Fgetmyancestors.git Fix icon for linux platform --- diff --git a/README.md b/README.md index 6a4cfa8..e09f5b7 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ The graphical interface requires the tkinter module (https://docs.python.org/3/l To download the script, click on the green button "Clone or download" on the top of this page and then click on "Download ZIP". -Current version was updated on March 4th 2018. +Current version was updated on March 17th 2018. How to use diff --git a/fstogedcom.ico b/fstogedcom.ico deleted file mode 100644 index e04de03..0000000 Binary files a/fstogedcom.ico and /dev/null differ diff --git a/fstogedcom.png b/fstogedcom.png new file mode 100644 index 0000000..0cb222a Binary files /dev/null and b/fstogedcom.png differ diff --git a/fstogedcom.py b/fstogedcom.py index 0532b89..520a32c 100644 --- a/fstogedcom.py +++ b/fstogedcom.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # global import -from tkinter import Tk, StringVar, IntVar, filedialog, messagebox, Menu, TclError +from tkinter import Tk, StringVar, IntVar, filedialog, messagebox, Menu, TclError, PhotoImage from tkinter.ttk import Frame, Label, Entry, Button, Checkbutton, Treeview, Notebook from threading import Thread from diskcache import Cache @@ -514,6 +514,6 @@ class FStoGEDCOM(Notebook): if __name__ == '__main__': root = Tk() root.title('FamilySearch to GEDCOM') - root.iconbitmap('fstogedcom.ico') + root.iconphoto(True, PhotoImage(file='fstogedcom.png')) fstogedcom = FStoGEDCOM(root) fstogedcom.mainloop()