fix drawing delete method
This commit is contained in:
@ -22,10 +22,7 @@ class Drawing(Pane):
|
|||||||
"""
|
"""
|
||||||
Irreversibly deletes the drawing.
|
Irreversibly deletes the drawing.
|
||||||
"""
|
"""
|
||||||
self.run_script(f'''
|
self.run_script(f'{self.id}.detach()')
|
||||||
if ({self.chart.id}.toolBox) {self.chart.id}.toolBox.delete({self.id})
|
|
||||||
else {self.id}.detach()
|
|
||||||
''')
|
|
||||||
|
|
||||||
class TwoPointDrawing(Drawing):
|
class TwoPointDrawing(Drawing):
|
||||||
def __init__(
|
def __init__(
|
||||||
|
|||||||
Reference in New Issue
Block a user