Skip to content

Commit 605a88f

Browse files
committed
Added Encoding UTF-8
1 parent b226ff1 commit 605a88f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Grapher.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def Main():
5353

5454
#sets the preview pane to see the preview portion
5555
Preview = [ [sg.Menu(menu_def)],
56-
[sg.Column(columm_layout, size=(410,100), scrollable=True)]]
56+
[sg.Column(columm_layout, size=(410,100), scrollable=True),sg.Table(values=data, )]]
5757
#sets the layout for the graph settings on the box
5858
Setting = [[sg.Slider(range=(1,650), default_value=650, size=(10,10), orientation='horizontal', key = 'height',font=('Helvetica', 12)),
5959
sg.Text(' Name: ', size=(10,1)), sg.InputText(key='graphtitle', size=(15,1)), sg.Text(' Title of x-axis ', size = (14,1)),
@@ -97,6 +97,12 @@ def Main():
9797
#opens up a window to choose a file with the extension .csv
9898
filename = sg.PopupGetFile('filename to open', no_window=True, file_types=(("CSV Files","*.csv"),))
9999

100+
if filename is not None:
101+
df = pd.read_csv(filename, sep=',',engine='python', header=None)
102+
data = df.values.tolist()
103+
104+
105+
100106
#populates the first box for choosing the x axis
101107
if filename is not None:
102108
with open(filename, "r") as infile:

0 commit comments

Comments
 (0)