Commit b8100ee8 authored by Yori 'AGy' Fournier's avatar Yori 'AGy' Fournier
Browse files

add a new function in myTool::giveDataToWindow

parent 55097d21
......@@ -118,7 +118,7 @@ else:
# myTool.*: interface functions to use myplotlib interactively
from .myTool import print2file, print2screen, printListCurrentWindows
from .myTool import getWindow, getFigOnWindow, drawFigOnWindow
from .myTool import getWindow, getFigOnWindow, drawFigOnWindow, giveDataToWindow
from .myTool import closeWindow, closeAllWindows
# MyFig4Test: Overlay of Figure for testing
......
......@@ -110,6 +110,16 @@ def drawFigOnWindow(fig, ID):
return(MyWin(fig, fignum=ID))
def giveDataToWindow(data, ID):
fig = getFigOnWindow(ID)
fig.update(inputarg = data)
win = getWindow(ID)
win.refresh()
return(True)
def closeWindow(ID):
for window in _G_WINDOWS:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment