clear(glob_path_pat = None)
click to toggle source
def self.clear(glob_path_pat = None)
self.clear_glob(glob_path_pat)
end
clear_children(*args)
click to toggle source
def self.clear_children(*args)
self.clear_glob("{#{args.collect{|w| s = _get_eval_string(w); "#{s},#{s}.*"}.join(',')}}")
end
clear_glob(glob_path_pat)
click to toggle source
def self.clear_glob(glob_path_pat)
tk_call_without_enc('::tooltip::tooltip', 'clear', glob_path_pat)
end
database_class()
click to toggle source
def self.database_class
WidgetClassNames[self::WidgetClassName]
end
database_classname()
click to toggle source
def self.database_classname
self::WidgetClassName
end
delay(millisecs=None)
click to toggle source
def self.delay(millisecs=None)
number(tk_call_without_enc('::tooltip::tooltip', 'delay', millisecs))
end
delay=(millisecs)
click to toggle source
def self.delay=(millisecs)
self.delay(millisecs)
end
disable()
click to toggle source
def self.disable
tk_call_without_enc('::tooltip::tooltip', 'disable')
false
end
enable()
click to toggle source
def self.enable
tk_call_without_enc('::tooltip::tooltip', 'enable')
true
end
erase(widget)
click to toggle source
def self.erase(widget)
tk_call_without_enc('::tooltip::tooltip', widget.path, '')
end
fade(mode)
click to toggle source
def self.fade(mode)
tk_call_without_enc('::tooltip::tooltip', 'fade', mode)
end
fade?()
click to toggle source
def self.fade?
bool(tk_call_without_enc('::tooltip::tooltip', 'fade'))
end
off()
click to toggle source
def self.off
self.disable
end
on()
click to toggle source
def self.on
self.enable
end
package_name()
click to toggle source
def self.package_name
PACKAGE_NAME
end
package_version()
click to toggle source
def self.package_version
begin
TkPackage.require('tooltip')
rescue
''
end
end
register(widget, msg, keys=nil)
click to toggle source
def self.register(widget, msg, keys=nil)
if keys.kind_of?(Hash)
args = hash_kv(keys) << msg
else
args = msg
end
tk_call('::tooltip::tooltip', widget.path, *args)
end