Module: TkInputThrow
- Defined in:
- lib/a-tkcommons.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(_widget) ⇒ Object
1770 1771 1772 |
# File 'lib/a-tkcommons.rb', line 1770 def self.extended() .__initialize_throw() end |
.included(_widget) ⇒ Object
1774 1775 1776 |
# File 'lib/a-tkcommons.rb', line 1774 def self.included() .__initialize_throw() end |
Instance Method Details
#__initialize_throw(_widget) ⇒ Object
1778 1779 1780 1781 1782 1783 1784 1785 1786 |
# File 'lib/a-tkcommons.rb', line 1778 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
1788 1789 1790 |
# File 'lib/a-tkcommons.rb', line 1788 def select_throw InputEnterEvent.new(self,'receiver'=>self).go! end |