Method: Tk::Tile::TPaned#current_paneconfiginfo

Defined in:
lib/tkextlib/tile/tpaned.rb

#current_paneconfiginfo(win, key = nil) ⇒ Object Also known as: current_pane_configinfo



202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/tkextlib/tile/tpaned.rb', line 202

def current_paneconfiginfo(win, key=nil)
  if TkComm::GET_CONFIGINFO_AS_ARRAY
    if key
      conf = paneconfiginfo(win, key)
      {conf[0] => conf[4]}
    else
      ret = {}
      paneconfiginfo(win).each{|conf|
        ret[conf[0]] = conf[4] if conf.size > 2
      }
      ret
    end
  else # ! TkComm::GET_CONFIGINFO_AS_ARRAY
    ret = {}
    paneconfiginfo(win, key).each{|k, conf|
      ret[k] = conf[-1] if conf.kind_of?(Array)
    }
    ret
  end
end