mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 11:18:26 +02:00
15 lines
357 B
Python
15 lines
357 B
Python
from tkinter import *
|
|
|
|
|
|
def StateButton(self, enable=True):
|
|
button = [
|
|
self.button_game_extract,
|
|
self.button_install_mod,
|
|
self.button_prepare_file,
|
|
self.button_do_everything
|
|
]
|
|
for widget in button:
|
|
if enable:
|
|
widget.config(state=NORMAL)
|
|
else:
|
|
widget.config(state=DISABLED)
|