has_callback method for option
This commit is contained in:
parent
525aee85f2
commit
a88d203790
1 changed files with 6 additions and 0 deletions
|
@ -148,6 +148,12 @@ class Option(HiddenBaseType, DisabledBaseType, ModeBaseType):
|
|||
|
||||
def getcallback(self):
|
||||
return self.callback
|
||||
|
||||
def has_callback(self):
|
||||
if self.callback == None:
|
||||
return False
|
||||
else:
|
||||
return True
|
||||
|
||||
def getcallback_params(self):
|
||||
return self.callback_params
|
||||
|
|
Loading…
Reference in a new issue