Color Me Resurrected


  Stepping successively through each of my imported-from-Package_01 modules: A, B and C as well as within Main, I inserted test print statements with references to the Ansii dictionary I have stored in module A. The referencing included {v.Ansii['YELLOW'} as well as its shallow copy, {v.yy_}. It worked each time.

So basically I am resurrected to the point of having a color-coded welcome mat. The only strange thing is that the string (dot) center(width, fill_char) method is not providing the same per-character width as the lines above and below the middle print-out. (Result screen grab shown next:) Don't yet know why.


The WELCOME door mat is generated with 3 function calls, namely, a first line generator that prints the top asterisks (*'s) with the frame ID as a string item (it is not an integer); a second line generator that locates the middle message as having a specific frame type like "intro_" followed by the frame_id (e.g., "00") and further having a line ID (in my plan, one or more of the letters in the alphabetic sequence "a-z". The print() statement will include the center() method and will go inside a Python exec() command so that I can generate the message ID as being equal to (=) pre-fix + frame_ID + line_ID's as variables that are auto-generated. Then iterate to print one or a sequence of such middle lines. The bottom line of the mat is just astrisks is printed by a 3rd function. Still working on formulating the exec(print()) idea. It should work (fingers crossed)

Comments

Popular posts from this blog

Links for Python Noobs

The Learn HOW to Learn Page

Welcome to Circular Import Hell