Giter Site home page Giter Site logo

Comments (10)

PabloLec avatar PabloLec commented on June 8, 2024 1

Ok, root.set_widget_cycle_key(forward_cycle_key=py_cui.keys.KEY_TAB, reverse_cycle_key=None) helped me to reproduce the behavior.
That was indeed a bug, just pushed a PR to fix it 😉

from py_cui.

voryzen avatar voryzen commented on June 8, 2024 1

Awesome @PabloLec
Terrific work

Does this fix #121 ?

from py_cui.

PabloLec avatar PabloLec commented on June 8, 2024 1

Awesome @PabloLec Terrific work

Does this fix #121 ?

Yes indeed! I didn't see that issue. Good call, I'll add it in the PR.

from py_cui.

PabloLec avatar PabloLec commented on June 8, 2024

I can't reproduce this behavior.
Using v0.1.4 I can use the example scripts without any exception.

Could you also paste the error type? You just provided the traceback.
And do you have any code to be tested? In order to reproduce the error.

from py_cui.

voryzen avatar voryzen commented on June 8, 2024

the only error output I get is:
KeyError: 5

I am getting this error, when I run my own local program that I'm building with py_cui.

Its local code, not a program installed with pip

I set a cycle widget key in my program, maybe that's where it is coming from.
aka.
root.set_widget_cycle_key(forward_cycle_key=py_cui.keys.KEY_TAB, reverse_cycle_key=None)

from py_cui.

voryzen avatar voryzen commented on June 8, 2024

Thanks.

What about #116 ?

It may not be fixed, but it's certainly related

from py_cui.

PabloLec avatar PabloLec commented on June 8, 2024

Thanks.

What about #116 ?

It may not be fixed, but it certainly related

Not this one 😄
This one should be closed by the way as it was resolved by #125
When cycling through widgets, status_bar get refreshed at some point which is expected behavior. Here, the user set status_bar to None in order to hide it. That caused an exception obviously.
#125 introduced two new methods for status_bar, .show() and .hide() which will avoid the need to unset it. So now I guess raising an exception when status_bar is None is acceptable as there is no reason it should be.

from py_cui.

voryzen avatar voryzen commented on June 8, 2024

Ahh, right.
Thanks for the info. It is helpful; I haven't coded with python before now

from py_cui.

PabloLec avatar PabloLec commented on June 8, 2024

Great to begin with a TUI 😃 I also created my first open-source Python project that way.

from py_cui.

voryzen avatar voryzen commented on June 8, 2024

That's cool.

I'm almost finished my first iteration with this project.
I just need to work out how to 'turn off' the CUI temporarily, and I'll be able to finish it and push.

I won't say much more here, I'm trying not to hijack the thread

from py_cui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.