I am also interested. Implementing a four-function calculator has always been my first example to learn a new GUI. On 06 Nov 2013, at 12:33, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
I would love if we could get the code and if you would be interested to write a little tutorial around spec using your calculator. Why? Because we need help to write documentation and others :) Are you interested?
Stef
On Nov 6, 2013, at 12:18 PM, Ignacio MatÃas Sniechowski <0800nacho@gmail.com> wrote:
Thank you so much! That did it :)
It's almost done now. cheers N.
Lic. Ignacio Sniechowski, MBA
On Wed, Nov 6, 2013 at 4:07 AM, Benjamin <Benjamin.VanRyseghem.Pharo@gmail.com> wrote: You just need to override the method #initialExtent
It should return a point structured like this: width@height
:)
Ben
On 06 Nov 2013, at 01:50, nacho <0800nacho@gmail.com> wrote:
Continuing with my testing to learn Spec, I'm trying to build a really basic calculator. So far I managed to build the basic UI. However, I'm having some trouble at getting it displayed at the correct size. I don't know how to change the window that is opened when #ClassName new openWithSpec It seems that all the examples are opened with the same size. The image on the left is the "default" one, the one on the right is what I would like to get. I've tried by changing the width: of the column but that doesn't change the size of the window. I'm kind of stuck!
thanks cheers Nacho <http://forum.world.st/file/n4719478/calc.jpg>
----- Nacho Smalltalker apprentice. Buenos Aires, Argentina. -- View this message in context: http://forum.world.st/Adjusting-the-size-of-a-window-using-Spec-tp4719478.ht... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.