Changeset 23 for trunk/samples

Show
Ignore:
Timestamp:
07/31/2007 00:03:57 (13 months ago)
Author:
why
Message:

* samples/dialog.rb: the markup stuff was all wrong. uses Text.replace now. thankyou alex!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/samples/dialogs.rb

    r12 r23  
    11Shoes.app :width => 300, :height => 150, :margin => 10 do 
    22  def answer(v) 
    3     @answer.markup = "<span color='black'>#{v.inspect}</span>" 
     3    @answer.replace "<span color='black'>#{v.inspect}</span>" 
    44  end 
    55 
     
    2020  end 
    2121 
    22   @answer = markup("<span color='black'>Answers appear here</span>") 
     22  @answer = text "Answers appear here" 
    2323end