Displaying 1 result from an estimated 1 matches for "on_b".
Did you mean:
on_
2007 Apr 03
2
CalendarCtrl.date not working?
...ed pretty easy
when I was reading through the documentation but I cannot retrieve the
selected date. I have the following code:
def initialize...
...
@calendar = panel.add(Wx::CalendarCtrl[])
panel.add(Wx::Button[:label => ''test'']) do |@button|
listen(:button, @button, :on_b)
end
end
def on_b
date = @calendar.date
puts date
end
And I am getting the following error(s):
c:/ruby/lib/ruby/gems/1.8/gems/wx_sugar-0.1.14/lib/wx_sugar/accessors.rb:53:in
`
initialize'': wrong number of arguments (6 for 0) (ArgumentError)
from
c:/ruby/lib/ruby/gems/1.8/...