Output:
0
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1540, in __call__
return self.func(*args)
File "test.py", line 24, in print1
print self.Test1.get(self.Test1.curselection())
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2627, in get
return self.tk.call(self._w, 'get', first)
TclError: bad listbox index "": must be active, anchor, end, @x,y, or a number
10
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1540, in __call__
return self.func(*args)
File "test.py", line 26, in print2
print self.Test2.get(self.Test2.curselection())
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2627, in get
return self.tk.call(self._w, 'get', first)
TclError: bad listbox index "": must be active, anchor, end, @x,y, or a number
1
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1540, in __call__
return self.func(*args)
File "test.py", line 24, in print1
print self.Test1.get(self.Test1.curselection())
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2627, in get
return self.tk.call(self._w, 'get', first)
TclError: bad listbox index "": must be active, anchor, end, @x,y, or a number
11
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1540, in __call__
return self.func(*args)
File "test.py", line 26, in print2
print self.Test2.get(self.Test2.curselection())
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2627, in get
return self.tk.call(self._w, 'get', first)
TclError: bad listbox index "": must be active, anchor, end, @x,y, or a number
2
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1540, in __call__
return self.func(*args)
File "test.py", line 24, in print1
print self.Test1.get(self.Test1.curselection())
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2627, in get
return self.tk.call(self._w, 'get', first)
TclError: bad listbox index "": must be active, anchor, end, @x,y, or a number
12