Changeset 98816c43 in sasview
- Timestamp:
- Apr 10, 2014 11:29:35 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:
- 92c6c36
- Parents:
- 062ebef
- Location:
- src/sans/guiframe
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sans/guiframe/gui_manager.py
r12a1631 r98816c43 23 23 warnings.simplefilter("ignore") 24 24 import logging 25 #import urllib226 25 import httplib 27 26 … … 263 262 self._data_menu = None 264 263 self._view_menu = None 265 self._window_menu = None266 264 self._data_panel_menu = None 267 265 self._help_menu = None … … 763 761 # WX 3.0 needs us to create the menu bar first. 764 762 self._menubar = wx.MenuBar() 765 self.SetMenuBar(self._menubar) 763 if wx.VERSION_STRING >= '3.0.0.0': 764 self.SetMenuBar(self._menubar) 766 765 self._add_menu_file() 767 766 self._add_menu_edit() … … 777 776 # Append item from plugin under menu file if necessary 778 777 self._populate_file_menu() 778 if not wx.VERSION_STRING >= '3.0.0.0': 779 self.SetMenuBar(self._menubar) 779 780 780 781 try: … … 2885 2886 data_panel.cb_plotpanel.SetString(pos, caption) 2886 2887 data_panel.cb_plotpanel.SetStringSelection(caption) 2887 # update window Show menu2888 if self._window_menu != None:2889 for item in self._window_menu.GetMenuItems():2890 pos = self._window_menu.FindItem(old_caption)2891 if self._window_menu.GetLabel(pos) == str(old_caption):2892 self._window_menu.SetLabel(pos, caption)2893 break2894 2888 # New Caption 2895 2889 pane_info.SetTitle(caption) -
src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
rcafa75f r98816c43 417 417 418 418 def remove_data_by_id(self, id): 419 """ '420 remove data from plot419 """ 420 Remove data from plot 421 421 """ 422 422 if id in self.plots.keys(): … … 430 430 if id in theory_list.keys(): 431 431 data = theory_list[id] 432 # Update Graph menu and help string 433 #h_id = self.parent._window_menu.FindItem(self.window_caption) 434 if data != None: 435 if data.__class__.__name__ == 'list': 436 label = data[0].label 437 else: 438 label = data.label 439 else: 440 label = '???' 441 #helpString = self.parent._window_menu.GetHelpString(h_id) 442 d_string = (' ' + str(label) +';') 443 #new_tip = helpString.replace(d_string, '') 444 #self.parent._window_menu.SetHelpString(h_id, new_tip) 445 432 446 433 del self.plots[id] 447 434 self.graph.render(self) … … 450 437 #onRemove: graph is empty must be the panel must be destroyed 451 438 self.parent.delete_panel(self.uid) 452 453 439 454 440 def plot_data(self, data): … … 480 466 self._onEVT_FUNC_PROPERTY() 481 467 except Exception, exc: 482 msg=" Encountered singular points..."483 468 wx.PostEvent(self.parent, StatusEvent(status=\ 484 469 "Plotting Error: %s"% str(exc), info="error")) … … 498 483 self.canvas._onDrawIdle() 499 484 except Exception,exc: 500 msg=" Encountered singular points..."501 485 wx.PostEvent(self.parent, StatusEvent(status=\ 502 486 "Plotting Error: %s"% str(exc), info="error")) 503 487 self.toolbar.update() 504 488 self.is_zoomed = False 505 # Update Graph menu and help string 506 #pos = self.parent._window_menu.FindItem(self.window_caption) 507 helpString = 'Show/Hide Graph: ' 508 for plot in self.plots.itervalues(): 509 helpString += (' ' + str(plot.label) +';') 510 #self.parent._window_menu.SetHelpString(pos, helpString) 511 489 512 490 def draw_plot(self): 513 491 """ … … 850 828 self.get_symbol_label()[info[2]] 851 829 self.appearance_selected_plot.label = str(info[3]) 852 853 #pos = self.parent._window_menu.FindItem(self.window_caption)854 #helpString = 'Show/Hide Graph: '855 #for plot in self.plots.itervalues():856 # helpString += (' ' + str(plot.label) + ';')857 # self.parent._window_menu.SetHelpString(pos, helpString)858 # self._is_changed_legend_label = True859 860 830 self.appD.Destroy() 861 831 self._check_zoom_plot() 862 863 832 864 833 def modifyGraphAppearance(self, event): … … 878 847 self.is_xtick, self.is_ytick) 879 848 self.graphApp.Bind(wx.EVT_CLOSE, self.on_graphApp_close) 880 881 849 882 850 def on_graphApp_close(self, event): -
src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
rcafa75f r98816c43 241 241 color=self.title_color) 242 242 self.subplot.figure.canvas.draw_idle() 243 # Update Graph menu and help string244 #pos = self.parent._window_menu.FindItem(self.window_caption)245 helpString = 'Show/Hide Graph: '246 helpString += (' ' + str(data.label) +';')247 #self.parent._window_menu.SetHelpString(pos, helpString)248 243 ## store default value of zmin and zmax 249 244 self.default_zmin_ctl = self.zmin_2D … … 458 453 dial.Destroy() 459 454 460 # Update Graph menu and help string461 if self.title_label != None:462 #pos = self.parent._window_menu.FindItem(self.window_caption)463 helpString = 'Show/Hide Graph: '464 helpString += (' ' + str(self.title_label) +';')465 #self.parent._window_menu.SetHelpString(pos, helpString)466 467 468 455 def _onEditDetector(self, event): 469 456 """
Note: See TracChangeset
for help on using the changeset viewer.