pharo-users@lists.pharo.org

Any question about pharo is welcome

View all threads

GTPlayground or STPlayground

M
mspgate@gmail.com
Fri, Nov 5, 2021 8:29 AM

hello everybody!

What are the difference between the GTPlayground(that I think is deprecated) and the STPlayground?

for my live coding performance the GTPlayground looks better because it is more “stripped” down, but does it work fine as the STPlayground.

also, if I would like to chance the appearance of the STPlayground, which would be the methods to get rid of everything in the window except the window itself and the title.

thanks a lot for your help.

d

hello everybody! What are the difference between the GTPlayground(that I think is deprecated) and the STPlayground? for my live coding performance the GTPlayground looks better because it is more “stripped” down, but does it work fine as the STPlayground. also, if I would like to chance the appearance of the STPlayground, which would be the methods to get rid of everything in the window except the window itself and the title. thanks a lot for your help. d
GP
Guillermo Polito
Mon, Nov 8, 2021 9:08 AM

Hi d,

El 5 nov 2021, a las 9:29, mspgate@gmail.com escribió:

hello everybody!

What are the difference between the GTPlayground(that I think is deprecated) and the STPlayground?

StPlayground is a re-implementation of GTPlayground based on a different UI framework (Spec2).

for my live coding performance the GTPlayground looks better because it is more “stripped” down, but does it work fine as the STPlayground.

Would you give us more details on what you mean here?
StPlayground should cover all use cases and be as simple as GTPlayground, and be simpler regarding implementation.

also, if I would like to chance the appearance of the STPlayground, which would be the methods to get rid of everything in the window except the window itself and the title.

All these are Spec2 specifics, I’ll let someone knowing details on this to answer.
I’m putting Esteban in cc, maybe he can guide you on this.
You can contact the Spec channel on discord too.

G

Hi d, > El 5 nov 2021, a las 9:29, mspgate@gmail.com escribió: > > hello everybody! > > What are the difference between the GTPlayground(that I think is deprecated) and the STPlayground? > StPlayground is a re-implementation of GTPlayground based on a different UI framework (Spec2). > for my live coding performance the GTPlayground looks better because it is more “stripped” down, but does it work fine as the STPlayground. > Would you give us more details on what you mean here? StPlayground should cover all use cases and be as simple as GTPlayground, and be simpler regarding implementation. > also, if I would like to chance the appearance of the STPlayground, which would be the methods to get rid of everything in the window except the window itself and the title. > All these are Spec2 specifics, I’ll let someone knowing details on this to answer. I’m putting Esteban in cc, maybe he can guide you on this. You can contact the Spec channel on discord too. G
M
mspgate@gmail.com
Mon, Nov 8, 2021 7:43 PM

Thanks for your reply Guillermo!

I think that the GTPlayground is already a good “minimal” solution for me. But I would like to make it appear without all the button icons on the upper right side

Also, I will start reading the Spec2 book tonight. :0

peace.

d

Thanks for your reply Guillermo! I think that the GTPlayground is already a good “minimal” solution for me. But I would like to make it appear without all the button icons on the upper right side Also, I will start reading the Spec2 book tonight. :0 peace. d
EL
Esteban Lorenzano
Mon, Nov 8, 2021 8:39 PM

Hello,

Sorry I somehow missed the exchange until now.
GTPlayground will be removed and I do not recommend doing any development on top of it.
StPlayground is the replacement and is very simple to use and extent.
However, to do what you want I didn't think in an "default" way of doing it, and you will need to override a method:

StPlaygroundPagePresenter class>>defaultSpec
^ SpBoxLayout newTopToBottom
spacing: 3;
add: #toolbar expand: false;
add: #text;
add: #statusbar expand: false;
yourself

you just need to change it with:
StPlaygroundPagePresenter class>>defaultSpec
^ SpBoxLayout newTopToBottom
spacing: 3;
add: #text;
add: #statusbar expand: false;
yourself

then you will have removed the toolbar.
Of course, maybe you do not want to override all playgrounds but just open your version some times. In that case, path is longer (I will think on how to optimise this).
To get a "clean" new version of the playground modified you will need to:
Extend StPlayground and override newDefaultPlaygroundPage

Extend StPlaygroundPage and override defaultObjectInspectorClass

Finally, extent StPlaygroundPagePresenter and override defaultSpec there.

cheers,
Esteban

On Nov 8 2021, at 8:43 pm, mspgate@gmail.com wrote:

Thanks for your reply Guillermo!

I think that the GTPlayground is already a good “minimal” solution for me. But I would like to make it appear without all the button icons on the upper right side
Also, I will start reading the Spec2 book tonight. :0
peace.
d

Hello, Sorry I somehow missed the exchange until now. GTPlayground will be removed and I do not recommend doing any development on top of it. StPlayground is the replacement and is very simple to use and extent. However, to do what you want I didn't think in an "default" way of doing it, and you will need to override a method: StPlaygroundPagePresenter class>>defaultSpec ^ SpBoxLayout newTopToBottom spacing: 3; add: #toolbar expand: false; add: #text; add: #statusbar expand: false; yourself you just need to change it with: StPlaygroundPagePresenter class>>defaultSpec ^ SpBoxLayout newTopToBottom spacing: 3; add: #text; add: #statusbar expand: false; yourself then you will have removed the toolbar. Of course, maybe you do not want to override all playgrounds but just open your version some times. In that case, path is longer (I will think on how to optimise this). To get a "clean" new version of the playground modified you will need to: Extend StPlayground and override newDefaultPlaygroundPage Extend StPlaygroundPage and override defaultObjectInspectorClass Finally, extent StPlaygroundPagePresenter and override defaultSpec there. cheers, Esteban On Nov 8 2021, at 8:43 pm, mspgate@gmail.com wrote: > Thanks for your reply Guillermo! > > I think that the GTPlayground is already a good “minimal” solution for me. But I would like to make it appear without all the button icons on the upper right side > Also, I will start reading the Spec2 book tonight. :0 > peace. > d