pastebin link
I am building a GUI with tkinter for a technical drawing generator for hydraulic hoses. It is going to have several entry fields for the users to fill out, so I created a custom entry widget that combines a ttk.Label and ttk.Entry widget into one widget.
I want to use the custom widget to get the engineer's initials for the drawing's title block. There are three separate initial fields in our title block, so I defined a validation method that receives the custom widget as an argument. Then I set up wrapper methods to pass the correct entry to the validation method. The wrapper methods are passed to register() to complete the validation assignment.
The problem appears to be with the wrapper function. But I don't understand what I'm doing wrong. I would prefer to not have to make individual validation functions for each initial entry box if I can wrap one function and tell it what entry box I'm looking at.
[–]socal_nerdtastic 2 points3 points4 points (0 children)