in reply to What to do with my "Tk entry command-history" function

The other replies showed how to convert your code to a module, but you also asked
Where should I start researching this?
There is a section of the Monastery devoted to Tutorials. Have a look there, but here is a short list of pointers:
  • Comment on Re: What to do with my "Tk entry command-history" function