Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.60 KB | None | 0 0
  1. experCheckBut = Checkbutton(text = "Activate the experimental features?", command = exper.active, variable = experBool).grid()
  2. SMPTEntry = Entry(state = DISABLED, textvariable = SMTPVar).grid()
  3.  
  4. ## I'm essentially looking for the .config() syntax. ##
  5.  
  6. class exper:
  7.  
  8.     def active():
  9.         print(experBool.get())
  10.  
  11.         #On click activate and deactivate experimental features.
  12.  
  13.         if experBool.get():
  14.             SMTPEntry.config(state = ENABLED)
  15.             experBool.set(True)
  16.            
  17.         else:  
  18.             SMTPEntry.config(state = DISBALED)
  19.             experBool.set(False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement