Not seeing error; experienced eyes needed

Addison Elliott addison.elliott at
Thu Apr 22 00:37:24 BST 2021

Sorry, in addition to dedenting the methods, make sure to move them below
the other logic in the init function. So, in your case, you'll want to move
them after the "" line.

If you don't want them to be class methods, then you can remove the "self"
argument from the functions and reference the functions as "save" and
"cancel" rather than "" and "self.cancel".

On Wed, Apr 21, 2021 at 6:35 PM Addison Elliott <addison.elliott at>

> Your save and cancel methods are local functions defined in the
> constructor (__init__). They are *not* class methods.
> Dedent those methods (and their bodies) back once and it should work.
> In Python, indentation matters.
> On Wed, Apr 21, 2021 at 6:33 PM Rich Shepard <rshepard at>
> wrote:
>> On Wed, 21 Apr 2021, Rich Shepard wrote:
>> Code attached.
>> Mea culpa!
>> Rich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the PyQt mailing list