RELEASE 3.4.0
This commit is contained in:
parent
9db96fd10f
commit
92bafa24f0
18 changed files with 101 additions and 77 deletions
|
@ -1,7 +1,8 @@
|
|||
import csv
|
||||
import PySimpleGUI as sg
|
||||
|
||||
filename = sg.PopupGetFile('filename to open', no_window=True, file_types=(("CSV Files","*.csv"),))
|
||||
# filename = sg.PopupGetFile('filename to open', no_window=True, file_types=(("CSV Files","*.csv"),))
|
||||
filename = 'C:/Python/PycharmProjects/GooeyGUI/CSV/Gruen Movement Catalog V5.3 for Lucid less data 2017-08-30.csv'
|
||||
# --- populate table with file contents --- #
|
||||
data = []
|
||||
if filename is not None:
|
||||
|
@ -19,8 +20,11 @@ col_layout = [[sg.Table(values=data[1:][:], headings=[data[0][x] for x in range(
|
|||
auto_size_columns=True, display_row_numbers=True, justification='right', size=(None, len(data)))]]
|
||||
|
||||
layout = [[sg.Column(col_layout, size=(1200,600), scrollable=True)],]
|
||||
|
||||
form = sg.FlexForm('Table', grab_anywhere=False)
|
||||
b, v = form.LayoutAndRead(layout)
|
||||
form.Layout(layout)
|
||||
|
||||
form.Finalize()
|
||||
|
||||
b, v = form.Read()
|
||||
|
||||
exit(69)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue