I noticed that the Tk's option-value are translated in Tkinter in two forms: Tk -----------: option value Python 1st form: option = tkinter.VALUE 2nd form: option = 'value' The 2nd form is closer to Tk's syntax but when it was introduced in Tkinter because it is the 1st syntax which I found in book.
Are you asking a question, or just mentioning an observation. Personally I find the use of tkinter constants a bit silly. I see no point in using something like tkinter.END instead of "end". I always recommend that people learn to use the string form rather than the constant. On Wed, Nov 22, 2017 at 3:03 PM, adil gourinda <rikudou__sennin@live.com> wrote:
I noticed that the Tk's option-value are translated in Tkinter in two forms: Tk -----------: option value Python 1st form: option = tkinter.VALUE 2nd form: option = 'value' The 2nd form is closer to Tk's syntax but when it was introduced in Tkinter because it is the 1st syntax which I found in book.
_______________________________________________ Tkinter-discuss mailing list Tkinter-discuss@python.org https://mail.python.org/mailman/listinfo/tkinter-discuss
On Wed, 22 Nov 2017 22:19:29 -0600 Bryan Oakley <bryan.oakley@gmail.com> wrote:
Personally I find the use of tkinter constants a bit silly. I see no point in using something like tkinter.END instead of "end". I always recommend that people learn to use the string form rather than the constant.
+1 :) Regards Michael .-.. .. ...- . .-.. --- -. --. .- -. -.. .--. .-. --- ... .--. . .-. Genius doesn't work on an assembly line basis. You can't simply say, "Today I will be brilliant." -- Kirk, "The Ultimate Computer", stardate 4731.3
participants (3)
-
adil gourinda -
Bryan Oakley -
Michael Lange