Skip to content

Commit

Permalink
implement assertion error handling in checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
phanimahesh committed Mar 18, 2013
1 parent e18140a commit 907524c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions UnityTweakTool/elements/checkbox.py
Expand Up @@ -62,6 +62,8 @@ def __init__(self,controlObj):

def register(self,handler):
''' register handler on a handler object '''
if self.disabled:
return
handler['on_%s_toggled'%self.id]=self.handler
logger.debug('Handler for {self.id} registered'.format(self=self))

Expand Down

0 comments on commit 907524c

Please sign in to comment.