RELEASE 3.5.2
This commit is contained in:
parent
50261625a4
commit
7e00dd16fe
19 changed files with 745 additions and 231 deletions
|
@ -1,10 +1,9 @@
|
|||
import math
|
||||
import PySimpleGUI as sg
|
||||
|
||||
layout = [[sg.Graph(canvas_size=(400, 400), graph_bottom_left=(-100,-100), graph_top_right=(100,100), background_color='white', key='graph')],]
|
||||
layout = [[sg.Graph(canvas_size=(400, 400), graph_bottom_left=(-100,-100), graph_top_right=(100,100), background_color='white', key='graph', tooltip='This is a cool graph!')],]
|
||||
|
||||
form = sg.FlexForm('Graph of Sine Function').Layout(layout)
|
||||
form.Finalize()
|
||||
form = sg.FlexForm('Graph of Sine Function', grab_anywhere=True).Layout(layout).Finalize()
|
||||
graph = form.FindElement('graph')
|
||||
|
||||
graph.DrawLine((-100,0), (100,0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue