Merge pull request #92 from MikeTheWatchGuy/Dev-latest

Cookbook browser, Matplotlib browser,  Ping graph layout
This commit is contained in:
MikeTheWatchGuy 2018-08-30 09:59:29 -04:00 committed by GitHub
commit 1855ba0d56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
# define the form layout
layout = [[canvas_elem],
[g.ReadFormButton('Exit', size=(4,1), pad=((130, 0), 3))]]
layout = [[ canvas_elem, g.ReadFormButton('Exit', pad=(0,(210,0)))] ]
# 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.ReadNonBlocking()
@ -668,11 +667,5 @@ def main():
photo = draw(fig, canvas)
if __name__ == '__main__':
main()
# !/usr/bin/env python3
# -*- coding: utf-8 -*-
if __name__ == '__main__':
main()