ArsThaumaturgis/TabbedFrame

"tab_scale" isn't necessarily a float.

Closed this issue · 1 comments

Copied from report on Panda forum:

ust one small bug (or misunderstanding by me), you assume that tab_scale is a float, or it could be a vector if the screen does not have the same scaling for X and Y. Usually DirectGui objects use a three components tuple for their scale (X, 1, Y). Using a tuple cause the following line to crash

pos = (bounds[0] + pageIndex*width*buttonScale, 0, bounds[3])

This should be fixed in 0c981bb, I believe.