You might use Region.highlight() for that purpose ().
If you use it without a timing parameter it acts as toggling frame.
so you might use e.g.
setROI(someRegion)
if Settings.ShowActions: Region(getROI()).highlight() #switch frame on
# your actions
if Settings.ShowActions: Region(getROI()).highlight() #switch frame off
You might use Region.highlight() for that purpose ().
If you use it without a timing parameter it acts as toggling frame.
so you might use e.g.
setROI(someRegion) ShowActions: Region( getROI( )).highlight( ) #switch frame on ShowActions: Region( getROI( )).highlight( ) #switch frame off
if Settings.
# your actions
if Settings.