Skip to content

Commit

Permalink
Added default calc case
Browse files Browse the repository at this point in the history
  • Loading branch information
nishimura5 committed Nov 19, 2024
1 parent d048b06 commit 5599872
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui_parts.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def __init__(self, master, default=""):
validate="key",
validatecommand=(self.register(self._validate), "%P"),
)
if default == "":
default = "untitled"
self.calc_case_entry.insert(tk.END, default)
self.calc_case_entry.pack(side=tk.LEFT, padx=(0, 5))

Expand Down Expand Up @@ -359,6 +361,7 @@ def set_state(self, state):
def set_trace(self, func):
self.var.trace("w", func)


class ToolTip:
def __init__(self, widget, text):
self.widget = widget
Expand Down

0 comments on commit 5599872

Please sign in to comment.