0

I am trying to create a GUI with Python's Tkinter for some scripts and misc functions I have, the design of the GUI looks something like this:

Then, as the label says, I would like to transform a directory full of documents to a single .csv file, so I created two functions: My question is: How should I merge the two functions in the GUI's code?. I tried with a function that calls the two aforementioned functions, however, It did not work. I would also like to know if there is a better way to achieve this.

1
  • 1
    What does "did not worked" mean? Why didn't it work? That s the correct solution - write a new function that calls each of the other functions. Commented May 22, 2016 at 20:45

1 Answer 1

3

As mentioned by @Brian Oakley, why haven't you tried including the two functions under 1, in this case, instead of configuring your button on click_me, include maybe the 2 other functions you mentioned?

def clickMe():

    action.configure(text='Hello ' + input_directory.get())
    retrive(input_directory.get())
    corpus_writer(output_directory.get())
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.