Skip to content

Commit

Permalink
Ready for new update
Browse files Browse the repository at this point in the history
  • Loading branch information
HuyHung1408 committed Feb 11, 2022
1 parent 6fef4ac commit 9c8b864
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Fluent Calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def btnEqualsInput():
tex_input.set("Error")
operator=""


def change_theme():
if cal.tk.call("ttk::style", "theme", "use") == "sun-valley-dark":
cal.tk.call("set_theme", "light")
Expand Down Expand Up @@ -59,7 +58,7 @@ def change_theme():
txtDisplay = ttk.Entry(cal, textvariable=tex_input, font='50', justify='right').grid(columnspan=8, pady=8)

#First Column
btnM=ttk.Button(cal, text="M", command=change_theme).grid(row=1, column=0, padx= 8, pady= 8, ipadx=1, ipady=1)
btnM=ttk.Button(cal, text="M", style="Accent.TButton", command=change_theme).grid(row=1, column=0, padx= 8, pady= 8, ipadx=1, ipady=1)
btn7=ttk.Button(cal, text="7", command=lambda:btnClick(7)).grid(row=2, column=0, padx= 8, pady= 5, ipadx=4, ipady=5)
btn4=ttk.Button(cal, text="4", command=lambda:btnClick(4)).grid(row=3, column=0, padx= 8, pady= 5, ipadx=4, ipady=5)
btn1=ttk.Button(cal, text="1", command=lambda:btnClick(1)).grid(row=4, column=0, padx= 8, pady= 5, ipadx=5, ipady=5)
Expand Down

0 comments on commit 9c8b864

Please sign in to comment.