Merge pull request #63 from MikeTheWatchGuy/Dev-latest
Made so that initially no graph is shown
This commit is contained in:
commit
db7e765275
|
@ -247,20 +247,15 @@ form.Show(non_blocking=True)
|
||||||
form.NonBlocking = False
|
form.NonBlocking = False
|
||||||
|
|
||||||
# add the plot to the window
|
# add the plot to the window
|
||||||
func = fig_dict['Pyplot Simple']
|
|
||||||
while True:
|
while True:
|
||||||
fig = func()
|
|
||||||
fig_photo = draw_figure(canvas_elem.TKCanvas, fig)
|
|
||||||
|
|
||||||
# show it all again and get buttons
|
|
||||||
button, values = form.Read()
|
button, values = form.Read()
|
||||||
|
# show it all again and get buttons
|
||||||
if button is None or button is 'Exit':
|
if button is None or button is 'Exit':
|
||||||
break
|
break
|
||||||
|
|
||||||
choice = values['func'][0]
|
choice = values['func'][0]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
func = fig_dict[choice]
|
func = fig_dict[choice]
|
||||||
except:
|
except:
|
||||||
func = fig_dict['Pyplot Simple']
|
func = fig_dict['Pyplot Simple']
|
||||||
|
fig = func()
|
||||||
|
fig_photo = draw_figure(canvas_elem.TKCanvas, fig)
|
||||||
|
|
Loading…
Reference in New Issue