Permalink
Browse files

notebook_widget

  • Loading branch information...
lljk committed Aug 20, 2011
1 parent 48d13b0 commit 154e24cfec9e569e5fb8ff3960ba9e4e7fc46ef8
Showing with 1 addition and 4 deletions.
  1. +1 −4 notebook_widget/notebook_widget_example.rb
@@ -1,5 +1,5 @@
class Page < Shoes::Widget
- attr_accessor :name, :body
+ attr_accessor :body
def initialize(name)
@name = name
@@ -20,7 +20,6 @@ class NoteBook < Shoes::Widget
attr_reader :pages
def initialize(first_page)
- @pnum = 0
@pages = {}
@f = flow width: self.parent.width, height: 50, displace_top: 0
@@ -40,8 +39,6 @@ def add_page(name)
@pages.each{|k, v| v.body.hide}
@pages[name].body.show
}
-
- @pnum += 1
end
end

0 comments on commit 154e24c

Please sign in to comment.