Jun-07-2019, 03:54 PM
(This post was last modified: Jun-07-2019, 04:30 PM by Selfiatus1.)
Hi,
I cant get this code to work, I just want a button to be pressed, calling definition "helloCallBack" and from it a series of
if statements, whereas, if a variable is a string then write that string to the document..
It just woun't work, what am I doing wrong?
Selfiatus1
...and yes I do have installed docx and tkinter modules.
It woun't write text to the document, can anyone help please?
I cant get this code to work, I just want a button to be pressed, calling definition "helloCallBack" and from it a series of
if statements, whereas, if a variable is a string then write that string to the document..
It just woun't work, what am I doing wrong?
def helloCallBack(): if tkvar == 'Broker': document = Document() document.add_heading("Broker") document.save('agreement034.docx')Kr.
Selfiatus1
...and yes I do have installed docx and tkinter modules.
It woun't write text to the document, can anyone help please?