Class: KeyTest
- Inherits:
-
TkFloatTitledFrame
- Object
- TkFrame
- TkBaseTitledFrame
- TkFloatTitledFrame
- KeyTest
- Defined in:
- lib/a-tkcommons.rb
Constant Summary
Constants included from TkResizable
TkResizable::MIN_HEIGHT, TkResizable::MIN_WIDTH
Instance Attribute Summary collapse
-
#ttest ⇒ Object
readonly
Returns the value of attribute ttest.
Attributes inherited from TkBaseTitledFrame
Instance Method Summary collapse
-
#initialize(_parent = nil) ⇒ KeyTest
constructor
A new instance of KeyTest.
Methods inherited from TkFloatTitledFrame
#head_buttons, #hide, #hide_if_visible, #on_close=, #show, #show_grabbed, #title
Methods included from TkResizable
#resizing_do_move_obj, #resizing_do_press, #start_resizing, #stop_resizing
Methods included from TkMovable
#moving_do_move_obj, #moving_do_press, #start_moving, #stop_moving
Methods inherited from TkBaseTitledFrame
#add_fixed_button, #add_fixed_menu_button, #add_fixed_panel, #add_fixed_sep, #create_frame, #head_buttons, #menu_button, #visible?
Constructor Details
#initialize(_parent = nil) ⇒ KeyTest
Returns a new instance of KeyTest.
2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 |
# File 'lib/a-tkcommons.rb', line 2056 def initialize(_parent=nil) _parent = Arcadia.instance.layout.root if _parent.nil? super(_parent) @ttest = TkText.new(self.frame){ background Arcadia.conf("background") foreground Arcadia.conf("foreground") #place('relwidth' => '1','relx' => 0,'x' => '0','y' => '0','relheight' => '1','rely' => 0,'height' => '0','bordermode' => 'inside','width' => '0') }.bind("KeyPress"){|e| @ttest.insert('end'," "+e.keysym+" ") break } @ttest.extend(TkScrollableWidget).show place('x'=>100,'y'=>100,'height'=> 220,'width'=> 500) end |
Instance Attribute Details
#ttest ⇒ Object (readonly)
Returns the value of attribute ttest.
2055 2056 2057 |
# File 'lib/a-tkcommons.rb', line 2055 def ttest @ttest end |