from telescope import LST
from windows import TelescopeEventView
import tkinter as tk
import numpy as np

lst = LST(position_x=0, position_y=0, telescope_id=0)

root = tk.Tk()
viewer1 = TelescopeEventView(root, lst, np.random.normal(size=lst.n_pixel))
viewer2 = TelescopeEventView(root, lst, np.random.normal(size=lst.n_pixel))
viewer1.pack(side=tk.LEFT, expand=True, fill=tk.BOTH)
viewer2.pack(side=tk.LEFT, expand=True, fill=tk.BOTH)
root.mainloop()

@@ -83,180 +83,486 @@
  tk%0A
-import numpy as np%0A%0Alst = LST(position_x=0, position_y=0, telescope_id=0)%0A%0Aroot = tk.Tk()%0Aviewer1 = TelescopeEventView(root, lst, np.random.normal(size=lst.n_pixel)
+from itertools import cycle%0Aimport numpy as np%0A%0A%0Adef update_next(event):%0A    viewer = next(viewers)%0A    viewer.data = np.random.normal(size=lst.n_pixel)%0A%0A%0Alst = LST(position_x=0, position_y=0, telescope_id=0)%0A%0Aroot = tk.Tk()%0Atop = tk.Frame(root)%0Abottom = tk.Frame(root)%0A%0Aviewer1 = TelescopeEventView(top, lst)%0Aviewer2 = TelescopeEventView(top, lst)%0Aviewer3 = TelescopeEventView(top, lst)%0Aviewer4 = TelescopeEventView(bottom, lst)%0Aviewer5 = TelescopeEventView(bottom, lst
 )%0Aviewer
 2 = 
@@ -549,33 +549,33 @@
 tom, lst)%0Aviewer
-2
+6
  = TelescopeEven
@@ -584,61 +584,317 @@
 iew(
-root, lst, np.random.normal(size=lst.n_pixel)
+bottom, lst)%0A%0Aviewers = cycle(%5Bviewer1, viewer2, viewer3, viewer4, viewer5, viewer6%5D)%0A%0Aviewer1.pack(side=tk.LEFT, expand=True, fill=tk.BOTH)%0Aviewer2.pack(side=tk.LEFT, expand=True, fill=tk.BOTH)%0Aviewer3.pack(side=tk.LEFT, expand=True, fill=tk.BOTH)%0Aviewer4.pack(side=tk.LEFT, expand=True, fill=tk.BOTH
 )%0Aviewer
 1.pa
@@ -885,25 +885,25 @@
 BOTH)%0Aviewer
-1
+5
 .pack(side=t
@@ -935,33 +935,33 @@
 =tk.BOTH)%0Aviewer
-2
+6
 .pack(side=tk.LE
@@ -990,16 +990,154 @@
 tk.BOTH)
+%0A%0Aroot.bind('%3CKey%3E', update_next)%0A%0Atop.pack(side=tk.TOP, expand=True, fill=tk.BOTH)%0Abottom.pack(side=tk.BOTTOM, expand=True, fill=tk.BOTH)
 %0Aroot.ma

use new features in test_window