Enable marker-on-select through order mode

basic_orders
Tyler Goodlet 2021-03-18 13:33:10 -04:00
parent 68f75b582a
commit 67c5563090
1 changed files with 8 additions and 2 deletions

View File

@ -15,10 +15,10 @@
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
""" """
Chart view box primitives. Chart view box primitives
""" """
from dataclasses import dataclass, field from dataclasses import dataclass, field
from math import floor
from typing import Optional, Dict from typing import Optional, Dict
import pyqtgraph as pg import pyqtgraph as pg
@ -269,6 +269,9 @@ class LineEditor:
exec_type='dark' if dotted else 'live', exec_type='dark' if dotted else 'live',
action=action, action=action,
show_markers=True, show_markers=True,
# prevent flickering of marker while moving/tracking cursor
only_show_markers_on_hover=False,
) )
self._active_staged_line = line self._active_staged_line = line
@ -329,6 +332,9 @@ class LineEditor:
color=line.color, color=line.color,
dotted=line._dotted, dotted=line._dotted,
show_markers=True,
only_show_markers_on_hover=True,
action=action, action=action,
) )