Merge pull request #92 from MikeTheWatchGuy/Dev-latest
Cookbook browser, Matplotlib browser, Ping graph layout
This commit is contained in:
commit
1855ba0d56
|
@ -642,11 +642,10 @@ def main():
|
||||||
|
|
||||||
canvas_elem = g.Canvas(size=SIZE, background_color='white') # get the canvas we'll be drawing on
|
canvas_elem = g.Canvas(size=SIZE, background_color='white') # get the canvas we'll be drawing on
|
||||||
# define the form layout
|
# define the form layout
|
||||||
layout = [[canvas_elem],
|
layout = [[ canvas_elem, g.ReadFormButton('Exit', pad=(0,(210,0)))] ]
|
||||||
[g.ReadFormButton('Exit', size=(4,1), pad=((130, 0), 3))]]
|
|
||||||
|
|
||||||
# create the form and show it without the plot
|
# create the form and show it without the plot
|
||||||
form = g.FlexForm('Demo Application - Embedding Matplotlib In PySimpleGUI', background_color='white')
|
form = g.FlexForm('Ping Graph', background_color='white')
|
||||||
form.Layout(layout)
|
form.Layout(layout)
|
||||||
form.ReadNonBlocking()
|
form.ReadNonBlocking()
|
||||||
|
|
||||||
|
@ -668,11 +667,5 @@ def main():
|
||||||
photo = draw(fig, canvas)
|
photo = draw(fig, canvas)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
main()
|
|
||||||
|
|
||||||
# !/usr/bin/env python3
|
|
||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in New Issue