Skip to content

Commit

Permalink
UI: Add Icons to all the Sub Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tks18 committed Jun 6, 2021
1 parent eef1d35 commit 1cce04d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions app/helpers/ui/check_box_window.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import tkinter as tk
from app.helpers.utilities.path_helpers import resource_path


class check_box_window:
def __init__(self, master, title, check_box_options, saved_options=None):
self.ui = tk.Toplevel(master=master.ui)
self.ui.title(title)
self.ui.config(bg=master.bg, padx=15, pady=7)
self.icon = tk.PhotoImage(file=resource_path("images/logo.png"))
self.ui.iconphoto(False, self.icon)

self.check_box_options = [
{key: prop} for (key, prop) in check_box_options.items()
Expand Down
3 changes: 3 additions & 0 deletions app/helpers/ui/loader_window.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import tkinter as tk
from tkinter.ttk import Progressbar
from app.helpers.threader import threader
from app.helpers.utilities.path_helpers import resource_path


class loader_window:
def __init__(self, master, title, text, function, **function_args):
self.ui = tk.Toplevel(master=master.ui)
self.ui.title(title)
self.ui.config(bg=master.bg, padx=15, pady=7)
self.icon = tk.PhotoImage(file=resource_path("images/logo.png"))
self.ui.iconphoto(False, self.icon)

self.function = function
self.function_args = function_args
Expand Down
4 changes: 3 additions & 1 deletion app/helpers/ui/text_box_window.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import tkinter as tk
from app.helpers.utilities.path_helpers import resource_path


class text_box_window:
def __init__(self, master, title, labels):
self.ui = tk.Toplevel(master=master.ui)
self.ui.title(title)

self.ui.config(bg=master.bg, padx=15, pady=7)
self.icon = tk.PhotoImage(file=resource_path("images/logo.png"))
self.ui.iconphoto(False, self.icon)

self.label_props = labels
self.label = {}
Expand Down
2 changes: 1 addition & 1 deletion main.spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ exe = EXE(pyz,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True , icon='G:\\Development Projects\\Python Projects\\gstr-json-2-excel\\images\\logo.ico')
console=False , icon='G:\\Development Projects\\Python Projects\\gstr-json-2-excel\\images\\logo.ico')

0 comments on commit 1cce04d

Please sign in to comment.