[PyQt] A error in the examples??

Phil Thompson phil at riverbankcomputing.com
Wed Aug 14 10:24:49 BST 2013


On Wed, 14 Aug 2013 16:48:12 +0800, "levinie" <levinie at qq.com> wrote:
> The examples is really great, it tell me how to use PyQt5.When i run the

> examples/layouts/flowlayout.py, it throw a exception ,as follow.
> 
> 
>     size += QSize(2 * self.margin(), 2 * self.margin())
> AttributeError: 'Flow_Layout' object has no attribute 'margin'.
> 
> 
> 
> Same error is in borderlayout.py, and basiclayouts.py is OK.

Already fixed in the current snapshot.

Phil


More information about the PyQt mailing list