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



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

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



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

def epath
  @epath
end