Skip to content

Commit

Permalink
Added icons to new windows
Browse files Browse the repository at this point in the history
  • Loading branch information
TerraMonster5 committed May 23, 2024
1 parent 569d8ac commit 6aca45c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pvz-preview/about.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ def __init__(self, cnf: dict={}, **kwargs) -> None:
kwargs = cnf or kwargs
super().__init__(**kwargs)

self.iconbitmap("assets/icon.ico")
self.title("About")
self.resizable(False, False)

ttk.Label(self, text="Version: 0.1.5").pack()
ttk.Label(self, text="Version: 0.1.7").pack()
ttk.Button(self, text="License", command=lambda: License.show(master=self)).pack()

class License(tk.Toplevel, abstracts.Singleton):
Expand All @@ -35,6 +36,7 @@ def __init__(self, cnf: dict={}, **kwargs) -> None:
kwargs = cnf or kwargs
super().__init__(**kwargs)

self.iconbitmap("assets/icon.ico")
self.title("GNU General Public License | Version 3")
self.resizable(False, False)

Expand Down

0 comments on commit 6aca45c

Please sign in to comment.