In Files

  • tk/lib/tk/dialog.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

TkWarningObj

dialog for warning

Public Class Methods

new(parent = nil, mes = nil) click to toggle source
 
               # File tk/lib/tk/dialog.rb, line 281
def initialize(parent = nil, mes = nil)
  if !mes
    if parent.kind_of?(TkWindow)
      mes = ""
    else
      mes = parent.to_s
      parent = nil
    end
  end
  super(parent, :message=>mes)
end
            

Public Instance Methods

show(mes = nil) click to toggle source
 
               # File tk/lib/tk/dialog.rb, line 293
def show(mes = nil)
  mes_bup = @message
  @message = mes if mes
  ret = super()
  @message = mes_bup
  ret
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.