After several months of absence, I come back on this topic.
In fact, I used frameSize on my declaration, but it seems that the frame goes on the left when I put text.
Let see the code
myFirstLabel=DirectLabel(parent=self.background,text="Nom :" + item.getName(),pos=(-0.15,0,-0.05),scale=.05,text_bg=(0.1,0.1,0.1,1),text_fg=(1,1,1,1),frameSize=(-1,10,-0.3,1.1),frameColor=(0.1,0.1,0.1,1)))
typeName=""
mySecondLabel=DirectLabel(parent=self.background,text="Prix a la vente :" + str(item.getSell()),pos=(-0.15,0,-0.25),scale=.05,text_bg=(0.1,0.1,0.1,1),text_fg=(1,1,1,1),frameSize=(-1,10,-0.3,1.1),frameColor=(0.1,0.1,0.1,1)))
The second Label is decaled on the left, because I think, the text is longer.
How can I avoid this?
Thanks