mainButton module

class mainButton.MainButton(main_window)[source]

Bases: PyQt5.QtWidgets.QAction

Main Button. It’s located in the middle of toolbox.

Inherits: PyQt5.QtWidgets.QAction

update()[source]

Change icon of Main Button according to state of game.Game object inside Main.Main:

todo: Refactor code to remove checks of self.main_window.game Current solution works but is not a clean one.