View Issue Details

IDProjectCategoryView StatusLast Update
0004393Slicer4Core: Scripting (Wrapping, Python)public2017-07-27 17:39
Reportermoselhy Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product VersionSlicer 4.7.0 
Target VersionbacklogFixed in Version 
Summary0004393: Add clear() function and/or button in python console
Description

It would be nice to have a clear function and button to clear the python interaction pane.

TagsNo tags attached.

Activities

lassoan

lassoan

2017-07-24 23:43

developer   ~0014954

The context menu is a standard one provided by Qt. Clear all is available by selecting "Select all" and then "Delete" in the context menu (two extra clicks compared to have a single "Clear all") option.

The context menu could be customized (see for example https://forum.qt.io/topic/51058/solved-qtextedit-createstandardcontextmenu), but for saving 2 extra clicks for a quite rare operation does not seem to justify the development time (unless somebody sends a pull request that implements this). If the context menu is touched (other features are added, etc) then it would be a good opportunity to add a "Clear all" function, too.

moselhy

moselhy

2017-07-27 17:39

reporter   ~0015002

See https://github.com/Slicer/Slicer/pull/754

Issue History

Date Modified Username Field Change
2017-07-18 11:37 moselhy New Issue
2017-07-18 11:37 moselhy Status new => assigned
2017-07-18 11:37 moselhy Assigned To => jcfr
2017-07-24 23:43 lassoan Product Version => Slicer 4.7.0
2017-07-24 23:43 lassoan Target Version => backlog
2017-07-24 23:43 lassoan Note Added: 0014954
2017-07-27 17:39 moselhy Note Added: 0015002