Module: TkInputThrow
- Defined in:
- lib/a-tkcommons.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.extended(_widget) ⇒ Object
2419 2420 2421 |
# File 'lib/a-tkcommons.rb', line 2419 def self.extended() .__initialize_throw() end |
.included(_widget) ⇒ Object
2423 2424 2425 |
# File 'lib/a-tkcommons.rb', line 2423 def self.included() .__initialize_throw() end |
Instance Method Details
#__initialize_throw(_widget) ⇒ Object
2427 2428 2429 2430 2431 2432 2433 2434 2435 |
# File 'lib/a-tkcommons.rb', line 2427 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
2437 2438 2439 |
# File 'lib/a-tkcommons.rb', line 2437 def select_throw InputEnterEvent.new(self,'receiver'=>self).go! end |