Skip to content

Commit

Permalink
Delete app.py
Browse files Browse the repository at this point in the history
...and replace all of its references with widgets.App.
really, the only thing missing now is the update checker, which is dubiously useufl anyways. i don't know if anyone actually uses it lol
  • Loading branch information
Vhou-Atroph committed May 10, 2024
1 parent 979b405 commit ba354f6
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 25 deletions.
3 changes: 2 additions & 1 deletion src/tt_damage_calculator/Toontown Damage Calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@

import tt_damage_calculator

tt_damage_calculator.window.mainloop()
app = tt_damage_calculator.App()
app.mainloop()
5 changes: 3 additions & 2 deletions src/tt_damage_calculator/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
TT-Damage-Calculator
Copyright (C) 2022-2024 Vhou-Atroph
Run the Toontown Damage Calculator with python -m tt_damage_calculator instead!"""
Run the Toontown Damage Calculator with python -m tt_damage_calculator instead!
"""

from .app import window
from .widgets import App

__version__ = "4.3.0"
11 changes: 9 additions & 2 deletions src/tt_damage_calculator/__main__.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
"""
TT-Damage-Calculator
Copyright (C) 2022-2024 Vhou-Atroph
TT-Damage-Calculator is a gag damage calculator for Toontown Rewritten. It has an interface built with Python's tkinter library, and is supplemented with modules written in Rust.
CONTRIBUTORS:
- Vhou-Atroph
- BoggTech
"""

from .app import window
from .widgets import App

window.mainloop()
app = App()
app.mainloop()
20 changes: 0 additions & 20 deletions src/tt_damage_calculator/app.py

This file was deleted.

1 change: 1 addition & 0 deletions src/tt_damage_calculator/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
TT-Damage-Calculator
Copyright (C) 2022-2024 Vhou-Atroph
"""

import os, pathlib, platform, sys
from tkinter import IntVar, BooleanVar, DoubleVar, StringVar, Tk, Frame, Label, Text, Button, Checkbutton, OptionMenu, PhotoImage, Menu, Toplevel, NORMAL, DISABLED, WORD, END

Expand Down

0 comments on commit ba354f6

Please sign in to comment.