- Timestamp:
- Feb 23, 2009 5:24:24 PM (16 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- 2a8fac1
- Parents:
- 353041d
- Location:
- guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r353041d r700f9b4 225 225 226 226 # History panel 227 self.histPanel = history.HistoryPanel(self, style=wx.RAISED_BORDER)227 #self.histPanel = history.HistoryPanel(self, style=wx.RAISED_BORDER) 228 228 # self.build_gui() 229 229 … … 369 369 self.panels["default"] = self.defaultPanel 370 370 # History panel 371 self.panels["historyPanel"] = self.histPanel371 #self.panels["historyPanel"] = self.histPanel 372 372 373 373 self._mgr.AddPane(self.defaultPanel, wx.aui.AuiPaneInfo(). … … 378 378 MinSize(wx.Size(self._window_width, self._window_height)). 379 379 Show()) 380 """ 380 381 self._mgr.AddPane(self.histPanel, wx.aui.AuiPaneInfo(). 381 382 Name("historyPanel").Caption("History"). … … 392 393 BestSize(wx.Size(500,600)). 393 394 MinSize(wx.Size(200,150))) 395 """ 394 396 395 397 # Add the panels to the AUI manager … … 650 652 651 653 self._mgr.Update() 654 """ 652 655 def _onHistoryPanel(self, event): 653 656 print "on history" … … 656 659 self._mgr.Update() 657 660 return 658 661 """ 659 662 def _on_open(self, event): 660 663 661 664 from data_loader import plot_data 662 665 path = self.choose_file() 663 666 if path ==None: 667 return 664 668 if path and os.path.isfile(path): 665 669 plot_data(self, path) -
guiframe/model_thread.py
r858f2ae5 r700f9b4 158 158 value = self.model.runXY([self.x[i_x]-center_x, self.y[i_y]-center_y]) 159 159 output[i_x] [i_y]=value 160 160 161 except: 161 162 wx.PostEvent(self.parent, StatusEvent(status=\ 162 163 "Error computing %s at [%g,%g]" %(self.model.name, self.x[i_x],self.y[i_y]))) 163 164 pass 165 print "model thread ouput",output 164 166 elapsed = time.time()-self.starttime 165 167 self.complete( -
guiframe/statusbar.py
r858f2ae5 r700f9b4 29 29 """ 30 30 self.count +=1 31 if self.count == 20:31 if self.count ==30: 32 32 self.timer_stop.Stop() 33 33 self.gauge.Hide() 34 self.SetStatusText( "", 0) 34 35 self.count=0 35 36 def OnTimer(self, evt): … … 48 49 while(self.thread.isrunning()): 49 50 self.progress += 1 50 51 # Update the Rqnge if it has changed52 #if self.range >= 0 and self.range != self.gauge.GetRange():53 # self.gauge.SetRange(self.range)54 55 51 # Update the progress value if it is less than the range 56 52 if self.progress < self.gauge.GetRange()-20: … … 78 74 else: 79 75 self.thread= thread 80 #if self.thread !=None:81 76 self.gauge.Show(True) 82 77 if type.lower()=="start": … … 95 90 self.SetStatusText( str(msg), 0) 96 91 self.gauge.Pulse() 97 print "in progress"92 #print "in progress" 98 93 99 94 if type.lower()=="update": … … 104 99 if self.progress < self.gauge.GetRange()-20: 105 100 self.gauge.SetValue(int(self.progress)) 101 106 102 if type.lower()=="stop": 107 print "it is complete"108 103 self.gauge.Show(True) 109 104 self.timer.Stop()
Note: See TracChangeset
for help on using the changeset viewer.