Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-22 Thread Stephane Ducasse
On Thu, Mar 22, 2018 at 1:41 AM, brett wrote: > Thank you -- of course ! I had that "ui close" in my code !!! , I'd expected > the > form to take control until I exited the form itself and had not considered > the code would 'fall straight through' to the 'ui close' >

Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-21 Thread brett
Thank you -- of course ! I had that "ui close" in my code !!! , I'd expected the form to take control until I exited the form itself and had not considered the code would 'fall straight through' to the 'ui close' The example form now displays on Pharo's World and is active as expected. >From

Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-21 Thread kmo
Have you left in that ui close statement that was in your first post? I tried you code and it worked fine - but if you issue a close you'll have nothing to see! -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-21 Thread Sean P. DeNigris
dragoncity-2 wrote > When I run the > > |ui | ... etc from a Playground, I don't get a working UI Form, but > I get a correctly defined static image layout of the form under 'Morph' IN > the Playground. > > I expected the CustomerSatisfaction UI form to appear as a independent > item on

Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-21 Thread dragoncity
You've defined this as an instance method, not a class method Thanks for that observation! On closer read indeed I had missed the 'class' word in the defaultSpec text on page 6, it took a little fiddling to get a Class method defined. Its 'almost' working :-) When I run the |ui | ...

Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-21 Thread Alistair Grant
On 21 March 2018 at 08:37, dragoncity wrote: > I had already defined & accepted defaultSpec , as per page 6. > > Attached is my CustomerSatisfaction.st file : I assume Pharo will suck it > back in ! You've defined this as an instance method, not a class method. If

Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-21 Thread dragoncity
I had already defined & accepted defaultSpec , as per page 6. Attached is my CustomerSatisfaction.st file : I assume Pharo will suck it back in ! On 21/03/18 17:55, Alistair Grant wrote: On 21 March 2018 at 03:12, dragoncity wrote: Hello, I'm just getting

Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-21 Thread Yuriy Babah
at the end of the fifth page " The widgets have now been defined and configured, but their placement in the UI has not yet been specified. This is the role of the class side method defaultSpec . " CustomerSatisfaction class >> defaultSpec ^ SpecLayout composed newRow: [ :row | row add:

Re: [Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-21 Thread Alistair Grant
On 21 March 2018 at 03:12, dragoncity wrote: > Hello, I'm just getting into Pharo, and am trying to > do the example 'tutorial' UI programs in chapter 2 of The Spec UI Framework > book. I have a special interest in end user GUI interfaces for programs. I > enter the

[Pharo-users] Unable to execute example code from "The Spec UI Framework" Book

2018-03-20 Thread dragoncity
Hello, I'm just getting into Pharo, and am trying to do the example 'tutorial' UI programs in chapter 2 of The Spec UI Framework book. I have a special interest in end user GUI interfaces for programs. I enter the first example code as written and the methods are all accepted without errors.