Created
May 15, 2020 23:57
-
-
Save staypufd/bf27309fc21e926c3784cc34b7fc05bc to your computer and use it in GitHub Desktop.
Smalltalk fix for Pharo tutorial section 28.2 at https://ci.inria.fr/pharo-contribution/job/UpdatedPharoByExample/lastSuccessfulBuild/artifact/book-result/FirstApplication/FirstApplication.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
initialize | |
| sampleCell width height n | | |
super initialize. | |
n := self cellsPerSide. | |
sampleCell := LOCell new. | |
width := sampleCell width. | |
height := sampleCell height. | |
self bounds: (5 @ 5 extent: (width * n) @ (height * n) + (2 * self borderWidth)). | |
cells := Array2D new: 5 tabulate: [ :i :j | self newCellAt: i at: j]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment