Skip to content

Commit

Permalink
Reverted back, icon still remains in titlebar since the icon in the t…
Browse files Browse the repository at this point in the history
…askbar is also blank if I set it like that
  • Loading branch information
HuyHung1408 committed May 29, 2022
1 parent 9d5a404 commit e2719fe
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,8 @@
import darkdetect
import sv_ttk
import ntkutils
import tempfile
import calculations as c

ICON = (b'\x00\x00\x01\x00\x01\x00\x10\x10\x00\x00\x01\x00\x08\x00h\x05\x00\x00'
b'\x16\x00\x00\x00(\x00\x00\x00\x10\x00\x00\x00 \x00\x00\x00\x01\x00'
b'\x08\x00\x00\x00\x00\x00@\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
b'\x00\x01\x00\x00\x00\x01') + b'\x00'*1282 + b'\xff'*64

_, ICON_PATH = tempfile.mkstemp()
with open(ICON_PATH, 'wb') as icon_file:
icon_file.write(ICON)
import calculations as c

def aot():
if always_on_top.get() == 1:
Expand Down Expand Up @@ -49,7 +40,7 @@ def btnEqualsInput(event=None):
root.resizable(False, False)
root.geometry('318x480')
root.title('')
root.iconbitmap(default=ICON_PATH)
root.iconbitmap(r'icon.ico')
ntkutils.placeappincenter(root)

if darkdetect.theme() == "Dark":
Expand Down

0 comments on commit e2719fe

Please sign in to comment.