Skip to content Skip to sidebar Skip to footer

Use In A Non-sequential Manner Of Easygui.msgbox

If I want display a plotting, with for example matplotlib, AND a popup message with easygui: plt.show() msgbox('Hello world', title='Hello') it is needed to X-close the plotting

Solution 1:

You can use the non-blocking show modes, but then you lose interactivity. You can instead use threads:

from easygui import msgbox
from matplotlib.pyplot import show, plot, draw, ion
from threading import Thread

p = Thread(target=msgbox, args=("Hello world",), kwargs=dict(title="Hello"))
p.start()

plot([1,2,3])
show()

p.join()

Post a Comment for "Use In A Non-sequential Manner Of Easygui.msgbox"