[wxPython-users] Scrolling text overlay
Mike Rooney
mxr at qvii.com
Tue Apr 3 13:25:06 PDT 2007
Andrea Gavana wrote:
> Hi Mike,
>
> On 4/3/07, Mike Rooney wrote:
>> What I need to do is figure out the pixel width of the text I am
>> scrolling, and if the textOffset == textWidth, stop the timer. Any idea
>> of how to do this? You will see my comment at the bottom of the onTimer
>> method in the attached runnable sample. Thanks for all your help so far!
>
> wx.MemoryDC (like all the other DCs I think), provides methods like:
>
> width, height = dc.GetTextExtent()
Thanks, this one works perfectly, and now my scrolled overlay text is
complete. Another task completed easily thanks to the power of python +
wxPython!
- Mike
More information about the wxpython-users
mailing list