f = open(self.filename, 'rb')
read = csv.reader(f, delimiter=',')
buttons = next(read)
print() 
for btn in buttons:
    new_btn = Button(self, text=btn, command=self.btnClick)
new_btn.pack()

def btnClick(self):
    pass
app = Application()
app.master.title('test')
app.mainloop()
Tkinter Gui to read in csv file and generate buttons based on the entries in the first row