User Profile

Collapse

Profile Sidebar

Collapse
wildjack
wildjack
Last Activity: Aug 31 '07, 12:14 PM
Joined: Jul 10 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • wildjack
    replied to A couple of questions on OGL
    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."""
    ...
    See more | Go to post
    Last edited by bartonc; Jul 15 '07, 07:18 PM. Reason: Added [CODE=python][/CODE] tags.

    Leave a comment:


  • wildjack
    replied to A couple of questions on OGL
    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...
    See more | Go to post

    Leave a comment:


  • wildjack
    replied to What is your OS and Python Version
    I'm using WinXP Pro SP2 and Python 2.5. In addition, I use wxPython2.8 and BoaConstructor 0.6.0 as IDE.

    - Wildjack...
    See more | Go to post

    Leave a comment:


  • wildjack
    started a topic A couple of questions on OGL

    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...
    See more | Go to post
No activity results to display
Show More
Working...