new

new(src_menu, *args)
Class Public methods

def initialize(parent, type=None)

widgetname = nil
if parent.kind_of? Hash
  keys = _symbolkey2str(parent)
  parent = keys.delete('parent')
  widgetname = keys.delete('widgetname')
  type = keys.delete('type'); type = None unless type
end
#unless parent.kind_of?(TkMenu)
#  fail ArgumentError, "parent must be TkMenu"
#end
@parent = parent
install_win(@parent.path, widgetname)
tk_call_without_enc(@parent.path, 'clone', @path, type)

end

doc_ruby_on_rails
2015-05-26 15:32:30
Comments
Leave a Comment

Please login to continue.