Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing code with py_cui yields no results on my terminal (cmd) on my windows 11 platform #185

Open
aikia-code opened this issue Feb 3, 2024 · 2 comments
Labels
Bug Something isn't working

Comments

@aikia-code
Copy link

aikia-code commented Feb 3, 2024

Describe the bug
using py_cui on my environment doesn't work

referenced from jwlodek/py_cui_2048#4 (comment)

My issue is py_cui is not running in my terminal cmd. I tried the hello_py_cui example it just doesn't display as expected

image

I run the example in the terminal python experiments/cui.py

but it yields no display as it should in the terminal

image

To Reproduce
Steps to reproduce the behavior:

  1. Install py_cui lib
  2. load up hello world example
"""The most basic possible use case for py_cui

@author:    Jakub Wlodek
@created:   12-Aug-2019
"""

# Import the lib
import py_cui

# create the CUI object. Will have a 3 by 3 grid with indexes from 0,0 to 2,2
root = py_cui.PyCUI(3, 3)

# Add a label to the center of the CUI in the 1,1 grid position
root.add_label("Hello py_cui!!!", 1, 1)

# Start/Render the CUI
root.start()
  1. execute code

python <source_file>

  1. produces no display

Expected behavior
a cui display with the label "Hello py_cui!!!"

Screenshots

Environment

  • OS: [Windows 11]
  • Terminal: [cmd]
  • Version: [v0.1.6]
@aikia-code aikia-code added the Bug Something isn't working label Feb 3, 2024
@jwlodek
Copy link
Owner

jwlodek commented Feb 9, 2024

image

I don't have a Windows 11 system, but at least on windows 10 I can't seem to. Do you have a Windows 10 system to try this on?

I do see some logged messages that I wouldn't expect, would need to investigate that:

E:\ProgrammingWorkspace\py_cui>python examples\hello_py_cui.py 
Missing selected widget: Function _handle_key_presses in __init__.py:1214
 Missing selected widget: Function _handle_key_presses in __init__.py:1214 

E:\ProgrammingWorkspace\py_cui>python examples\hello_py_cui.py
 Missing selected widget: Function _handle_key_presses in __init__.py:1214

@aikia-code
Copy link
Author

I have a window 10 device I will test it on there and see the results

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants