|  | displaying my randomly selected numbers in a colorful inter |  | |
| | | Goksie Aruna |  |
| Posted: Tue Aug 19, 2008 4:02 am Post subject: displaying my randomly selected numbers in a colorful inter |  |
dear all,
i have arrays of number of size lets say 4000 i.e. 201000..2013999
now i want to do the following.
first print all the numbers to a colorful console. be it wx, tk, or web based.
then pick a winning number from the range which will now be printed at the center of the page.
how can i achieve this?
goksie |
| |
| | | Mike Driscoll |  |
| Posted: Tue Aug 19, 2008 7:21 pm Post subject: Re: displaying my randomly selected numbers in a colorful in |  |
On Aug 19, 1:02 am, Goksie Aruna <pykl...@gmail.com> wrote:
| Quote: | dear all,
i have arrays of number of size lets say 4000 i.e. 201000..2013999
now i want to do the following.
first print all the numbers to a colorful console. be it wx, tk, or web based.
then pick a winning number from the range which will now be printed at the center of the page.
how can i achieve this?
goksie
|
I would recommend learning wx, tk, pyGTK, or HTML/CSS. If you go with wxPython, there are many pre-built widgets that can display colored text, including HTML. Some of them use Scintilla. I would look especially at wx.RichTextCtrl, wx.StyledTextCtrl, FancyText or wx.HtmlWindow. There's a demo you can download to check these out here: LINK
Mike |
| |
| | | Goksie Aruna |  |
| Posted: Tue Aug 19, 2008 7:47 pm Post subject: Re: displaying my randomly selected numbers in a colorful in |  |
Mike Driscoll wrote:
| Quote: | On Aug 19, 1:02 am, Goksie Aruna <pykl...@gmail.com> wrote:
dear all,
i have arrays of number of size lets say 4000 i.e. 201000..2013999
now i want to do the following.
first print all the numbers to a colorful console. be it wx, tk, or web based.
then pick a winning number from the range which will now be printed at the center of the page.
how can i achieve this?
goksie
I would recommend learning wx, tk, pyGTK, or HTML/CSS. If you go with wxPython, there are many pre-built widgets that can display colored text, including HTML. Some of them use Scintilla. I would look especially at wx.RichTextCtrl, wx.StyledTextCtrl, FancyText or wx.HtmlWindow. There's a demo you can download to check these out here: LINK
Mike -- LINK
|
Thanks.. I will give it a try and revert.
goksie |
| |
|
|