Skip to content

Shoes App, Window and Dialog finish events are not working #25

Open
@IanTrudel

Description

Shoes App, Window and Dialog finish events are not working. The following code should cause an alert to pop up when each window is closed but the finish event is never fired up.

Shoes.app(:title => "Shoes Events", :width => 450, :height => 250) {
   start { |n| para "starting #{n}\n" }
   finish { |n| alert "finishing #{n}" }
   window(:title => "Window Events", :resizable => false) {
      finish { |n| alert "finishing #{n}" }
   }
   dialog(:title => "Dialog Events", :resizable => false) {
      finish { |n| alert "finishing #{n}" }
   }
}

TEMPORARY WORKAROUND

Shoes.app(:title => "Shoes Events", :width => 450, :height => 250) {
   start { |n| para "starting #{n}\n" }
   stack { finish { |n| alert "finishing #{n}" } }
}

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions