Delete a Tab from the Tabs pane?

37 views
Skip to first unread message

lewis

unread,
Jul 13, 2020, 9:32:54 AM7/13/20
to leo-editor
I am creating a new Tab using:

c.frame.log.selectTab('Results')    # Create Tab 'Results'

Once the output has been sent to the new Tab, I can clear the contents using:
c.frame.log.clearTab('Results')

Is there a command to delete the Tab from the Tabs pane?

Regards
Lewis

Edward K. Ream

unread,
Jul 13, 2020, 5:23:14 PM7/13/20
to leo-editor
c.frame.log.deleteTab('Results') works, as I have just verified. There is no corresponding user command. You can easily create one with @command.

Edward

lewis

unread,
Jul 13, 2020, 9:23:00 PM7/13/20
to leo-editor
To delete a Tab from Tabs pane use:
c.frame.log.deleteTab()

I found it used in LeoPyRef.leo
There is no mention of the command in LeoDocs.leo

Regards
Lewis

Edward K. Ream

unread,
Jul 14, 2020, 11:40:41 AM7/14/20
to leo-editor
Why should LeoDocs.leo mention each of Leo's methods?

Edward
Reply all
Reply to author
Forward
0 new messages