# File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 123
def _delete_slice(slice)
@slice_tbl.delete(slice.to_eval)
end
# File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 120
def _entry_slice(slice)
@slice_tbl[slice.to_eval] = slice
end
# File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 117
def canvas
@c
end
# File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 127
def delete
tk_call_without_enc('::stooop::delete', @tag_key)
CItemID_TBL.mutex.synchronize{
CItemID_TBL[@path].delete(@id) if CItemID_TBL[@path]
}
self
end
# File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 139
def delete_slice(slice)
unless slice.kind_of?(Slice)
unless (slice = @slice_tbl[slice])
return tk_call_without_enc('pie::deleteSlice', @tag_key, slice)
end
end
unless slice.kind_of?(Slice) && slice.pie == self
fail ArgumentError, "argument is not a slice of self"
end
slice.delete
end
# File tk/lib/tkextlib/tcllib/tkpiechart.rb, line 135
def new_slice(text=None)
Slice.new(self, text)
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.