Cookook browser, Matplotlib browser, Ping graph layout

This commit is contained in:
MikeTheWatchGuy 2018-08-30 09:58:54 -04:00
parent b0c6ff3076
commit b7a818ac72
3 changed files with 2 additions and 9 deletions

View File

@ -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()