[Tutor] method could be a function warning

Cameron Simpson cs at cskk.id.au
Wed Dec 22 23:11:03 EST 2021


On 23Dec2021 15:07, Phil <phillor9 at gmail.com> wrote:
>Dummy(), not it's real name, doesn't access anything from the gui 
>class. It's used as a helper function, and it's called by several 
>methods that do access a gui widget. So I suppose, based on what you 
>have said, I should us the @staticmethod and leave it at that.

If it is conceptually for the purposes of the class, then yes.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Tutor mailing list