yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #12340
Re: [Question #274036]: I can't open Inspector in Ubuntu 15.10 with yadedaily.
Question #274036 on Yade changed:
https://answers.launchpad.net/yade/+question/274036
Mark S. Bentley proposed the following answer:
It looks like setMargin was deprecated and one now uses setContentsMargin (see http://doc.qt.io/qt-5/qlayout.html#setContentsMargins). I got the inspector working by replacing setMargin with setContentsMargins - but instead of a single value, you have to provide the left, top, right, and bottom.
e.g. if you replace
grid.setMargin(0)
with
grid.setContentsMargins(0,0,0,0)
and so on, it seems to work OK (this is with PyQt5 on ubuntu 15.10).
--
You received this question notification because your team yade-users is
an answer contact for Yade.