Advertisement
Guest User

Untitled

a guest
Dec 30th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. ENABLE_GUI = True
  2.  
  3. class a:
  4.     if ENABLE_GUI:
  5.         def OPEN_GUI(self):
  6.             #more codes here later
  7.             print("GUI is enabled")
  8.     else:
  9.         pass
  10.     def init(self):
  11.         try:
  12.             self.ENABLE_GUI()
  13.         except:
  14.             print("GUI IS NOT ENABLED")
  15.  
  16. a().init()
  17. ------------------
  18. GUI IS NOT ENABLED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement