Skip to content

Commit db57b6c

Browse files
Update SteamRoulette.py
1 parent 9368518 commit db57b6c

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

SteamRoulette.py

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -432,34 +432,26 @@ def __init__(self, root, installed_games, drives):
432432

433433
# Create a container frame to hold the button and label
434434
self.frame_controls = tk.Frame(self.root)
435-
self.frame_controls.place(anchor='w', x=4, y=625)
435+
self.frame_controls.place(anchor='w', x=4, y=645)
436436

437437
# Configure columns for centering
438438
for col in range(3): # Assuming a grid with 3 columns for flexibility
439439
self.frame_controls.grid_columnconfigure(col, weight=1)
440440

441441
# Add a button that triggers the popup to input the number of games
442-
self.button_set_number_of_games = tk.Button(
443-
self.frame_controls, text="Set Number of Games", command=self.set_number_of_games
444-
)
442+
self.button_set_number_of_games = tk.Button(self.frame_controls, text="Set Number of Games", command=self.set_number_of_games)
445443
self.button_set_number_of_games.grid(row=0, column=1, pady=2) # Centered in row 0, column 1
446444

447445
# Label to show the number of games selected (initially empty)
448-
self.label_number_of_games = tk.Label(
449-
self.frame_controls, text="Number of games to spin:\nAll Games", font=("Arial", 8)
450-
)
446+
self.label_number_of_games = tk.Label(self.frame_controls, text="Number of games to spin:\nAll Games", font=("Arial", 8))
451447
self.label_number_of_games.grid(row=1, column=1, pady=2) # Centered in row 1, column 1
452448

453449
# Exclude Games Button
454-
self.button_exclude = tk.Button(
455-
self.frame_controls, text="Exclude Games", command=self.exclude_games, font=("Arial", 10)
456-
)
450+
self.button_exclude = tk.Button(self.frame_controls, text="Exclude Games", command=self.exclude_games, font=("Arial", 10))
457451
self.button_exclude.grid(row=2, column=1, pady=2) # Centered in row 2, column 1
458452

459453
# Excluded Games Count Label
460-
self.excluded_label = tk.Label(
461-
self.frame_controls, text=f"Excluded Games:\n{len(self.excluded_games)}", font=("Arial", 8)
462-
)
454+
self.excluded_label = tk.Label(self.frame_controls, text=f"Excluded Games:\n{len(self.excluded_games)}", font=("Arial", 8))
463455
self.excluded_label.grid(row=3, column=1, pady=2) # Centered in row 3, column 1
464456

465457
# Create a frame to contain the game name label and other elements

0 commit comments

Comments
 (0)