class Tk::Tcllib::Tkpiechart::Label

Private Instance Methods

__config_cmd() click to toggle source
# File lib/tkextlib/tcllib/tkpiechart.rb, line 291
def __config_cmd
  ['::switched::configure', self.tag]
end
create_self(x, y, keys=None) click to toggle source
# File lib/tkextlib/tcllib/tkpiechart.rb, line 298
def create_self(x, y, keys=None)
  if keys and keys != None
    @tag_key = tk_call_without_enc('::stooop::new', 'canvasLabel',
                                   @c, x, y, width, height,
                                   *hash_kv(keys, true))
  else
    @tag_key = tk_call_without_enc('::stooop::new', 'canvasLabel',
                                   @c, x, y, width, height)
  end

  id = "canvasLabel(#{@tag_key})"
  @tag = TkcNamedTag(@c, id)

  id
end