Skip to content

Commit

Permalink
Update mtgo_tracker.py
Browse files Browse the repository at this point in the history
Main Window Size: Not set correctly when no existing main window size setting.
Lines per page: Set to default of 20 to match the default small main window size setting.
  • Loading branch information
cderickson committed Jan 15, 2022
1 parent cc9df21 commit fb2479e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions mtgo_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
filepath_logs = ""
filepath_copy = ""
hero = ""
main_window_size = ("small",1000,500)
main_window_size = ("small",1000,490)

test_mode = False
input_options = {}
Expand All @@ -45,7 +45,7 @@
ask_to_save = False
selected = ()
display_index = 0
ln_per_page = 50
ln_per_page = 20
curr_data = pd.DataFrame()

def save(exit):
Expand Down Expand Up @@ -2473,8 +2473,8 @@ def import_window():
import_window.focus()

import_window.geometry("+%d+%d" %
(window.winfo_x()+(window.winfo_width()/2)-(width/2),
window.winfo_y()+(window.winfo_height()/2)-(height/2)))
(window.winfo_x()+(window.winfo_width()/2)-(width/2),
window.winfo_y()+(window.winfo_height()/2)-(height/2)))

def get_logs_path():
fp_logs = filedialog.askdirectory()
Expand Down Expand Up @@ -4722,7 +4722,6 @@ def test():
# Test function
pass

main_window_size = ("small",1000,500)
window = tk.Tk()
window.title("MTGO-Tracker")
window.iconbitmap(window,"icon.ico")
Expand Down

0 comments on commit fb2479e

Please sign in to comment.