Apr-17-2019, 06:47 PM
Esteemed Forum Participants and Lurkers:
========================================
Python 3.5.2 (Linux Mint 18.3 Mate 64-bit) Tk 8.6.5 IDLE 3.5.2
I am NOT a software developer, but I have been a hobyist/hacker since I first had unlimited access to a Bendix G15 (vacuum tube!) computer a "few" years ago.
I am trying to create an app with tkinter that involves a primitve level of 'animation' in a tkinter widget main window. So far I can create a grid array (a List) of single-character tk.Labels and operate on them to change foreground and background colors, bold/normal style, text cursor, and text (by variable reference), all using the {label}.config() widget option, as shown in the following example:
I have been searching for hours, and have come up with some very interesting web sites, but no help on "config by name". Thank you for any and all comments, suggestions, and assistance in this effort.
Blessings in abundance, all the best, & ENJOY!
Art in Carlisle, PA USA
Confucius c. 500 BC: Love of knowledge (Python tkinter) without the love of learning (interminable searching) falls into presumption (and abject frustration).
========================================
Python 3.5.2 (Linux Mint 18.3 Mate 64-bit) Tk 8.6.5 IDLE 3.5.2
I am NOT a software developer, but I have been a hobyist/hacker since I first had unlimited access to a Bendix G15 (vacuum tube!) computer a "few" years ago.
I am trying to create an app with tkinter that involves a primitve level of 'animation' in a tkinter widget main window. So far I can create a grid array (a List) of single-character tk.Labels and operate on them to change foreground and background colors, bold/normal style, text cursor, and text (by variable reference), all using the {label}.config() widget option, as shown in the following example:
cBox[n].config(font=("Liberation Mono", 20, "bold"), fg="red3", bg="pink")I have about 10 different 'styles' of Labels. I have found docs on how to change the font by variable reference, but is there any way to define a full ".config()" and reference the various configs by a defined name?
I have been searching for hours, and have come up with some very interesting web sites, but no help on "config by name". Thank you for any and all comments, suggestions, and assistance in this effort.
Blessings in abundance, all the best, & ENJOY!
Art in Carlisle, PA USA
Confucius c. 500 BC: Love of knowledge (Python tkinter) without the love of learning (interminable searching) falls into presumption (and abject frustration).