Atlas-Install/source/StateButton.py

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)