[wxPython-users] is there an example of a "widget" that reads a file onto it?

C M cmpython at gmail.com
Sun Mar 2 02:03:57 PST 2008


On Sun, Mar 2, 2008 at 4:28 AM, Gary Kline <kline at thought.org> wrote:

>
>        Hello All,
>
>        Python is the most exciting language I've come across
>        in years.  Most "throw-away" stuff I write these days is
>        for the CLI; but I've decided to write an app that requires
>        a screen/widget [ say] 200 x 500 pixels.  I need some help
>        getting going.   I want to read from a text file and print
>        the strings across the widget.   Scrolling the words would
>        work; so would flashing them several at a time.
>
>        I've searched for something to build on, but not with too much
>        success, so any help: pointers, URL's, or feedback would be
>        much appreciated.
>
>        thanks,
>
>        gary kline
>
>
> --
>  Gary Kline  kline at thought.org   www.thought.org  Public Service Unix
>        http://jottings.thought.org   http://transfinite.thought.org
>
>
Have you seen the ticker in the demo?  Sounds like that might do it for
scrolling text.  It uses a textCtrl.  You can just read a text file in the
normal Python way, and set what text you want as the value of the textCtrl,
and use that textCtrl in the ticker.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200803=
02/a2c0192e/attachment.htm


More information about the wxpython-users mailing list