Sep-20-2019, 07:27 AM
(Sep-17-2019, 10:11 PM)snippsat Wrote: I did post this,soI'm so thick ... I'm so thick ... I'm so thick ... I'm so thick ... I'm so thick ... I'm so thick ... I'm so thick ... I'm so thick ...term.py
is just name i used for your code that i run in cmder
[quote="snippsat" pid="91773" dateline="1568737421"]Test term.py is your latest code.
I don't know why, but I thought
term.py
was some kind of test program, not the code I had attached!!!I don't know what I was doing or where I was doing it, because as I had posted previously, the pip installation for colorama and for termcolor was successful on both cases. Finally, I have managed to make both of them work, but they don't fulfill my expectations ...
I wanted something like here, with the so-called HTML-like tags, very straightforward and easy.
Incidentally, I've been learning many little pieces of many things through my investigation, but still I don't think I've found yet what I wanted.
Let's compare, for instance, the code we need to show something here in a post. We can modify the font, its size, colour or appearance, like bold, italic, or underline. If we want a word underlined, we just surround that word with the pair of tags [*u][*/u] (I just added the asterisks inside the tags to make the tags visible, as otherwise, we would see the characteristics applied, but not the tags), no need to even use the word 'underline', the same goes with bold [*b][*/b], or italic [*i][*/i]. Okay, so, if I wanted a string like 'I like python-forum... a lot!' with a bit of formatting like 'I like python-forum... a lot!', I just have to put 'python-forum' in the center of these paired-tags: [*color=#1ABC9C][*u][*b][*/b][*/u][*/color], and 'a lot!' surrounded by the pair of tags [*i][*/i]. What's more, I didn't even have to write those tags, but instead, I selected the piece of string that I wanted to be changed in style and then clicked on the options on the top of the reply box. That easy!!!
Well, that's oversimplifying the issue, as I guessed there must be a lot of code behind it, but once you run it, you just have to go to the reply box, write what you want and select the strings you want to be formatted, apply the characteristics you want, by just clicking on the icons of your desired characteristics and then, by clicking on the
Post Reply
button, you can see your strings formatted, once and again!If I want that same little sentence formatted with one of the programs available for Python, it would require a bit more effort.
λ python -V Python 3.7.2 λ pip -V pip 19.2.3 from c:\python37\lib\site-packages\pip (python 3.7)Thanks, nice tips to check versions!
All the best,
newbieAuggie2019
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs
"That's been one of my mantras - focus and simplicity. Simple can be harder than complex: You have to work hard to get your thinking clean to make it simple. But it's worth it in the end because once you get there, you can move mountains."
Steve Jobs