Fixed import as g instead of sg bug, made some demos borderless, used form.FindElement where possible, fixed PopupGetFile and PopupGetFolder no_window option
This commit is contained in:
parent
be6ee091b1
commit
b471b5dd05
17 changed files with 153 additions and 147 deletions
|
@ -1,4 +1,4 @@
|
|||
import PySimpleGUI as g
|
||||
import PySimpleGUI as sg
|
||||
import matplotlib.pyplot as plt
|
||||
from matplotlib.backends.backend_tkagg import FigureCanvasAgg
|
||||
import matplotlib.backends.tkagg as tkagg
|
||||
|
@ -640,12 +640,12 @@ def draw(fig, canvas):
|
|||
def main():
|
||||
global g_my_globals
|
||||
|
||||
canvas_elem = g.Canvas(size=SIZE, background_color='white') # get the canvas we'll be drawing on
|
||||
canvas_elem = sg.Canvas(size=SIZE, background_color='white') # get the canvas we'll be drawing on
|
||||
# define the form layout
|
||||
layout = [[ canvas_elem, g.ReadFormButton('Exit', pad=(0,(210,0)))] ]
|
||||
layout = [[canvas_elem, sg.ReadFormButton('Exit', pad=(0, (210, 0)))]]
|
||||
|
||||
# create the form and show it without the plot
|
||||
form = g.FlexForm('Ping Graph', background_color='white')
|
||||
form = sg.FlexForm('Ping Graph', background_color='white')
|
||||
form.Layout(layout)
|
||||
form.ReadNonBlocking()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue