Method: TkcWindow.create
- Defined in:
- lib/tk/canvas.rb
.create(canvas, *args) ⇒ Object
829 830 831 832 833 834 835 836 837 838 |
# File 'lib/tk/canvas.rb', line 829 def self.create(canvas, *args) if args[-1].kind_of?(Hash) keys = _symbolkey2str(args.pop) win = keys['window'] # keys['window'] = win.epath if win.kind_of?(TkWindow) keys['window'] = _epath(win) if win args.push(keys) end super(canvas, *args) end |