Skip to content

Latest commit

 

History

History
78 lines (57 loc) · 2.1 KB

00800_Relevant_web_sites__Links_.mdown

File metadata and controls

78 lines (57 loc) · 2.1 KB

Relevant web sites (Links)

Three manuals: Nobody Knows Shoes (NKS) and Built-in Manual and Online Reference Manual.
http://shoes.heroku.com/

The Shoes Manual for printing (All in one HTML manual and PDF manual)
http://github.com/ashbb/shoes_manual/

The Shoes Help Desk: The spot for beginners and advanced Shoesers alike.
http://shoes.home-lan.homelinux.com/

The Shoebox
http://the-shoebox.org/

Rubyinside.com the latest article
Shoes - Rubys Cross Platform GUI App Toolkit - Grows Up
http://www.rubyinside.com/whys-shoes-grows-up-1014.html

RecentBuilds
http://wiki.github.com/shoes/shoes/recentbuilds

Shoes_(GUI_toolkit) in Wikipedia
http://en.wikipedia.org/wiki/Shoes_(GUI_toolkit)

shoes_demonstration_apps
http://github.com/karmi/shoes_demonstration_apps/tree/master

Attempted refactoring a bit to learn more. ;-)

# sample62.rb
  # See the following original code.
  # 05_interactivity_with_objects.rb
  # http://github.com/karmi/shoes_demonstration_apps/tree/master

class Letter < Shoes::Widget
  def initialize img
    @flag = false
    img.click{@flag = true; @img = img}
    img.release{@flag = false}
    motion{|left, top| @img.move(left-50, top-100) if @flag}
  end
end
  
Shoes.app :width => 800, :height => 600 do
  #sound = video 'assets/drumfill.aif', :width => 0, :height => 0
  para 'Input Your Name: '
  spell = edit_line
  button 'GO' do
    #sound.play
    @canvas.clear do
      spell.text.downcase.split('').each_with_index do |l, i|
        letter  image("letters/#{l}.jpg", :left => 100*(i%8), :top => 150*(i/8))
      end
    end
  end
  
  @canvas = flow do
    a = 'a'
    26.times do |l|
      letter image("letters/#{a}.jpg").move(rand(width), rand(height))
      a.next!
    end
  end
end

sample62.png

sample62.png

Policeman

Replaced Widget to Shoes::Widget and commented out video() and play(). Then the sample62.rb worked well with Shoes-0.r1263.