#๐ im using curser module
48 messages ยท Page 1 of 1 (latest)
@soft storm
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
im using curser module and this is what shows up, didnt expect it like that. i might have done something wrong
i expect the menu to be under the ------- stuff and the ASCII not to be like that... and ofcourse the colors should be working
code snippet: https://pastebin.com/376yvHtK
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
python menu broken (no error)
Your only issue seems to be the miscalculation of the offset on line 71?
But, also, if you're starting from scratch I have to strongly recommend textual for anything with a lot of complex state and layout
I was wonderig how you read it that fast and then I noticed line 71 is a comment
but yeah, could be it
well
Or arent' supported by the windows terminal
what should i edit it to
You calculate the offset to be 6 and the UI definitely takes more than 6
But the position is what's broken
Because you put the wrong offset
It write on where you ask it to write
its me who opened this forum
๐
what should i put it as? if anyone can edit it and send here, would appreciate
idrk know that much lol
How many line it takes to display the Icon and stuff
And then just count how many line
@soft storm Do you see the ^[[35m and the ^[[94 in your screenshot?
yeah
Those are the color codes for a magenta foreground and blue-ish foreground, which your terminal isn't handling
how should i fix that??
By not using them (or use other renderer which idk would it support it
yeah and curser
also
all colors are working
except the banner
Your screenshot literally shows no colors ๐
That's not the same thing
You're mixing both curses and colorama
(Also, again, this is all infinitely easier with https://textual.textualize.io/ if there's no reason you have to use curses)
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.