Python Forum
Does anyone have unicurses panel functions working on a Windows 10 platform? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Does anyone have unicurses panel functions working on a Windows 10 platform? (/thread-30185.html)



Does anyone have unicurses panel functions working on a Windows 10 platform? - pjfarley3 - Oct-11-2020

I have been trying to get unicurses panel functions working on my Windows 10 machine, but without much success.

I am running a Win 10 V2004 system, current on maintenance.  Python is 3.8.5.  I DL'ed PDCurses 3.9 and compiled it in an X64 native CLI environment and all of the PDCurses test programs (C programs all) succeed and do what they are intended to do.

Most of the demo scripts that come with unicurses work, except the panel tests.  The test_panels_basic.py script for instance fails with this error:
Traceback (most recent call last):
  File "C:\Users\<obfuscated>\unicurses\demos\test_panels_basic.py", line 26, in <module>
    top_panel(my_panels[1])
  File "C:\Python38\lib\site-packages\unicurses.py", line 2413, in top_panel
    return pdlib.top_panel(pan_id)
OSError: exception: access violation writing 0x00000000036673B0
I haven't got the knowledge or experience to set up VS2019 (community edition) to debug the DLL and/or the python ctypes interface to pdcurses.dll to see why and where things are going wrong.

If anyone has this (or at least some recent) combination of software versions actually working on a Windows 10 system where the panel tests work correctly, I would appreciate any tips or advice you can offer to help me get it working cleanly.

If no one else has this combination of software versions working together, then any advice you can offer on how to set up a VS2019 debugging session to see what goes wrong and where would also be appreciated.  I am well versed enough in C language programming to try to fix the problem if I can find out what and where the problem really is.

Peter