First I have to tell you guys this is a self teaching excercise, a hobby and always will be a hobby. Having said that I like things to be right.
The responses I have from you four are pretty deep but interesting, if I take it one piece at a time.
snippsat you are absolutely right, the code I have been using is old, it is a problem with python because it has been around for a long time and python has evolved considerably. The example I am working from is at least 7 years old but it is one of the few I was able to google for my purpose.
deanhystad was the first to mention super() which is something else I want to get my head around but the example did not work with my code, the example of super from sippsat did, that made me happy but I still need to find out what the subtle difference is. The error I got at first was 'ClassName' has no attribute 'tk'. At the moment I have left the super().__init__(master ...... in my widget class.
stevendaprano, I think you know my brain capacity, your post was easy for me to understand and I have yet to take the quiz at the end but be assured I will, and I also learnt about unpacking a little.
Maybe *args and **kwargs are not as important in this moment of time as I thought but you guys have certainly highlighted the use of super.
ty
Jeff
The responses I have from you four are pretty deep but interesting, if I take it one piece at a time.
snippsat you are absolutely right, the code I have been using is old, it is a problem with python because it has been around for a long time and python has evolved considerably. The example I am working from is at least 7 years old but it is one of the few I was able to google for my purpose.
deanhystad was the first to mention super() which is something else I want to get my head around but the example did not work with my code, the example of super from sippsat did, that made me happy but I still need to find out what the subtle difference is. The error I got at first was 'ClassName' has no attribute 'tk'. At the moment I have left the super().__init__(master ...... in my widget class.
stevendaprano, I think you know my brain capacity, your post was easy for me to understand and I have yet to take the quiz at the end but be assured I will, and I also learnt about unpacking a little.
Maybe *args and **kwargs are not as important in this moment of time as I thought but you guys have certainly highlighted the use of super.
ty
Jeff