Here I am using askopenfile to upload a (text)file, I also wanted to display the file name next to the upload button and then I want to read its contents and convert it to another language. Say for example if the document is in English I want to convert it into some other language, I had already created a dictionary for it so I need to tell the compiler to compare both the Input file (.txt) and the dictionary values to replace the text file with the dictionary values. So after the user clicks the convert button the text in the (.txt) must be converted into the other language and the same must be saved automatically. Is this possible to do?
Varunkrishna
0
Junior Poster in Training
Recommended Answers
Jump to PostFor starters you will have to load/open and read the file Post back when you have this coded (whether it works or not) with a sample of input and the output you would like.
Jump to PostOh boy,
This may be a long winded post.First off, I would love to know a little more about you personally. Such as: how long have you been programming; how long in python; is this program for school, personal, or other; what are your goals for this program? Of …
Jump to PostOkay,
If you want help on the GUI, I use wxPython (based on wxWidgets), so that's most of what I know GUI-wise. But there are other people here who can help you with Tkinter (I assume you're using based on original post).If you have a specific question, just post …
Jump to PostYou set filename at line 26, but you are not using it for anything.
All 15 Replies
woooee
814
Nearly a Posting Maven
Varunkrishna
0
Junior Poster in Training
WolfShield
32
Posting Whiz in Training
Varunkrishna
0
Junior Poster in Training
WolfShield
32
Posting Whiz in Training
Varunkrishna
0
Junior Poster in Training
TrustyTony
888
pyMod
Team Colleague
Featured Poster
woooee
814
Nearly a Posting Maven
Varunkrishna
0
Junior Poster in Training
woooee
814
Nearly a Posting Maven
Varunkrishna
0
Junior Poster in Training
Varunkrishna
0
Junior Poster in Training
WolfShield
32
Posting Whiz in Training
Varunkrishna
0
Junior Poster in Training
woooee
814
Nearly a Posting Maven
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.