Switch mode to touch `.pp`
parent
71eef1b7fd
commit
f06e05c9cb
|
@ -172,6 +172,10 @@ async def handle_viewmode_inputs(
|
||||||
}.intersection(pressed)
|
}.intersection(pressed)
|
||||||
|
|
||||||
if order_keys_pressed:
|
if order_keys_pressed:
|
||||||
|
|
||||||
|
# show the pp label
|
||||||
|
mode.pp.show()
|
||||||
|
|
||||||
if (
|
if (
|
||||||
# 's' for "submit" to activate "live" order
|
# 's' for "submit" to activate "live" order
|
||||||
Qt.Key_S in pressed or
|
Qt.Key_S in pressed or
|
||||||
|
@ -204,6 +208,10 @@ async def handle_viewmode_inputs(
|
||||||
f'mode: {prefix}{action}')
|
f'mode: {prefix}{action}')
|
||||||
|
|
||||||
else: # none active
|
else: # none active
|
||||||
|
|
||||||
|
# hide pp label
|
||||||
|
mode.pp.hide()
|
||||||
|
|
||||||
# if none are pressed, remove "staged" level
|
# if none are pressed, remove "staged" level
|
||||||
# line under cursor position
|
# line under cursor position
|
||||||
view.mode.lines.unstage_line()
|
view.mode.lines.unstage_line()
|
||||||
|
@ -231,9 +239,10 @@ class ChartView(ViewBox):
|
||||||
mode_name: str = 'mode: view'
|
mode_name: str = 'mode: view'
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|
||||||
self,
|
self,
|
||||||
|
|
||||||
name: str,
|
name: str,
|
||||||
|
|
||||||
parent: pg.PlotItem = None,
|
parent: pg.PlotItem = None,
|
||||||
**kwargs,
|
**kwargs,
|
||||||
|
|
||||||
|
@ -250,7 +259,6 @@ class ChartView(ViewBox):
|
||||||
self.select_box = SelectRect(self)
|
self.select_box = SelectRect(self)
|
||||||
self.addItem(self.select_box, ignoreBounds=True)
|
self.addItem(self.select_box, ignoreBounds=True)
|
||||||
|
|
||||||
self.name = name
|
|
||||||
self.mode = None
|
self.mode = None
|
||||||
self.order_mode: bool = False
|
self.order_mode: bool = False
|
||||||
|
|
||||||
|
@ -259,6 +267,7 @@ class ChartView(ViewBox):
|
||||||
@asynccontextmanager
|
@asynccontextmanager
|
||||||
async def open_async_input_handler(
|
async def open_async_input_handler(
|
||||||
self,
|
self,
|
||||||
|
|
||||||
) -> 'ChartView':
|
) -> 'ChartView':
|
||||||
from . import _event
|
from . import _event
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue