Not seeing error; experienced eyes needed
Addison Elliott
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>
wrote:
> 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>
> wrote:
>
>> On Wed, 21 Apr 2021, Rich Shepard wrote:
>>
>> Code attached.
>>
>> Mea culpa!
>>
>> Rich
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20210421/644a4e7c/attachment.htm>
More information about the PyQt
mailing list