- Timestamp:
- Apr 1, 2014 7:23:29 AM (11 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:
- aba5876
- Parents:
- b099388
- Location:
- src/sans
- Files:
-
- 59 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/guiframe/data_panel.py
r5777106 rb9f6d83 329 329 wx.EVT_BUTTON(self, self.bt_freeze.GetId(), self.on_freeze) 330 330 331 if sys.platform == 'darwin' and build_options.WXPORT == 'osx_cocoa':331 if sys.platform == 'darwin': 332 332 self.cb_plotpanel = wx.ComboBox(self, -1, 333 333 style=wx.CB_READONLY) -
src/sans/guiframe/data_processor.py
rf468791 rb9f6d83 1278 1278 (-1, -1), 1279 1279 (-1, -1), 1280 (-1, -1),1281 (-1, -1),1282 (-1, -1),1280 #(-1, -1), 1281 #(-1, -1), 1282 #(-1, -1), 1283 1283 (-1, 1)]) 1284 1284 -
src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
rf468791 rb9f6d83 485 485 "Plotting Error: %s"% msg, info="error")) 486 486 # Check if zoomed 487 toolbar_zoomed = self.toolbar.GetToolEnabled(self.toolbar._NTB2_BACK) 487 try: tb = self.toolbar.wx_ids['Back'] 488 except AttributeError: tb = self.toolbar._NTB2_BACK # Cruft 489 toolbar_zoomed = self.toolbar.GetToolEnabled(tb) 488 490 if self.is_zoomed or toolbar_zoomed: 489 491 # Recover the x,y limits … … 565 567 self.subplot.figure.canvas.draw_idle() 566 568 # Check if zoomed 567 toolbar_zoomed = self.toolbar.GetToolEnabled(self.toolbar._NTB2_BACK) 569 try: tb = self.toolbar.wx_ids['Back'] 570 except AttributeError: tb = self.toolbar._NTB2_BACK # Cruft 571 toolbar_zoomed = self.toolbar.GetToolEnabled(tb) 568 572 if self.is_zoomed or toolbar_zoomed: 569 573 # Recover the x,y limits -
src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
rf468791 rb9f6d83 250 250 self.default_zmax_ctl = self.zmax_2D 251 251 # Check if zoomed 252 toolbar_zoomed = self.toolbar.GetToolEnabled(self.toolbar._NTB2_BACK) 252 try: tb = self.toolbar.wx_ids['Back'] 253 except AttributeError: tb = self.toolbar._NTB2_BACK # Cruft 254 toolbar_zoomed = self.toolbar.GetToolEnabled(tb) 253 255 if not self.is_zoomed and not toolbar_zoomed: 254 256 return -
src/sans/perspectives/fitting/batchfitpage.py
r5777106 rb9f6d83 25 25 window_caption = "BatchFit" 26 26 27 def __init__(self, parent, color= 'rand'):27 def __init__(self, parent, color=None): 28 28 """ 29 29 Initialization of the Panel -
src/sans/perspectives/fitting/fitpage.py
r5777106 rb9f6d83 37 37 """ 38 38 39 def __init__(self, parent, color= 'rand'):39 def __init__(self, parent, color=None): 40 40 """ 41 41 Initialization of the Panel … … 137 137 if not is_data: 138 138 is_data = check_data_validity(data) 139 self.dataSource.SetSelection(0) 140 self.on_select_data(event=None) 139 if is_data: 140 self.dataSource.SetSelection(0) 141 self.on_select_data(event=None) 141 142 142 143 def on_select_data(self, event=None): -
src/sans/plottools/PlotPanel.py
ra9d5684 rb9f6d83 1107 1107 self._onEVT_FUNC_PROPERTY(False) 1108 1108 # Check if zoomed 1109 toolbar_zoomed = self.toolbar.GetToolEnabled(self.toolbar._NTB2_BACK) 1109 try: tb = self.toolbar.wx_ids['Back'] 1110 except AttributeError: tb = self.toolbar._NTB2_BACK # Cruft 1111 toolbar_zoomed = self.toolbar.GetToolEnabled(tb) 1112 1110 1113 if self.is_zoomed or toolbar_zoomed: 1111 1114 # Recover the x,y limits … … 1259 1262 handles2, labels2 = zip(*hl) 1260 1263 self.line_collections_list = handles2 1261 self.legend = ax.legend(handles2, labels2, numpoints=1, 1264 try: 1265 self.legend = ax.legend(handles2, labels2, numpoints=1, 1266 prop=FontProperties(size=10), 1267 handletextsep=.05, loc=self.legendLoc) 1268 except TypeError: # Cruft 1269 # older MPL uses handletextsep instead of handletextpad 1270 self.legend = ax.legend(handles2, labels2, numpoints=1, 1262 1271 prop=FontProperties(size=10), 1263 1272 handletextsep=.05, loc=self.legendLoc) … … 1268 1277 1269 1278 except: 1270 self.legend = ax.legend(prop=FontProperties(size=10), 1279 try: 1280 self.legend = ax.legend(prop=FontProperties(size=10), 1281 numpoints=1, handletextpad=.05, 1282 loc=self.legendLoc) 1283 except TypeError: # Cruft 1284 # older MPL uses handletextsep instead of handletextpad 1285 self.legend = ax.legend(prop=FontProperties(size=10), 1271 1286 numpoints=1, handletextsep=.05, 1272 1287 loc=self.legendLoc) -
src/sans/plottools/canvas.py
ra9d5684 rb9f6d83 266 266 self.panel.parent.set_plot_unfocus() 267 267 self.panel.on_set_focus(None) 268 269 268 return 269 270 # CRUFT: wx 3.0.0.0 on OS X doesn't release the mouse on leaving window 271 def _onLeave(self, evt): 272 if self.HasCapture(): self.ReleaseMouse() 273 super(FigureCanvas,self)._onLeave(evt)
Note: See TracChangeset
for help on using the changeset viewer.