has_callback method for option
This commit is contained in:
parent
525aee85f2
commit
a88d203790
|
@ -148,6 +148,12 @@ class Option(HiddenBaseType, DisabledBaseType, ModeBaseType):
|
||||||
|
|
||||||
def getcallback(self):
|
def getcallback(self):
|
||||||
return self.callback
|
return self.callback
|
||||||
|
|
||||||
|
def has_callback(self):
|
||||||
|
if self.callback == None:
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
return True
|
||||||
|
|
||||||
def getcallback_params(self):
|
def getcallback_params(self):
|
||||||
return self.callback_params
|
return self.callback_params
|
||||||
|
|
Loading…
Reference in New Issue