When does the final event in shoes occur?

Using Shoes, I would like to have a block made when breaking a window. I thought I could use the finish event, but the following code snippet displays "Starting", but "Finished" never displays.


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

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

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

        button "Hello"
    end
end

+3
source share
1 answer

After several studies ...

It seems that the final event in Shoes is currently being used for download only.

Also, it looks like there is currently no onclose event, but it has been discussed.

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

I apologize for answering my own question, but putting knowledge to others.

+5
source

Source: https://habr.com/ru/post/1702565/


All Articles