module Tk::Busy - tk-0.2.0 Documentation

# module Tk::Busy

### Public Class Methods

current(pat=None) click to toggle source

    # File lib/tk/busy.rb, line 73
    def current(pat=None)
      list(tk_call('tk', 'busy', 'current', pat))
    end

forget(*wins) click to toggle source

    # File lib/tk/busy.rb, line 68
    def forget(*wins)
      tk_call_without_enc('tk', 'busy', 'forget', *wins)
      self
    end

hold(win, keys={}) click to toggle source

    # File lib/tk/busy.rb, line 63
    def hold(win, keys={})
      tk_call_without_enc('tk', 'busy', 'hold', win, *hash_kv(keys))
      win
    end

method_missing(id, *args) click to toggle source
Calls superclass method

    # File lib/tk/busy.rb, line 41
    def method_missing(id, *args)
      name = id.id2name
      case args.length
      when 1
        if name[-1] == ?=
          configure name[0..-2], args[0]
          args[0]
        else
          configure name, args[0]
          self
        end
      when 0
        begin
          cget(name)
        rescue
          super(id, *args)
        end
      else
        super(id, *args)
      end
    end

status(win) click to toggle source

    # File lib/tk/busy.rb, line 77
    def status(win)
      bool(tk_call_without_enc('tk', 'busy', 'status', win))
    end

### Private Class Methods

__item_cget_cmd(win) click to toggle source

    # File lib/tk/busy.rb, line 13
    def __item_cget_cmd(win)
      # maybe need to override
      ['tk', 'busy', 'cget', win.path]
    end

__item_config_cmd(win) click to toggle source

    # File lib/tk/busy.rb, line 19
    def __item_config_cmd(win)
      # maybe need to override
      ['tk', 'busy', 'configure', win.path]
    end

__item_confinfo_cmd(win) click to toggle source

    # File lib/tk/busy.rb, line 25
    def __item_confinfo_cmd(win)
      # maybe need to override
      __item_config_cmd(win)
    end

### Public Instance Methods

busy(keys={}) click to toggle source

    # File lib/tk/busy.rb, line 100
    def busy(keys={})
      Tk::Busy.hold(self, keys)
      self
    end

Also aliased as: busy_hold
busy_cget(option) click to toggle source

    # File lib/tk/busy.rb, line 96
    def busy_cget(option)
      Tk::Busy.configure(self, option)
    end

busy_configinfo(option=nil) click to toggle source

    # File lib/tk/busy.rb, line 83
    def busy_configinfo(option=nil)
      Tk::Busy.configinfo(self, option)
    end

busy_configure(option, value=None) click to toggle source

    # File lib/tk/busy.rb, line 91
    def busy_configure(option, value=None)
      Tk::Busy.configure(self, option, value)
      self
    end

busy_current?() click to toggle source

    # File lib/tk/busy.rb, line 111
    def busy_current?
      ! Tk::Busy.current(self.path).empty?
    end

busy_current_configinfo(option=nil) click to toggle source

    # File lib/tk/busy.rb, line 87
    def busy_current_configinfo(option=nil)
      Tk::Busy.current_configinfo(self, option)
    end

busy_forget() click to toggle source

    # File lib/tk/busy.rb, line 106
    def busy_forget
      Tk::Busy.forget(self)
      self
    end

busy_hold(keys={})
Alias for: busy
busy_status() click to toggle source

    # File lib/tk/busy.rb, line 115
    def busy_status
      Tk::Busy.status(self)
    end