Coder Social home page Coder Social logo

discordo-bustero's People

Contributors

lolipain avatar

Watchers

 avatar

discordo-bustero's Issues

`user_data` overrides with colorama bytes

Resulting data contains visual-used bytes of colorama strings

From the first_launch.py scenario in initial_setup() starting at https://github.com/P2LOVE/discordo-bustero/blob/4f775e45fc9f86ef96756940eb3e04d2cfa4159d/first_launch.py#L67 including https://github.com/P2LOVE/discordo-bustero/blob/4f775e45fc9f86ef96756940eb3e04d2cfa4159d/first_launch.py#L69-L75 Causes append colorama bytes in user_data dict, generally unexpected

Debugging:

Overall, edit_param function uses select_param and unselect_param, which including TerminalUIScreen.get_text() function, same in s.append(ps.get_text(user_data))

That's partially clarify situation and helps to figure out reason of issue:

All of them refer to ParamUIElement.get_text() where we can see
https://github.com/P2LOVE/discordo-bustero/blob/4f775e45fc9f86ef96756940eb3e04d2cfa4159d/discordo/tui/params.py#L21-L22

And for some reason modifying the elem_data method param applies to root user_data dict

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.