Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ENABLE_GUI = True
- class a:
- if ENABLE_GUI:
- def OPEN_GUI(self):
- #more codes here later
- print("GUI is enabled")
- else:
- pass
- def init(self):
- try:
- self.ENABLE_GUI()
- except:
- print("GUI IS NOT ENABLED")
- a().init()
- ------------------
- GUI IS NOT ENABLED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement