In Files

  • tk/lib/tkextlib/bwidget/selectfont.rb

Class/Module Index [+]

Quicksearch

Tk::BWidget::SelectFont::Dialog

Public Instance Methods

__font_optkeys() click to toggle source
 
               # File tk/lib/tkextlib/bwidget/selectfont.rb, line 48
def __font_optkeys
  [] # without fontobj operation
end
            
configure(slot, value=None) click to toggle source
 
               # File tk/lib/tkextlib/bwidget/selectfont.rb, line 57
def configure(slot, value=None)
  if slot.kind_of?(Hash)
    slot.delete['type']
    slot.delete[:type]
    return self if slot.empty?
  else
    return self if slot == 'type' || slot == :type
  end
  super(slot, value)
end
            
create() click to toggle source
 
               # File tk/lib/tkextlib/bwidget/selectfont.rb, line 68
def create
  @keys['type'] = 'dialog'  # 'dialog' type returns font name
  tk_call(Tk::BWidget::SelectFont::TkCommandNames[0], @path, *hash_kv(@keys))
end
            
create_self(keys) click to toggle source
 
               # File tk/lib/tkextlib/bwidget/selectfont.rb, line 52
def create_self(keys)
  super(keys)
  @keys['type'] = 'dialog'
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