Skip to content

Commit a2408c9

Browse files
committed
More User Friendly Instructions
1 parent fc7d3fd commit a2408c9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Grapher.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def Main():
5454

5555
#sets the preview pane to see the preview portion
5656
Preview = [ [sg.Menu(menu_def)],
57-
[sg.Text('To preview imported data, click the button below ')],
57+
[sg.Text('To preview imported data, select '),sg.Text("Generate -> Preview", text_color = 'blue')],
58+
[sg.Text('Make sure the text is green below before proceeding')],
5859
[sg.Text(' ')],
5960
[sg.Text('No CSV has been entered', size = (51,1),text_color = 'red',key = 'fn')],
6061
[sg.Text(' ')]]
@@ -72,12 +73,12 @@ def Main():
7273
[sg.Text('Enter graph Width')],
7374
[sg.Text(' ')],
7475
[sg.Text('Select the X axis'), sg.Text(' Select the y axis(s)')],
75-
[sg.Listbox(['Load CSV to See available headers'], key = 'xheaders', size=(30,6)),sg.Listbox(['Load CSV to See available headers'],select_mode='multiple',key = 'yheaders', size=(30,6)), sg.Checkbox('Maintain ASR',default = False,key='ASR')]]
76+
[sg.Listbox(['Load CSV to See available headers'], key = 'xheaders', size=(30,6)),sg.Listbox(['Load CSV to See available headers'],select_mode='multiple',key = 'yheaders', size=(30,6)), sg.Checkbox('Maintain Aspect',default = False,key='ASR')]]
7677

7778
#general layout bringing all the smaller frames together
7879
layout = [[sg.Text('First, Use Open to load a CSV into the program and verify the correct path in the preview box.')],
7980
[sg.Text('Note to keep the box a perfect square, leave the height and width at 610 by 650')],
80-
[sg.Frame('Preview', Preview, title_color='green', font = 'Any 12'), sg.Image('UMD.png')],
81+
[sg.Frame('Preview', Preview, title_color='green', font = 'Any 12'), sg.Image('Img/UMD.png')],
8182
[sg.Frame('Graph Settings', Setting, title_color='blue', font = 'Any 12')],
8283
[sg.Text('Property of Maryland Energy Innovation Institute written by Jonathan Obenland', text_color = 'red')],
8384
[sg.Text('All rights reserved under GNU-GPL version 3 Python 3.x Build: ', text_color = 'blue'),sg.Text("PASSING",text_color = 'green')]]
@@ -215,7 +216,7 @@ def Main():
215216
vertical_scroll_only = False,
216217
num_rows = min(len(data),20))]]
217218

218-
window2 = sg.Window('Window2').Layout(layout2)
219+
window2 = sg.Window(filename + ' PREVIEW').Layout(layout2)
219220
if window2_active:
220221
event2, values2 = window2.Read(timeout=100)
221222
if event2 is None or event2 == 'Exit':

0 commit comments

Comments
 (0)