Message383807
Greetings!
I just noticed:
>>> import tkinter as tk
>>> root = tk.Tk()
>>> str_0 = tk.StringVar()
>>> str_0.set("same value")
>>> str_1 = tk.StringVar()
>>> str_1.set("same value")
So:
>>> str_0.get() == str_1.get()
True
But:
>>> str_0 == str_1
False
So, maybe a Variable should be compared by value, and not by identity (._name) as currently? (please view attached) Does it make sense? |
|
Date |
User |
Action |
Args |
2020-12-26 15:06:16 | shippo_ | set | recipients:
+ shippo_, serhiy.storchaka, epaine |
2020-12-26 15:06:16 | shippo_ | set | messageid: <1608995176.07.0.806534213214.issue42750@roundup.psfhosted.org> |
2020-12-26 15:06:16 | shippo_ | link | issue42750 messages |
2020-12-26 15:06:15 | shippo_ | create | |
|