Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

In Files

  • tk/lib/tkextlib/iwidgets/messagebox.rb

Class/Module Index [+]

Quicksearch

Tk::Iwidgets::Messagebox

Public Instance Methods

clear() click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/messagebox.rb, line 78
def clear
  tk_call(@path, 'clear')
  self
end
            
export(file) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/messagebox.rb, line 83
def export(file)
  tk_call(@path, 'export', file)
  self
end
            
issue(string, type=None, *args) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/messagebox.rb, line 88
def issue(string, type=None, *args)
  tk_call(@path, 'issue', string, tagid(type), *args)
  self
end
            
tagid(tagOrId) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/messagebox.rb, line 35
def tagid(tagOrId)
  if tagOrId.kind_of?(Tk::Itk::Component)
    tagOrId.name
  else
    #_get_eval_string(tagOrId)
    tagOrId
  end
end
            
type_add(tag=nil, keys={}) click to toggle source
 
               # File tk/lib/tkextlib/iwidgets/messagebox.rb, line 66
def type_add(tag=nil, keys={})
  if tag.kind_of?(Hash)
    keys = tag
    tag = nil
  end
  unless tag
    tag = Tk::Itk::Component.new(self)
  end
  tk_call(@path, 'type', 'add', tagid(tag), *hash_kv(keys))
  tag
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.