In Files

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

Class/Module Index [+]

Quicksearch

Tk::Tcllib::Widget::Dialog

Public Class Methods

package_name() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 19
def self.package_name
  PACKAGE_NAME
end
            
package_version() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 23
def self.package_version
  begin
    TkPackage.require('widget::dialog')
  rescue
    ''
  end
end
            

Public Instance Methods

add(what, *args) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 52
def add(what, *args)
  window(tk_send('add', *args))
end
            
cancel() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 71
def cancel
  tk_send('cancel')
  self
end
            
close(reason = None) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 76
def close(reason = None)
  tk_send('close', reason)
end
            
display() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 65
def display
  tk_send('display')
  self
end
            
Also aliased as: show
get_frame() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 56
def get_frame
  window(tk_send('getframe'))
end
            
set_widget(widget) click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 60
def set_widget(widget)
  tk_send('setwidget', widget)
  self
end
            
show() click to toggle source
Alias for: display
withdraw() click to toggle source
 
               # File tk/lib/tkextlib/tcllib/dialog.rb, line 80
def withdraw
  tk_send('withdraw')
  self
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.

blog comments powered by Disqus