Re: Are there Python modules that allow a program to write to the screen?

2021-04-26 Thread Grant Edwards
On 2021-04-26, Stephen Tucker  wrote:

> I have old software written in GWBASIC that I use to plot diagrams on the
> screen.

Pygame is probably the closest thing to what you're describing. If you
want to produce professional looking plots from data, then matplotlib
or one of the Gnuplot wrappers (pyGnuplot, py-gnuplot, Gnuplot.py) are
the most obvious choices.

--
Grant


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Are there Python modules that allow a program to write to the screen?

2021-04-26 Thread Michael Torrie
On 4/26/21 12:38 AM, Stephen Tucker wrote:
> Hi,
> 
> I have old software written in GWBASIC that I use to plot diagrams on the
> screen.
> 
> In Windows 10, I have to resort to using the DOSBox emulator to run it.
> 
> I would dearly like to re-write it in Python - ideally Python 2.7.
> 
> What, if anything, is available?
> 
> Stephen Tucker.
> 

Probably this is off-topic for me to say on a Python list, but why not
see if you can compile your GWBASIC program in FreeBASIC[1].  It
supports all graphics commands and screen modes of yesterday and can do
them in a window on modern operating systems.

As for Python, you may find that something like SDL or PyGame provides
primitives that are not far off of what you had in GWBASIC all those
years ago.  As ChrisA has said, Python 2.7 is *not* recommended for any
new projects.

[1] https://www.freebasic.net/
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Are there Python modules that allow a program to write to the screen?

2021-04-26 Thread Chris Angelico
On Mon, Apr 26, 2021 at 4:40 PM Stephen Tucker  wrote:
>
> Hi,
>
> I have old software written in GWBASIC that I use to plot diagrams on the
> screen.
>
> In Windows 10, I have to resort to using the DOSBox emulator to run it.
>

"The screen" isn't really a viable target in a modern world, so it
depends heavily on what you're trying to do. Plotting diagrams sounds
like you might want matplotlib?

> I would dearly like to re-write it in Python - ideally Python 2.7.
>
> What, if anything, is available?
>

Try Python 3 instead - don't go for something that's already reached
the end of its life.

There are quite a few libraries available, but my first guess would be
matplotlib; and if you want something really fancy, manim can do
incredible things.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Are there Python modules that allow a program to write to the screen?

2021-04-26 Thread Stephen Tucker
Hi,

I have old software written in GWBASIC that I use to plot diagrams on the
screen.

In Windows 10, I have to resort to using the DOSBox emulator to run it.

I would dearly like to re-write it in Python - ideally Python 2.7.

What, if anything, is available?

Stephen Tucker.
-- 
https://mail.python.org/mailman/listinfo/python-list