How to export user input data from python to excel?
Posted
by
mrn
on Programmers
See other posts from Programmers
or by mrn
Published on 2012-06-17T15:18:13Z
Indexed on
2012/06/17
15:22 UTC
Read the original article
Hit count: 235
I am trying to develop a user form in python 2.7.3. Please note that I am a python beginner.
I am trying to use xlwt to export data to excel.
I want to write values of following variables i.e. a (value to write:'x1') & d (value to write: be user defined information in text box), to an excel sheet,
a=StringVar()
checkBox1=Checkbutton(root, text="text1", variable=a, onvalue="x1", offvalue="N/A")
checkBox1.place(relx=0., rely=0., relwidth=0., relheight=0.)
checkBox1.pack()
d=StringVar()
atextBox1=Entry(root, textvariable=d, font = '{MS Sans Serif} 10')
atextBox1.pack()
Need help badly.
Thank you so much in advance
© Programmers or respective owner