Ok, finally I figured out a way to solve the transparent bg problem for text in lineshapes:
* First we create our own line class inheriting from LineShape.
* Then we override the DrawRegion method, and we comment out the line marked with *** like this:
[CODE=python]
def DrawRegion(self , dc, region, x, y):
"""Format one region at this position."""
...
User Profile
Collapse
-
-
Hi Barton,
Although I have previous experience with other languages, I'm new to Python (only a few weeks developing things). I began by installing 0.4.4 to give it a try and started developing this graph editor I commented before. I really liked the IDE, so I checked out 0.6.0 from sourceforge CVS and kept on developing with it. The switch was almost seamless. There was some deprecated stuff in the generated code which wouldn't work...Leave a comment:
-
I'm using WinXP Pro SP2 and Python 2.5. In addition, I use wxPython2.8 and BoaConstructor 0.6.0 as IDE.
- Wildjack...Leave a comment:
-
A couple of questions on OGL
Hi everybody,
I am developing a little graph editor using python 2.5 and wx 2.8. Whenever I try to add text to a line shape I get a big rectangle on the background which covers the shapes. Is there a way to render the text on a transparent background? I googled and found the same question in several places, but no answers :)
The second thing is: If I am drawing a lineshape as an spline, control points are fixed. Is there...
No activity results to display
Show More
Leave a comment: