This may not be the correct group to post this to, but hopefully someone can guide me in the right direction. I've been writing my first Python program and GUI using Python 3.1.2 and Tkinter 8.5. It's a simple program that takes a list of component values and optimizes them to the nearest standard value. I've written a Python module StVaCon,py, that includes all of the necessary functions for the actual algorithm and I have that working.
What's giving me a hard time is the Tkinter GUI application. I can't get the bindings to work like they should, I'm 100% sure that most of my problem lies in the three functions of StandardValueConverterV1.py. This is the Python file I'm using to keep the GUI seperate from the main algorithm functions. The UI is pretty simple I use two buttons that use filedialog functions in order to obtain the path to the file that is going to be read, and the file that is going to be written to. I select what Standard Value series I want to use (E6, E12, etc.) and I type in a delimiter (all of the values are brought in scientific notation, I use the delimiter to seperate the coefficient from the exponent, I optimize the coefficient and then tack on the exponent to get the optimized value.).
Then I simply press the calculate(calc function in StandardValueConverter.py) button and I should get a (UTF-8) text file at the location I chose. None of the button functions are working properly and I think the problem has to do with the fact that I'm trying to use variables internal to the StandardValueConverter.py module.
I've uploaded both files, I've looked at a bunch of tutorials and I just can't seem to find the answer. I consider myself a pretty lousy programmer, so I ask for understanding in that I may be asking a silly question.
I appreciate any help in getting this resolved.
P.S Any tips on turning this into a stand alone application are would also be helpful.
Best Regards,
Jorge Garcia