Class: TkWarningObj (Ruby 2.3.4)

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)
 
               # 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)
 
               # 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