Added import code for BOTH 2.,7 and 3
This commit is contained in:
parent
8b4185988f
commit
ab98ea20eb
66 changed files with 1284 additions and 136 deletions
|
@ -1,9 +1,12 @@
|
|||
import PySimpleGUI as sg
|
||||
#!/usr/bin/env python
|
||||
import sys
|
||||
if sys.version_info[0] < 3:
|
||||
import PySimpleGUI27 as sg
|
||||
else:
|
||||
import PySimpleGUI as sg
|
||||
|
||||
layout = [
|
||||
[sg.Graph(canvas_size=(400, 400), graph_bottom_left=(0,0), graph_top_right=(400, 400), background_color='red', key='graph')],
|
||||
[sg.T('Change circle color to:'), sg.ReadButton('Red'), sg.ReadButton('Blue'), sg.ReadButton('Move')]
|
||||
]
|
||||
layout = [[sg.Graph(canvas_size=(400, 400), graph_bottom_left=(0,0), graph_top_right=(400, 400), background_color='red', key='graph')],
|
||||
[sg.T('Change circle color to:'), sg.ReadButton('Red'), sg.ReadButton('Blue'), sg.ReadButton('Move')]]
|
||||
|
||||
window = sg.Window('Graph test').Layout(layout).Finalize()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue