Class: TkLabelTitledFrameClosable

Inherits:
TkLabelTitledFrame show all
Defined in:
lib/a-tkcommons.rb

Instance Attribute Summary

Attributes inherited from TkTitledFrame

#frame, #parent, #top

Attributes inherited from TkBaseTitledFrame

#frame, #top

Instance Method Summary collapse

Methods inherited from TkLabelTitledFrame

#__create_left_label, #create_left_title, #shift_off, #shift_on, #title

Methods inherited from TkTitledFrame

#__create_right_label, #create_right_label, #initialize, #last_caption, #last_caption_image, #maximize, #maximized?, #resize, #restore_caption, #save_caption, #top_text, #top_text_bind_append, #top_text_bind_remove, #top_text_clear, #top_text_hide, #top_text_hint

Methods inherited from TkBaseTitledFrame

#add_fixed_button, #add_fixed_menu_button, #add_fixed_panel, #add_fixed_progress, #add_fixed_sep, #create_frame, #initialize, #menu_button, #visible?

Constructor Details

This class inherits a constructor from TkTitledFrame

Instance Method Details

#add_close_action(_proc) ⇒ Object


1618
1619
1620
# File 'lib/a-tkcommons.rb', line 1618

def add_close_action(_proc)
  @bclose.bind_append("1", _proc)
end

#head_buttonsObject


1614
1615
1616
# File 'lib/a-tkcommons.rb', line 1614

def head_buttons
  @bclose = add_fixed_button('[ ]',proc{}, CLOSE_FRAME_GIF)
end