[PyQt] [dip] simple.py: 'QWidgetIViewAdapter' object has no attribute 'show'

Phil Thompson phil at riverbankcomputing.com
Sat Jul 1 15:40:18 BST 2017


On 30 Jun 2017, at 11:47 pm, James Stearns - NOAA Affiliate <james.stearns at noaa.gov> wrote:
> 
> My apologies if this is not the correct mail alias for dip questions or if the question has been asked and answered (I did look back three months in the archives).
> 
> I'm interested in dip.automate and tried running the example program, simple.py, from the automate tutorial, but received this error on ui.show():
> 
> 'QWidgetIViewAdapter' object has no attribute 'show'
> 
> I'm running PyQt 5.8.2 and installed dip 0.4.6 from your wheel binary.
> 
> What step did I overlook?

It's an out of date example.

To fix, change...

ui.show()

...to...

ui.visible = True

Phil


More information about the PyQt mailing list