Class: Button_with_Frame

Inherits:
TkButton
  • Object
show all
Defined in:
sample/btn_with_frame.rb

Instance Method Summary collapse

Instance Method Details

#create_self(keys) ⇒ Object



5
6
7
8
9
10
11
# File 'sample/btn_with_frame.rb', line 5

def create_self(keys)
  @frame = TkFrame.new('widgetname'=>@path, 'background'=>'yellow')
  install_win(@path) # create new @path which is a daughter of old @path
  super(keys)
  TkPack(@path, :padx=>7, :pady=>7)
  @epath = @frame.path
end

#epathObject



12
13
14
# File 'sample/btn_with_frame.rb', line 12

def epath
  @epath
end