TkWinDDE (Module)

In: tk/lib/tk/winpkg.rb

Methods

Constants

TkCommandNames = ['dde'.freeze].freeze

Public Instance methods

[Source]

# File tk/lib/tk/winpkg.rb, line 73
  def async_eval(topic, cmd, *args)
    tk_call('dde', 'eval', -async, topic, cmd, *args)
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 49
  def async_execute(service, topic, data)
    tk_call('dde', '-async', 'execute', service, topic, data)
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 61
  def binary_request(service, topic, item)
    tk_call('dde', 'request', '-binary', service, topic, item)
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 69
  def eval(topic, cmd, *args)
    tk_call('dde', 'eval', topic, cmd, *args)
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 45
  def execute(service, topic, data)
    tk_call('dde', 'execute', service, topic, data)
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 53
  def poke(service, topic, item, data)
    tk_call('dde', 'poke', service, topic, item, data)
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 57
  def request(service, topic, item)
    tk_call('dde', 'request', service, topic, item)
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 22
  def servername(topic=None)
    tk_call('dde', 'servername', topic)
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 25
  def servername(*args)
    if args.size == 0
      tk_call('dde', 'servername')
    else
      if args[-1].kind_of?(Hash)
        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
      end
    end
  end

[Source]

# File tk/lib/tk/winpkg.rb, line 65
  def services(service, topic)
    tk_call('dde', 'services', service, topic)
  end

[Validate]