Skip to content

Commit 772ce86

Browse files
committed
adding showFlag:
1 parent d193f9e commit 772ce86

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Chapters/Country/CountriesExamples.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ For this, we define the following method that extends the inspector.
192192
You should get the situation shown by Figure *@noprint@*.
193193

194194
```
195-
EarthMapCountry >> inspectorShape
195+
EarthMapCountry >> inspectorShape: aBuilder
196196
<inspectorPresentationOrder: 0 title: 'Shape'>
197197
198198
| canvas |
@@ -457,6 +457,14 @@ The message `newRoassal` creates an instance of the class `SpRoassalPresenter`.
457457
You specify set and get the canvas (using the messages `canvas` and `canvas:`) to be displayed.
458458

459459

460+
At this point you are missing `showFlag:` method. A possible implementation is the following one.
461+
462+
```
463+
EarthCountryBrowser >> showFlag: code
464+
countryFlag image: (self flagForCountryCode: code)
465+
```
466+
467+
460468
### Conclusion
461469
In this little tutorial, we show several important aspects of Pharo.
462470

0 commit comments

Comments
 (0)