Tabs in Playground ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Tabs in Playground ?

CyrilFerlicot
​​Hi !
Is it possible to have multiple tabs on the playground ? It seems so but i don't find how to do it simply.

--
Cheers
Cyril Ferlicot
Reply | Threaded
Open this post in threaded view
|

Re: Tabs in Playground ?

kilon.alios
No its not possible. There is a workaround which is kinda ironic.

You can use the old workspace as a container for multiple Playgrounds, each tab will contain a new playground.

So issues the command Workspace open in a plaground and then go to the righ menu (down arrow) , choose window group and drag your playground to the tabs bar. Of course you can add as many playgrounds as you want , each in its own tab. Works like a charm :)

I am a huge fan of window groups and I heavily use them :)

On Fri, Apr 3, 2015 at 3:24 PM, Cyril Ferlicot <[hidden email]> wrote:
​​Hi !
Is it possible to have multiple tabs on the playground ? It seems so but i don't find how to do it simply.

--
Cheers
Cyril Ferlicot

Reply | Threaded
Open this post in threaded view
|

Re: Tabs in Playground ?

Martin Bähr
Excerpts from kilon alios's message of 2015-04-03 15:05:33 +0200:
> No its not possible. There is a workaround which is kinda ironic.
>
> You can use the old workspace as a container for multiple Playgrounds, each
> tab will contain a new playground.
>
> So issues the command Workspace open in a plaground and then go to the righ
> menu (down arrow) , choose window group and drag your playground to the
> tabs bar.

and if you can't find that menu entry (moose doesn't have it)
just open the group window directly:

(GroupWindowMorph new openInWindowLabeled: 'Workspaces') extent: 400@200.

> Of course you can add as many playgrounds as you want , each in
> its own tab. Works like a charm :)
>
> I am a huge fan of window groups and I heavily use them :)

i will too, from now on. i like to keep a lot of stuff open for reference, and
this will help to de-clutter the screen. thank you for the tip!

greetings, martin.

--
eKita                   -   the online platform for your entire academic life
--
chief engineer                                                       eKita.co
pike programmer      pike.lysator.liu.se    caudium.net     societyserver.org
secretary                                                      beijinglug.org
mentor                                                           fossasia.org
foresight developer  foresightlinux.org                            realss.com
unix sysadmin
Martin Bähr          working in china        http://societyserver.org/mbaehr/

Reply | Threaded
Open this post in threaded view
|

Re: Tabs in Playground ?

abergel
In reply to this post by CyrilFerlicot
Hi Cyril,

Maybe it is sufficient for you to work with an inspector.

For example, define the method

gtInspectorExampleIn: composite
        <gtInspectorPresentationOrder: 30>
        ^ composite table
                title: 'Example';
                display: [ { #one -> 'hello' . #two -> 'world'} ];
                column: 'Key' evaluated: #key;
                column: 'Value' evaluated: [ :each | each value printString ];
                send: #value

in the class SmallInteger

and doit: 10 inspect

Cheers,
Alexandre

> On Apr 3, 2015, at 9:24 AM, Cyril Ferlicot <[hidden email]> wrote:
>
> ​​Hi !
> Is it possible to have multiple tabs on the playground ? It seems so but i don't find how to do it simply.
>
> --
> Cheers
> Cyril Ferlicot

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.




Reply | Threaded
Open this post in threaded view
|

Re: Tabs in Playground ?

CyrilFerlicot
Thank you !
I just wanted to know because with the little "Untitle" tab it looks lile we can open tabs in it. That was just for information.

On 3 April 2015 at 16:51, Alexandre Bergel <[hidden email]> wrote:
Hi Cyril,

Maybe it is sufficient for you to work with an inspector.

For example, define the method

gtInspectorExampleIn: composite
        <gtInspectorPresentationOrder: 30>
        ^ composite table
                title: 'Example';
                display: [ { #one -> 'hello' . #two -> 'world'} ];
                column: 'Key' evaluated: #key;
                column: 'Value' evaluated: [ :each | each value printString ];
                send: #value

in the class SmallInteger

and doit: 10 inspect

Cheers,
Alexandre

> On Apr 3, 2015, at 9:24 AM, Cyril Ferlicot <[hidden email]> wrote:
>
> ​​Hi !
> Is it possible to have multiple tabs on the playground ? It seems so but i don't find how to do it simply.
>
> --
> Cheers
> Cyril Ferlicot

--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.







--
Cheers
Cyril Ferlicot
Reply | Threaded
Open this post in threaded view
|

Re: Tabs in Playground ?

Pierce Ng-3
On Sat, Apr 04, 2015 at 09:12:11PM +0200, Cyril Ferlicot wrote:
> I just wanted to know because with the little "Untitle" tab it looks lile
> we can open tabs in it. That was just for information.

Up through Pharo 3 I have been using Script Manager. Haven't tried in Pharo 4
so not sure whether any gotchas.

Pierce