Module: TkInputThrow
- Defined in:
- lib/a-tkcommons.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(_widget) ⇒ Object
1785 1786 1787 |
# File 'lib/a-tkcommons.rb', line 1785 def self.extended() .__initialize_throw() end |
.included(_widget) ⇒ Object
1789 1790 1791 |
# File 'lib/a-tkcommons.rb', line 1789 def self.included() .__initialize_throw() end |
Instance Method Details
#__initialize_throw(_widget) ⇒ Object
1793 1794 1795 1796 1797 1798 1799 1800 1801 |
# File 'lib/a-tkcommons.rb', line 1793 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
1803 1804 1805 |
# File 'lib/a-tkcommons.rb', line 1803 def select_throw InputEnterEvent.new(self,'receiver'=>self).go! end |