Methods
C
D
N
S
Constants
TkCommandNames = ['::ttk::dialog'.freeze].freeze
 
Class Public methods
define_dialog_type(name, keys)
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 33
def self.define_dialog_type(name, keys)
  Tk.tk_call('::ttk::dialog::define', name, keys)
  name
end
display(*args)
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 29
def self.display(*args)
  self.show(*args)
end
new(keys={})
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 44
def initialize(keys={})
  @keys = _symbolkey2str(keys)
  super(*args)
end
show(*args)
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 24
def self.show(*args)
  dialog = self.new(*args)
  dialog.show
  [dialog.status, dialog.value]
end
style(*args)
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 38
def self.style(*args)
  ['Dialog', *(args.map!{|a| _get_eval_string(a)})].join('.')
end
Instance Public methods
cget(slot)
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 66
def cget(slot)
  @keys[slot.to_s]
end
cget_strict(slot)
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 63
def cget_strict(slot)
  @keys[slot.to_s]
end
client_frame()
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 59
def client_frame
  window(tk_call_without_enc('::ttk::dialog::clientframe', @path))
end
configinfo(slot = nil)
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 94
def configinfo(slot = nil)
  if slot
    slot = slot.to_s
    [ slot, nil, nil, nil, @keys[slot] ]
  else
    @keys.collect{|k, v| [ k, nil, nil, nil, v ] }
  end
end
configure(slot, value=None)

def cget(slot)

unless TkConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__
  cget_strict(slot)
else
  cget_strict(slot) rescue nil
end

end

# File ext/tk/lib/tkextlib/tile/dialog.rb, line 79
def configure(slot, value=None)
  if slot.kind_of?(Hash)
    slot.each{|k, v| configure(k, v)}
  else
    slot = slot.to_s
    value = _symbolkey2str(value) if value.kind_of?(Hash)
    if value && value != None
      @keys[slot] = value
    else
      @keys.delete(slot)
    end
  end
  self
end
display()
Alias for: show
show()
Also aliased as: display
# File ext/tk/lib/tkextlib/tile/dialog.rb, line 54
def show
  tk_call(self.class::TkCommandNames[0], @path, *hash_kv(@keys))
end