def lasers(scope): from PYME.Acquire.Hardware import lasers scope.l488 = lasers.FakeLaser('l488', scope.cam, 1, initPower=10) scope.l488.register(scope) scope.l405 = lasers.FakeLaser('l405', scope.cam, 0, initPower=10) scope.l405.register(scope)
#InitGUI(''' #from PYME.Acquire.Hardware import ccdAdjPanel ##import wx ##f = wx.Frame(None) #snrPan = ccdAdjPanel.sizedCCDPanel(notebook1, scope, acf) #notebook1.AddPage(page=snrPan, select=False, caption='Image SNR') ##camPanels.append((snrPan, 'SNR etc ...')) ##f.Show() ##time1.WantNotification.append(snrPan.ccdPan.draw) #''') cm.join() from PYME.Acquire.Hardware import lasers scope.l488 = lasers.FakeLaser('488', scope.cam, 1, initPower=10) scope.l405 = lasers.FakeLaser('405', scope.cam, 0, initPower=10) scope.lasers = [scope.l405, scope.l488] InitGUI(''' from PYME.Acquire.Hardware import LaserControlFrame lcf = LaserControlFrame.LaserControlLight(MainFrame,scope.lasers) time1.WantNotification.append(lcf.refresh) #lcf.Show() camPanels.append((lcf, 'Laser Control')) ''') InitGUI(''' lsf = lasersliders.LaserSliders(toolPanel, scope.lasers) camPanels.append((lsf, 'Laser Powers'))