2007-12-08, 19:52
Is it possible to center text when adding a label? I am trying to modify a script and I want the text centered on the control label. Is there an easy way to do that? Here is what I have right now and I would like it centered:
As you can see, it is from the called ID script. I want to center the name and number instead of just showing the name left aligned. Any ideas?
J_K_M_A_N
Code:
self.callerid = xbmcgui.ControlLabel(w - 280, h - 60, 180, 64, number, 'font13', '0xffffffff')
self.addControl(self.callerid)
As you can see, it is from the called ID script. I want to center the name and number instead of just showing the name left aligned. Any ideas?
J_K_M_A_N