Decided to play a bit and create a widget but something unexpected happened.
Execute the code below and press the button.
The app crashes (Shoes.quit) on C level because the window disappears.
Why is this happening?
class Box_counter < Shoes::Widget
def initialize()
flow;
end
end
Shoes.app do
button "press" do
Box_counter.new;
end
end
Decided to play a bit and create a widget but something unexpected happened. Execute the code below and press the button. The app crashes (Shoes.quit) on C level because the window disappears.
Why is this happening?