Skip to content

Commit

Permalink
icon and dist code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
netevert committed Apr 24, 2019
1 parent bfba229 commit e3b1a44
Show file tree
Hide file tree
Showing 3 changed files with 1,210 additions and 6 deletions.
Binary file modified icon.ico
Binary file not shown.
7 changes: 4 additions & 3 deletions pockint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import tkinter as tk
from tkinter import messagebox
import tkinter.ttk as ttk
from utils import InputValidator
from utils import InputValidator, load_icon

__version__ = '1.0.0-beta'

Expand Down Expand Up @@ -32,6 +32,7 @@ class Gui(tk.Frame):
def __init__(self, master=None, *args, **kwargs):
super().__init__(master, *args, **kwargs)
self.validator = InputValidator()
self.icon = load_icon()
self.build_menu()
self.build_interface()
self.id_tracker = dict()
Expand Down Expand Up @@ -181,7 +182,7 @@ def view_credits(self):
# launch window and configure window settings
self.win_credits = CreditsTool(self)
self.win_credits.title('')
self.win_credits.iconbitmap('icon.ico')
self.win_credits.iconbitmap(self.icon)
self.win_credits.geometry('+%d+%d' % (root.winfo_x() +
20, root.winfo_y() + 20))
self.win_credits.resizable(width=False, height=False)
Expand All @@ -203,6 +204,6 @@ def quit_program():
pockint = Gui(root)
root.config(menu=pockint.top)
pockint.pack(expand=False)
root.iconbitmap('icon.ico')
root.iconbitmap(pockint.icon)
root.protocol('WM_DELETE_WINDOW', pockint.quit_program)
root.mainloop()
Loading

0 comments on commit e3b1a44

Please sign in to comment.