# File tk/lib/tk/winpkg.rb, line 62 def async_execute(service, topic, data) tk_call('dde', '-async', 'execute', service, topic, data) end
# File tk/lib/tk/winpkg.rb, line 82 def eval(topic, cmd, *args) tk_call('dde', 'eval', topic, cmd, *args) end
# File tk/lib/tk/winpkg.rb, line 58 def execute(service, topic, data) tk_call('dde', 'execute', service, topic, data) end
# File tk/lib/tk/winpkg.rb, line 23 def self.package_name PACKAGE_NAME end
# File tk/lib/tk/winpkg.rb, line 66 def poke(service, topic, item, data) tk_call('dde', 'poke', service, topic, item, data) end
# File tk/lib/tk/winpkg.rb, line 70 def request(service, topic, item) tk_call('dde', 'request', service, topic, item) end
def servername(topic=None)
tk_call('dde', 'servername', topic)
end
# File tk/lib/tk/winpkg.rb, line 36 def servername(*args) if args.size == 0 tk_call('dde', 'servername') else if args[-1].kind_of?(Hash) # dde 1.2 + keys = _symbolkey2str(args.pop) force = (keys.delete('force'))? '-force': None exact = (keys.delete('exact'))? '-exact': None if keys.size == 0 tk_call('dde', 'servername', force, exact) elsif args.size == 0 tk_call('dde', 'servername', force, exact, *hash_kv(keys)) else tk_call('dde', 'servername', force, exact, *((hash_kv(keys) << '--') + args)) end else tk_call('dde', 'servername', *args) end end end