grid item set size

320 views
Skip to first unread message

Mathew Schwartz

unread,
May 23, 2013, 9:03:59 AM5/23/13
to pyqt...@googlegroups.com
I am trying to change the size of my 3d grid but have no success.  I found the GLGridItem setSize in the docs.  When I use the examples, say volumetric, i have tried:

g = gl.GLGridItem()

g.scale(10, 10, 1)

g.setSize(100,100,100)

w.addItem(g)


but nothing happens and no error.


Am I missing something?


Thanks

Luke Campagnola

unread,
May 23, 2013, 10:48:10 AM5/23/13
to pyqt...@googlegroups.com
On Thu, May 23, 2013 at 9:03 AM, Mathew Schwartz <umc...@gmail.com> wrote:
I am trying to change the size of my 3d grid but have no success.  I found the GLGridItem setSize in the docs.  When I use the examples, say volumetric, i have tried:

g = gl.GLGridItem()

g.scale(10, 10, 1)

g.setSize(100,100,100)

w.addItem(g)


GridItem.setSize is not implemented correctly. For now, you can use scale to achieve the same effect. 
Thanks for reporting this; it'll be fixed in the next release.

Luke

Reply all
Reply to author
Forward
0 new messages