Module: TkInputThrow
- Defined in:
- lib/a-tkcommons.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(_widget) ⇒ Object
1663 1664 1665 |
# File 'lib/a-tkcommons.rb', line 1663 def self.extended() .__initialize_throw() end |
.included(_widget) ⇒ Object
1667 1668 1669 |
# File 'lib/a-tkcommons.rb', line 1667 def self.included() .__initialize_throw() end |
Instance Method Details
#__initialize_throw(_widget) ⇒ Object
1671 1672 1673 1674 1675 1676 1677 1678 1679 |
# File 'lib/a-tkcommons.rb', line 1671 def __initialize_throw() #_widget.bind_append("Enter", proc{p "Enter on #{_widget}";Arcadia.process_event(InputEnterEvent.new(self,'receiver'=>_widget))}) .bind_append("<Copy>"){Arcadia.process_event(CopyTextEvent.new());break} .bind_append("<Cut>"){Arcadia.process_event(CutTextEvent.new());break} .bind_append("<Paste>"){Arcadia.process_event(PasteTextEvent.new());break} .bind_append("<Undo>"){Arcadia.process_event(UndoTextEvent.new());break} .bind_append("<Redo>"){Arcadia.process_event(RedoTextEvent.new());break} .bind_append("1", proc{Arcadia.process_event(InputEnterEvent.new(self,'receiver'=>))}) end |
#select_throw ⇒ Object
1681 1682 1683 |
# File 'lib/a-tkcommons.rb', line 1681 def select_throw InputEnterEvent.new(self,'receiver'=>self).go! end |