TutorialDoctor
Dec 03, 2014 - 05:18
I am working with the UI module, and I came across an issue where view.center wasn't giving me the center of the view. Some created my own function for getting the center of the view as a tuple.
They return different values.
def Get_Center(frame):
center = (frame.width/2,frame.height/2)
return center
print customView.center
print Get_Center(customView)
My function made the UI control go to the center.
Any ideas what is happening?