Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When does the finish event get called in shoes?

Tags:

ruby

shoes

Using Shoes, I would like to have a block executed upon window destruction. I thought I could use the finish event, but in the following piece of code, "Starting" is displayed, but "Finished" is never shown.


Shoes.app(:title => "Test") do

    flow do
        start do |obj|
            alert("Starting")
        end

        finish do |obj|
            alert("Finished")
        end

        button "Hello"
    end
end

like image 529
Zachary Garrett Avatar asked Dec 31 '25 23:12

Zachary Garrett


1 Answers

After doing some more researching...

It appears that the finish event in Shoes is currently only used for downloads.

In addition, it appears there is no onclose event currently, but it has been discussed.

http://article.gmane.org/gmane.comp.lib.shoes/2976

Apologies for answering my own question, but putting the knowledge out there for others.

like image 191
Zachary Garrett Avatar answered Jan 02 '26 14:01

Zachary Garrett



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!