Class: Tk::Tcllib::Widget::Dialog (Ruby 2.3.4)

In Files

  • tk/lib/tkextlib/tcllib/dialog.rb

Class/Module Index [+]

Quicksearch

Tk::Tcllib::Widget::Dialog

Public Class Methods

package_name()
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 20
def self.package_name
  PACKAGE_NAME
end
            
package_version()
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 24
def self.package_version
  begin
    TkPackage.require('widget::dialog')
  rescue
    ''
  end
end
            

Public Instance Methods

add(what, *args)
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 53
def add(what, *args)
  window(tk_send('add', *args))
end
            
cancel()
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 72
def cancel
  tk_send('cancel')
  self
end
            
close(reason = None)
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 77
def close(reason = None)
  tk_send('close', reason)
end
            
display()
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 66
def display
  tk_send('display')
  self
end
            
Also aliased as: show
get_frame()
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 57
def get_frame
  window(tk_send('getframe'))
end
            
set_widget(widget)
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 61
def set_widget(widget)
  tk_send('setwidget', widget)
  self
end
            
show()
Alias for: display
withdraw()
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 81
def withdraw
  tk_send('withdraw')
  self
end