Apr-29-2017, 04:49 PM
(Apr-29-2017, 01:10 PM)nieselfriem Wrote:The type of the first parameter is expected to beTypeError: getSaveFileName(parent: QWidget = None, .....): argument 1 has unexpected type 'CreateReport_Dialog'
QWidget
, you pass self
- which inherits from object
As far as I remember - no PyQt in 2 years -, in many cases it allows
None
as a parent argument, but if it is not None
- it must inherit from QWidget
Test everything in a Python shell (iPython, Azure Notebook, etc.)
- Someone gave you an advice you liked? Test it - maybe the advice was actually bad.
- Someone gave you an advice you think is bad? Test it before arguing - maybe it was good.
- You posted a claim that something you did not test works? Be prepared to eat your hat.