Skip to content

Commit

Permalink
Moving history frame grid to widgets
Browse files Browse the repository at this point in the history
this probably should have been done with the last commit, oh well
  • Loading branch information
Vhou-Atroph committed May 9, 2024
1 parent 83312b7 commit 27f649a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/tt_damage_calculator/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,6 @@ def cog_health_calc_show():

# Geometry - Calculation History
window.history.grid(column=0, row=0)
window.history.label.grid(column=0, row=0)
window.history.box.grid(column=0, row=1)
window.history.clear_button.grid(column=0, row=2, pady=3)
window.history.sos_button.grid(column=0, row=4, pady=3)

# Geometry - Calculation Results
window.results.grid(column=0, row=0)
Expand Down
5 changes: 5 additions & 0 deletions src/tt_damage_calculator/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ def __init__(self, parent:Frame):
self.clear_button = Button(self, text="Clear History", command=self.box.clear)
self.sos_button = Button(self, text="Show health and\nSOS cards")

self.label.grid(column=0, row=0)
self.box.grid(column=0, row=1)
self.clear_button.grid(column=0, row=2, pady=3)
self.sos_button.grid(column=0, row=4, pady=3)

class GagFrame(Frame):
"""Class for the Gag Frame widget, a type of frame that automatically places itself in the gag calculator."""

Expand Down

0 comments on commit 27f649a

Please sign in to comment.