user interface - How to close a window with Spec in Pharo -


i have spec window several controls. when click on ok button want window closed.

| m | m := dynamiccomposablemodel new. m instantiatemodels: #(text textmodel ok oktoolbar). m ok okaction: [ self close ]. m openwithspeclayout: (speclayout composed     newcolumn: [ : c | c add: #text ; add: #ok height: 30 ];     yourself). 

i have tried sending delete , close, none worked. how can close window?

you can this:

| m | m := dynamiccomposablemodel new. m instantiatemodels: #(text textmodel ok oktoolbar). m ok okaction: [ m window close ]. m openwithspeclayout: (speclayout composed     newcolumn: [ : c | c add: #text ; add: #ok height: 30 ];     yourself). 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -