Not seeing error; experienced eyes needed
addison.elliott at gmail.com
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 "self.show()" 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 "self.save" and "self.cancel".
On Wed, Apr 21, 2021 at 6:35 PM Addison Elliott <addison.elliott at gmail.com>
> 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 appl-ecosys.com>
>> On Wed, 21 Apr 2021, Rich Shepard wrote:
>> Code attached.
>> Mea culpa!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PyQt