Extended maintenance of Ruby 1.9.3 ended on February 23, 2015. Read more

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 53
def __font_optkeys
  [] # without fontobj operation
end
            
configure(slot, value=None) click to toggle source
 
               # File tk/lib/tkextlib/bwidget/selectfont.rb, line 62
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 73
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 57
def create_self(keys)
  super(keys)
  @keys['type'] = 'dialog'
end