GUI: AttributeErrors when coloring by tag
Hi ASE community!
When I load an ASE structure with tags into ase-GUI and directly color atoms by tag (hotkey C -> "By tag"), I often get the following two AttributeErrors:
Exception in Tkinter callback
Traceback (most recent call last):
File "/home/kristjan/opt/anaconda3/lib/python3.7/tkinter/__init__.py", line 1705, in __call__
return self.func(*args)
File "/home/kristjan/opt/anaconda3/lib/python3.7/site-packages/ase/gui/ui.py", line 540, in handle
callback(event)
File "/home/kristjan/opt/anaconda3/lib/python3.7/site-packages/ase/gui/view.py", line 629, in move
x0, y0 = self.xy
AttributeError: 'GUI' object has no attribute 'xy'
Exception in Tkinter callback
Traceback (most recent call last):
File "/home/kristjan/opt/anaconda3/lib/python3.7/tkinter/__init__.py", line 1705, in __call__
return self.func(*args)
File "/home/kristjan/opt/anaconda3/lib/python3.7/site-packages/ase/gui/ui.py", line 540, in handle
callback(event)
File "/home/kristjan/opt/anaconda3/lib/python3.7/site-packages/ase/gui/view.py", line 572, in release
if event.time < self.t0 + 200: # 200 ms
AttributeError: 'GUI' object has no attribute 't0'
This seems to only happen if I change the color as the first interaction with the GUI editor (no clicks/selections) and only when it's done almost immediately after opening the GUI (if I wait some seconds, this doesn't occur).
ase version: 3.21.1
Problem is illustrated also in the following image: