- Timestamp:
- Feb 16, 2009 6:53:18 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:
- f69bc394
- Parents:
- 8f274b11
- Location:
- guiframe
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
guiframe/gui_manager.py
r0bd2cd8 rdd66fbd 264 264 """ 265 265 # Status bar 266 self.sb = self.CreateStatusBar() 267 self.SetStatusText("") 266 from statusbar import MyStatusBar 267 self.sb = MyStatusBar(self,wx.ID_ANY) 268 self.SetStatusBar(self.sb) 268 269 269 270 # Add panel … … 615 616 Display status message 616 617 """ 617 self.SetStatusText(str(evt.status)) 618 self.sb.clear_gauge( msg="") 619 mythread=None 620 mytype= None 621 if hasattr(evt, "curr_thread"): 622 mythread= evt.curr_thread 623 if hasattr(evt, "type"): 624 mytype= evt.type 625 self.sb.set_status( type=mytype,msg=str(evt.status),thread=mythread) 626 618 627 619 628 -
guiframe/local_perspectives/plotting/Plotter1D.py
r9a585d0 rdd66fbd 226 226 #print "cyllinder before adding error", self.plots[self.graph.selected_plottable].x 227 227 wx.EVT_MENU(self, id, self._on_add_errors) 228 elif self.plots[self.graph.selected_plottable].__class__.__name__=="Data1D": 229 id = wx.NewId() 230 slicerpop.Append(id, '&Remove errors From data') 231 #print "panel scale before ",self.xLabel, self.yLabel 232 #print "cyllinder before adding error", self.plots[self.graph.selected_plottable].x 233 wx.EVT_MENU(self, id, self._on_remove_errors) 228 """ 229 elif self.plots[self.graph.selected_plottable].__class__.__name__=="Data1D": 230 id = wx.NewId() 231 slicerpop.Append(id, '&Remove errors From data') 232 #print "panel scale before ",self.xLabel, self.yLabel 233 #print "cyllinder before adding error", self.plots[self.graph.selected_plottable].x 234 wx.EVT_MENU(self, id, self._on_remove_errors) 235 """ 234 236 else: 235 237 id = wx.NewId() … … 285 287 self.graph.delete_plottable(self.plots[self.graph.selected_plottable]) 286 288 287 self.graph.add _plottable(new_plot,color)289 self.graph.add(new_plot,color) 288 290 # transforming the view of the new data into the same of the previous data 289 291 self._onEVT_FUNC_PROPERTY() … … 332 334 new_plot.yaxis(label, unit) 333 335 #print "panel scale ",self.xLabel, self.yLabel 334 color=self.graph.plottables[self.plots[self.graph.selected_plottable]]336 #color=self.graph.plottables[self.plots[self.graph.selected_plottable]] 335 337 self.graph.delete_plottable(self.plots[self.graph.selected_plottable]) 336 self.graph.add_plottable(new_plot, color)337 #self.graph.add(new_plot)338 #self.graph.add_plottable(new_plot, color) 339 self.graph.add(new_plot) 338 340 # transforming the view of the new data into the same of the previous data 339 341 self._onEVT_FUNC_PROPERTY() -
guiframe/model_thread.py
rca88b2e rdd66fbd 125 125 126 126 wx.PostEvent(self.parent, StatusEvent(status="Plot \ 127 updating ... %g sec" % time)) 127 #updating ... %g sec" % time,curr_thread=self,type="update")) 128 128 129 129 130 def compute(self): … … 135 136 center_x=0 136 137 center_y=0 137 138 138 139 self.starttime = time.time() 140 print "model_thread" 139 141 wx.PostEvent(self.parent, StatusEvent(status=\ 140 "Start Drawing model %g " % self.starttime))142 "Start Drawing model %g " % (self.starttime))) 141 143 lx = len(self.x) 142 144
Note: See TracChangeset
for help on using the changeset viewer.