5757
5858from dpx .confutils .tools import checkFileVal
5959
60- class LivingThread (threading .Thread ):
60+ ''' class LivingThread(threading.Thread):
6161
6262 def __init__(self, wdir, maingui):
6363 threading.Thread.__init__(self)
@@ -88,17 +88,17 @@ def run(self):
8888 maingui.newImages()
8989 self.lastctime = os.path.getctime(wdir)
9090 time.sleep(0.5)
91- return
91+ return'''
9292
9393
9494class SrXguiLive (SrXgui ):
9595
9696 getxgui = Any
9797
9898 def __init__ (self , configfile = None , args = None , ** kwargs ):
99- '''
100- init the object, createt the notifications
101- '''
99+
100+ # init the object, createt the notifications
101+
102102 self .splash = SplashScreen (image = ImageResource ('01.png' ), show_log_messages = False )
103103 self .splash .open ()
104104
@@ -117,8 +117,8 @@ def __init__(self, configfile=None, args=None, **kwargs):
117117 self .help = SrXguiHelp ()
118118 self .calibration = Calibration (srx = self .srx , srxconfig = self .srxconfig )
119119
120- self .liveplot = None
121- self .last10data = []
120+ ''' self.liveplot = None
121+ self.last10data = []'''
122122
123123 self .splash .close ()
124124 return
@@ -144,7 +144,7 @@ def processSelected(self, summation=False):
144144 GUI .invoke_later (self .addNewImagesToGetXgui , newchifilelist )
145145 return
146146
147- def _startCapturing (self ):
147+ ''' def _startCapturing(self):
148148 self.capturing = True
149149
150150 wdir = self.srxconfig.opendirectory
@@ -156,15 +156,15 @@ def _startCapturing(self):
156156 self.livingthread = LivingThread(wdir, self)
157157 self.livingthread.daemon = True
158158 self.livingthread.start()
159- return
159+ return'''
160160
161- def _stopCapturing (self ):
161+ ''' def _stopCapturing(self):
162162 self.capturing = False
163163 self.livingthread.capturing = False
164164 self.livingthread.join()
165- return
165+ return'''
166166
167- ###LIVE###
167+ ''' ###LIVE###
168168 def newImages(self):
169169 newexistfileset = self.srx.loadimage.genFileSet(fullpath=True)
170170 newfileset = newexistfileset - self.existfileset
@@ -179,7 +179,7 @@ def newImages(self):
179179 newchifilelist = [rv['filename'] for rv in rvlist]
180180 GUI.invoke_later(self.addNewImagesToGetXgui, newchifilelist)
181181 self.existfileset = newexistfileset
182- return
182+ return'''
183183
184184 def addNewImagesToGetXgui (self , filelist ):
185185 '''
@@ -198,15 +198,15 @@ def addNewImagesToGetXgui(self, filelist):
198198 self .liveplot , liveplotpanel = self .getxgui .createNewPlot (newdatacontainers )
199199 return
200200
201- capturing = Bool (False )
201+ ''' capturing = Bool(False)
202202 startcapturing_action = \
203203 Action(name='Start Capturing',
204204 action='_startCapturing',
205205 enabled_when='not capturing')
206206 stopcapturing_action = \
207207 Action(name='Stop Capturing',
208208 action='_stopCapturing',
209- enabled_when = 'capturing' )
209+ enabled_when='capturing')'''
210210 quickstart_action = \
211211 Action (name = 'Help ' ,
212212 action = '_quickstart' )
@@ -233,7 +233,7 @@ def addNewImagesToGetXgui(self, filelist):
233233 HGroup (spring ,
234234 Item ('selfcalibratebb' , enabled_when = 'not capturing' ),
235235 Item ('integratbb' , enabled_when = 'not capturing' ),
236- Item ('integratessbb' , enabled_when = 'not capturing' ),
236+ # Item('integratessbb', enabled_when='not capturing'),
237237 spring ,
238238 show_labels = False ,
239239 ),
0 commit comments