In Files

  • tk/lib/tk/dialog.rb

Parent

Methods

Class/Module Index [+]

Quicksearch

TkWarning2

dialog for warning

Public Class Methods

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