Hello!
Can I write more than one text in a shape? and can I put where the text will show?
Diego
Hello!
Can I write more than one text in a shape? and can I put where the text will show?
Diego
Robin Dunn wrote:
Diego Galho Prestes wrote:
Ok, I used the wxCompositeShape to link the Polygon with TextShapes but if I move my object the text dont move together. Can I do this? I will put the code of my composite here.
I expect that instead of moving the polygon you should actually move the composite shape. Do you do this?
Yeah, im moving the polygon. The problem is that I cant change the composite.Select() method of the shape to select this, so I move the polygon when I click in him. Can I have a way to select this shape? I think that if I can use this method then the shape will move right.
Im using the method OnLeftClick like the demo program.
Diego
Diego Galho Prestes wrote:
Robin Dunn wrote:
Diego Galho Prestes wrote:
Ok, I used the wxCompositeShape to link the Polygon with TextShapes but if I move my object the text dont move together. Can I do this? I will put the code of my composite here.
I expect that instead of moving the polygon you should actually move the composite shape. Do you do this?
Yeah, im moving the polygon. The problem is that I cant change the composite.Select() method of the shape to select this, so I move the polygon when I click in him. Can I have a way to select this shape? I think that if I can use this method then the shape will move right.
Im using the method OnLeftClick like the demo program.
Are you using it for the polygon or for the composite?
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
Robin Dunn wrote:
Diego Galho Prestes wrote:
Robin Dunn wrote:
Diego Galho Prestes wrote:
Ok, I used the wxCompositeShape to link the Polygon with TextShapes but if I move my object the text dont move together. Can I do this? I will put the code of my composite here.
I expect that instead of moving the polygon you should actually move the composite shape. Do you do this?
Yeah, im moving the polygon. The problem is that I cant change the composite.Select() method of the shape to select this, so I move the polygon when I click in him. Can I have a way to select this shape? I think that if I can use this method then the shape will move right.
Im using the method OnLeftClick like the demo program.Are you using it for the polygon or for the composite?
I tryed to use for the composite, it have a selection around the composite but I cant move the object, I can only move the polygon. I will try to make a example and send to list again.
Diego
Diego Galho Prestes wrote:
Robin Dunn wrote:
Diego Galho Prestes wrote:
Robin Dunn wrote:
Diego Galho Prestes wrote:
Ok, I used the wxCompositeShape to link the Polygon with TextShapes but if I move my object the text dont move together. Can I do this? I will put the code of my composite here.
I expect that instead of moving the polygon you should actually move the composite shape. Do you do this?
Yeah, im moving the polygon. The problem is that I cant change the composite.Select() method of the shape to select this, so I move the polygon when I click in him. Can I have a way to select this shape? I think that if I can use this method then the shape will move right.
Im using the method OnLeftClick like the demo program.Are you using it for the polygon or for the composite?
I tryed to use for the composite, it have a selection around the composite but I cant move the object, I can only move the polygon. I will try to make a example and send to list again.
Diego
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org
Im sending attached an example of my shape, and now is easier to understand the problem. Try to move the object for example. The shape has two points to be write a text and it dont show without moving the shape too.
Diego
test.py (3.58 KB)