Changeset 657e52c in sasview for sansguiframe/src
- Timestamp:
- Dec 14, 2012 2:50:24 PM (12 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:
- 0203ade
- Parents:
- aa01d07b
- Location:
- sansguiframe/src/sans/guiframe
- Files:
-
- 3 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
sansguiframe/src/sans/guiframe/CategoryInstaller.py
rdad7cef r657e52c 123 123 124 124 @staticmethod 125 def check_install(homedir = None, defaultfile = None, 126 modelsdir = None, installed_models_dir = None): 125 def check_install(homedir = None, model_list=None): 127 126 """ 128 127 the main method of this class … … 130 129 compile it and install 131 130 :param homefile: Override the default home directory 132 :param defaultfile: Override the default file location 133 :param modelsfile: The file where models.py lives. This 134 MUST be overwritten in setup.py 135 :param installed_models_dir: Where installed_models.txt is to go: 131 :param model_list: List of model names except customized models 136 132 """ 137 model_list = [] 133 #model_list = [] 134 default_file = CategoryInstaller.get_default_file() 138 135 serialized_file = None 136 master_category_dict = defaultdict(list) 139 137 if homedir == None: 140 138 serialized_file = CategoryInstaller.get_user_file() 141 139 else: 142 140 serialized_file = os.path.join(homedir, USER_FILE) 143 144 if os.path.exists(serialized_file): 145 return 146 147 if installed_models_dir == None: 148 installed_models_dir = \ 149 CategoryInstaller._get_installed_model_dir() 141 if os.path.isfile(serialized_file): 142 cat_file = open(serialized_file, 'rb') 143 else: 144 cat_file = open(default_file, 'rb') 145 master_category_dict = pickle.Unpickler(cat_file).load() 146 (by_model_dict, model_enabled_dict) = \ 147 CategoryInstaller._regenerate_model_dict(master_category_dict) 148 cat_file.close() 149 add_list = model_list 150 del_name = False 151 for cat in master_category_dict.keys(): 152 for ind in range(len(master_category_dict[cat])): 153 model_name, enabled = master_category_dict[cat][ind] 154 if model_name not in model_list: 155 del_name = True 156 try: 157 by_model_dict.pop(model_name) 158 model_enabled_dict.pop(model_name) 159 except: 160 pass 161 else: 162 add_list.remove(model_name) 163 if del_name or (len(add_list) > 0): 164 for model in add_list: 165 model_enabled_dict[model]= True 166 by_model_dict[model].append('Uncategorized') 167 168 master_category_dict = \ 169 CategoryInstaller._regenerate_master_dict(by_model_dict, 170 model_enabled_dict) 171 172 pickle.dump( master_category_dict, 173 open(serialized_file, 'wb') ) 174 175 try: 176 #It happens only in source environment 177 shutil.copyfile(serialized_file, default_file) 178 except: 179 pass 150 180 151 installed_model_file = open(152 os.path.join(installed_models_dir,153 "installed_models.txt"), 'w')154 155 if modelsdir == None:156 modelsdir = CategoryInstaller._get_models_py_dir()157 python_model_file = open(os.path.join(modelsdir,158 "models.py"),159 'r')160 161 python_models = python_model_file.read()162 163 # we remove models that appear in the installed164 # model folder but not in models.py . the excess165 # hard coded ones on the end come from them being166 # present in models.py but not actual models, eg167 # TwoLorenzianModel contains the string 'Lorenzian'168 # but we don't actually want to include Lorenzian169 model_list = [mod for mod in model_list if \170 mod in python_models and \171 not 'init' in mod and \172 not 'BaseComponent' in mod \173 and not 'MultiplicationModel' in mod \174 and not 'pluginmodel' in mod \175 and mod != 'PowerLawModel' \176 and mod != 'Lorentzian']177 178 179 for mod in model_list:180 installed_model_file.write(mod + '\n')181 182 installed_model_file.close()183 184 # start sorting category stuff185 default_file = None186 if defaultfile == None:187 default_file = CategoryInstaller.get_default_file()188 else:189 default_file = defaultfile190 191 master_category_dict = pickle.load(open(default_file, 'rb'))192 193 (by_model_dict, model_enabled_dict) = \194 CategoryInstaller._regenerate_model_dict(master_category_dict)195 196 197 for found_model in model_list:198 if not found_model in by_model_dict:199 print found_model + ' : ' + str(by_model_dict[found_model])200 by_model_dict[found_model].append("Uncategorized")201 model_enabled_dict[found_model] = True202 203 # remove any stray models from categorization204 # that aren't stored anymore205 206 models_to_delete = []207 for model in by_model_dict:208 if not model in model_list:209 models_to_delete.append(model)210 211 for model in models_to_delete:212 by_model_dict.pop(model)213 214 master_category_dict = \215 CategoryInstaller._regenerate_master_dict(by_model_dict,216 model_enabled_dict)217 218 pickle.dump( master_category_dict,219 open(default_file, 'wb') )220 221 #shutil.copyfile(default_file, serialized_file) -
sansguiframe/src/sans/guiframe/CategoryManager.py
r6034e16 r657e52c 96 96 self.model_enabled_dict = defaultdict(bool) 97 97 98 wx.Frame.__init__(self, parent, win_id, title, size=(6 50, 400))98 wx.Frame.__init__(self, parent, win_id, title, size=(660, 400)) 99 99 100 100 panel = wx.Panel(self, -1) … … 299 299 300 300 pickle.dump( self.master_category_dict, cat_file ) 301 301 302 cat_file.close() 302 303 303 304 def _read_category_info(self): … … 313 314 cat_file = open(CategoryInstaller.get_default_file(), 'rb') 314 315 self.master_category_dict = pickle.load(cat_file) 316 cat_file.close() 315 317 except IOError: 316 318 print 'Problem reading in category file. Please review' -
sansguiframe/src/sans/guiframe/aboutbox.py
r1452132 r657e52c 107 107 self.bitmap_button_umd = wx.BitmapButton(self, -1, wx.NullBitmap) 108 108 self.bitmap_button_sns = wx.BitmapButton(self, -1, wx.NullBitmap) 109 self.bitmap_button_nsf = wx.BitmapButton(self, -1,110 wx.NullBitmap)111 self.bitmap_button_danse = wx.BitmapButton(self, -1, wx.NullBitmap)109 #self.bitmap_button_nsf = wx.BitmapButton(self, -1, 110 # wx.NullBitmap) 111 #self.bitmap_button_danse = wx.BitmapButton(self, -1, wx.NullBitmap) 112 112 self.bitmap_button_msu = wx.BitmapButton(self, -1, wx.NullBitmap) 113 114 self.bitmap_button_isis = wx.BitmapButton(self, -1, wx.NullBitmap) 115 self.bitmap_button_ess = wx.BitmapButton(self, -1, wx.NullBitmap) 116 self.bitmap_button_ill = wx.BitmapButton(self, -1, wx.NullBitmap) 117 113 118 self.static_line_3 = wx.StaticLine(self, -1) 114 119 self.button_OK = wx.Button(self, wx.ID_OK, "OK") … … 120 125 self.Bind(wx.EVT_BUTTON, self.onUmdLogo, self.bitmap_button_umd) 121 126 self.Bind(wx.EVT_BUTTON, self.onSnsLogo, self.bitmap_button_sns) 122 self.Bind(wx.EVT_BUTTON, self.onNsfLogo, self.bitmap_button_nsf)123 self.Bind(wx.EVT_BUTTON, self.onDanseLogo, self.bitmap_button_danse)127 #self.Bind(wx.EVT_BUTTON, self.onNsfLogo, self.bitmap_button_nsf) 128 #self.Bind(wx.EVT_BUTTON, self.onDanseLogo, self.bitmap_button_danse) 124 129 self.Bind(wx.EVT_BUTTON, self.onUTLogo, self.bitmap_button_msu) 130 self.Bind(wx.EVT_BUTTON, self.onIsisLogo, self.bitmap_button_isis) 131 self.Bind(wx.EVT_BUTTON, self.onEssLogo, self.bitmap_button_ess) 132 self.Bind(wx.EVT_BUTTON, self.onIllLogo, self.bitmap_button_ill) 125 133 # end wxGlade 126 134 # fill in acknowledgements … … 162 170 self.bitmap_button_sns.SetBitmapLabel(logo) 163 171 172 """ 164 173 image = file_dir + "/images/nsf_logo.png" 165 174 if os.path.isfile(config._nsf_logo): … … 173 182 logo = wx.Bitmap(image) 174 183 self.bitmap_button_danse.SetBitmapLabel(logo) 175 184 """ 176 185 image = file_dir + "/images/utlogo.gif" 177 186 if os.path.isfile(config._inst_logo): … … 180 189 self.bitmap_button_msu.SetBitmapLabel(logo) 181 190 191 image = file_dir + "/images/isis_logo.png" 192 if os.path.isfile(config._isis_logo): 193 image = config._isis_logo 194 logo = wx.Bitmap(image) 195 self.bitmap_button_isis.SetBitmapLabel(logo) 196 197 image = file_dir + "/images/ess_logo.png" 198 if os.path.isfile(config._ess_logo): 199 image = config._ess_logo 200 logo = wx.Bitmap(image) 201 self.bitmap_button_ess.SetBitmapLabel(logo) 202 203 image = file_dir + "/images/ill_logo.png" 204 if os.path.isfile(config._ill_logo): 205 image = config._ill_logo 206 logo = wx.Bitmap(image) 207 self.bitmap_button_ill.SetBitmapLabel(logo) 208 182 209 # resize dialog window to fit version number nicely 183 210 if wx.VERSION >= (2, 7, 2, 0): … … 201 228 self.bitmap_button_umd.SetSize(self.bitmap_button_umd.GetBestSize()) 202 229 self.bitmap_button_sns.SetSize(self.bitmap_button_sns.GetBestSize()) 203 self.bitmap_button_nsf.SetSize(self.bitmap_button_nsf.GetBestSize())204 self.bitmap_button_danse.SetSize(self.bitmap_button_danse.GetBestSize())230 #self.bitmap_button_nsf.SetSize(self.bitmap_button_nsf.GetBestSize()) 231 #self.bitmap_button_danse.SetSize(self.bitmap_button_danse.GetBestSize()) 205 232 self.bitmap_button_msu.SetSize(self.bitmap_button_msu.GetBestSize()) 233 self.bitmap_button_isis.SetSize(self.bitmap_button_isis.GetBestSize()) 234 self.bitmap_button_ess.SetSize(self.bitmap_button_ess.GetBestSize()) 235 self.bitmap_button_ill.SetSize(self.bitmap_button_ill.GetBestSize()) 206 236 # end wxGlade 207 237 … … 244 274 wx.LEFT|wx.TOP|wx.BOTTOM|wx.ADJUST_MINSIZE, 7) 245 275 sizer_main.Add(self.static_line_2, 0, wx.EXPAND, 0) 246 sizer_logos.Add(self.bitmap_button_nist, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 247 sizer_logos.Add(self.bitmap_button_umd, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 248 sizer_logos.Add(self.bitmap_button_sns, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 249 sizer_logos.Add(self.bitmap_button_nsf, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 250 sizer_logos.Add(self.bitmap_button_danse, 0, 251 wx.LEFT|wx.ADJUST_MINSIZE, 2) 252 sizer_logos.Add(self.bitmap_button_msu, 0, wx.LEFT|wx.ADJUST_MINSIZE, 2) 253 sizer_logos.Add((50, 50), 0, wx.ADJUST_MINSIZE, 0) 276 277 sizer_logos.Add(self.bitmap_button_msu, 0, 278 wx.LEFT|wx.ADJUST_MINSIZE, 2) 279 #sizer_logos.Add(self.bitmap_button_danse, 0, 280 # wx.LEFT|wx.ADJUST_MINSIZE, 2) 281 #sizer_logos.Add(self.bitmap_button_nsf, 0, 282 # wx.LEFT|wx.ADJUST_MINSIZE, 2) 283 sizer_logos.Add(self.bitmap_button_umd, 0, 284 wx.LEFT|wx.ADJUST_MINSIZE, 2) 285 sizer_logos.Add(self.bitmap_button_nist, 0, 286 wx.LEFT|wx.ADJUST_MINSIZE, 2) 287 sizer_logos.Add(self.bitmap_button_sns, 0, 288 wx.LEFT|wx.ADJUST_MINSIZE, 2) 289 sizer_logos.Add(self.bitmap_button_isis, 0, 290 wx.LEFT|wx.ADJUST_MINSIZE, 2) 291 sizer_logos.Add(self.bitmap_button_ess, 0, 292 wx.LEFT|wx.ADJUST_MINSIZE, 2) 293 sizer_logos.Add(self.bitmap_button_ill, 0, 294 wx.LEFT|wx.ADJUST_MINSIZE, 2) 295 296 sizer_logos.Add((10, 50), 0, wx.ADJUST_MINSIZE, 0) 254 297 sizer_main.Add(sizer_logos, 0, wx.EXPAND, 0) 255 298 sizer_main.Add(self.static_line_3, 0, wx.EXPAND, 0) 256 sizer_button.Add((20, 20), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0)299 sizer_button.Add((20, 40), 1, wx.EXPAND|wx.ADJUST_MINSIZE, 0) 257 300 sizer_button.Add(self.button_OK, 0, 258 wx.RIGHT|wx.ADJUST_MINSIZE|wx. BOTTOM, 10)301 wx.RIGHT|wx.ADJUST_MINSIZE|wx.CENTER, 10) 259 302 sizer_main.Add(sizer_button, 0, wx.EXPAND, 0) 260 303 self.SetAutoLayout(True) … … 306 349 event.Skip() 307 350 351 def onIsisLogo(self, event): 352 """ 353 """ 354 # wxGlade: DialogAbout.<event_handler> 355 launchBrowser(config._isis_url) 356 event.Skip() 357 358 def onEssLogo(self, event): 359 """ 360 """ 361 # wxGlade: DialogAbout.<event_handler> 362 launchBrowser(config._ess_url) 363 event.Skip() 364 365 def onIllLogo(self, event): 366 """ 367 """ 368 # wxGlade: DialogAbout.<event_handler> 369 launchBrowser(config._ill_url) 370 event.Skip() 371 308 372 # end of class DialogAbout 309 373 -
sansguiframe/src/sans/guiframe/config.py
r6e48fd0 r657e52c 9 9 __version__ = '0.0.0' 10 10 __build__ = '1' 11 __download_page__ = 'https://sourceforge.net/projects/sansviewproject/files/' 12 __update_URL__ = 'http://sansviewproject.svn.sourceforge.net/viewvc/sansviewproject/trunk/sansview.latestversion' 11 __download_page__ = 'http://sourceforge.net/projects/sasview/files/' 12 __update_URL__ = ['svn.code.sf.net', 13 '/p/sasview/code/trunk/sansview.latestversion'] 13 14 14 15 … … 32 33 33 34 ''' 34 _homepage = "http:// danse.chem.utk.edu"35 _download = "http:// danse.chem.utk.edu/sansview.html"35 _homepage = "http://www.sasview.org" 36 _download = "http://sourceforge.net/projects/sasview/files/" 36 37 _authors = [] 37 _paper = "http:// danse.us/trac/sans/newticket"38 _license = "mailto: sansdanse@gmail.com"38 _paper = "http://sourceforge.net/p/sasview/tickets/" 39 _license = "mailto:help@sasview.org" 39 40 _nsf_logo = "images/nsf_logo.png" 40 41 _danse_logo = "images/danse_logo.png" … … 43 44 _umd_logo = "images/umd_logo.png" 44 45 _sns_logo = "images/sns_logo.png" 46 _isis_logo = "images/isis_logo.png" 47 _ess_logo = "images/ess_logo.png" 48 _ill_logo = "images/ill_logo.png" 45 49 _nist_url = "http://www.nist.gov/" 46 50 _umd_url = "http://www.umd.edu/" … … 49 53 _danse_url = "http://www.cacr.caltech.edu/projects/danse/release/index.html" 50 54 _inst_url = "http://www.utk.edu" 55 _isis_url = "http://www.isis.stfc.ac.uk/" 56 _ess_url = "http://ess-scandinavia.eu/" 57 _ill_url = "http://www.ill.eu/" 51 58 _corner_image = "images/angles_flat.png" 52 59 _welcome_image = "images/SVwelcome.png" -
sansguiframe/src/sans/guiframe/data_manager.py
r709cd83 r657e52c 251 251 if theory_id in theory_list.keys(): 252 252 del theory_list[theory_id] 253 253 #del pure theory 254 self.delete_by_id(theory_id) 254 255 255 256 def delete_by_id(self, id_list=None): -
sansguiframe/src/sans/guiframe/data_panel.py
r4cc25e9 r657e52c 35 35 from sans.guiframe.events import NewBatchEvent 36 36 from sans.dataloader.loader import Loader 37 from sans.guiframe.local_perspectives.plotting.masking \ 38 import FloatPanel as QucikPlotDialog 37 39 38 40 import sans.guiframe.config as config … … 442 444 """ 443 445 data = self._get_data_selection(event) 444 from sans.guiframe.local_perspectives.plotting.masking \445 import FloatPanel as QucikPlotDialog446 446 if data.__class__.__name__ == "Data2D": 447 447 dimension = 2 -
sansguiframe/src/sans/guiframe/gui_manager.py
ref67145 r657e52c 23 23 warnings.simplefilter("ignore") 24 24 import logging 25 import urllib2 25 #import urllib2 26 import httplib 26 27 27 28 from sans.guiframe.events import EVT_CATEGORY … … 2254 2255 """ 2255 2256 try: 2256 f=urllib2.urlopen(config.__update_URL__, 2257 timeout=1.0) 2258 content = f.read() 2257 conn = httplib.HTTPConnection(config.__update_URL__[0], 2258 timeout=3.0) 2259 conn.request("GET", config.__update_URL__[1]) 2260 res = conn.getresponse() 2261 content = res.read() 2262 conn.close() 2263 #f=urllib2.urlopen(config.__update_URL__, 2264 # timeout=1.0) 2265 #content = f.read() 2259 2266 except: 2260 2267 content = "0.0.0" -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py
rf866fb5 r657e52c 84 84 self.currColorIndex = "" 85 85 self._is_changed_legend_label = False 86 self.is_xtick = False 87 self.is_ytick = False 86 88 87 89 self.hide_menu = None … … 684 686 find_key(self.get_loc_label(), 685 687 self.legendLoc), 686 self.xcolor,self.ycolor) 688 self.xcolor, self.ycolor, 689 self.is_xtick, self.is_ytick) 687 690 self.graphApp.Bind(wx.EVT_CLOSE, self.on_graphApp_close) 688 691 … … 706 709 self.xaxis_unit = graph_app.get_xunit() 707 710 self.yaxis_unit = graph_app.get_yunit() 711 self.xaxis_font = graph_app.get_xfont() 712 self.yaxis_font = graph_app.get_yfont() 713 self.is_xtick = graph_app.get_xtick_check() 714 self.is_ytick = graph_app.get_ytick_check() 715 if self.is_xtick: 716 self.xaxis_tick = self.xaxis_font 717 if self.is_ytick: 718 self.yaxis_tick = self.yaxis_font 708 719 709 720 self.xaxis(self.xaxis_label, self.xaxis_unit, 710 graph_app.get_xfont(), graph_app.get_xcolor()) 721 graph_app.get_xfont(), graph_app.get_xcolor(), 722 self.xaxis_tick) 711 723 self.yaxis(self.yaxis_label, self.yaxis_unit, 712 graph_app.get_yfont(), graph_app.get_ycolor()) 724 graph_app.get_yfont(), graph_app.get_ycolor(), 725 self.yaxis_tick) 713 726 714 727 graph_app.Destroy() -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter2D.py
r294a7bc r657e52c 418 418 Edit legend label 419 419 """ 420 selected_plot = self.plots[self.graph.selected_plottable] 420 try: 421 selected_plot = self.plots[self.graph.selected_plottable] 422 except: 423 selected_plot = self.plots[self.data2D.id] 421 424 label = selected_plot.label 422 425 dial = TextDialog(None, -1, 'Change Label', label) … … 638 641 new_plot.id = "Circ avg " + self.data2D.name 639 642 new_plot.is_data = True 640 self.parent.update_theory(data_id=self.data2D , \643 self.parent.update_theory(data_id=self.data2D.id, \ 641 644 theory=new_plot) 642 645 wx.PostEvent(self.parent, … … 792 795 self.xaxis_font,self.yaxis_font, 793 796 find_key(self.get_loc_label(),self.legendLoc), 794 self.xcolor,self.ycolor) 797 self.xcolor,self.ycolor, 798 self.is_xtick, self.is_ytick) 795 799 self.graphApp.Bind(wx.EVT_CLOSE, self.on_graphApp_close) 796 800 … … 807 811 self.xaxis_unit = self.graphApp.get_xunit() 808 812 self.yaxis_unit = self.graphApp.get_yunit() 809 810 self.xaxis(self.xaxis_label,self.xaxis_unit, 811 self.graphApp.get_xfont(),self.graphApp.get_xcolor()) 812 self.yaxis(self.yaxis_label,self.yaxis_unit, 813 self.graphApp.get_yfont(),self.graphApp.get_ycolor()) 813 self.xaxis_font = self.graphApp.get_xfont() 814 self.yaxis_font = self.graphApp.get_yfont() 815 self.is_xtick = self.graphApp.get_xtick_check() 816 self.is_ytick = self.graphApp.get_ytick_check() 817 if self.is_xtick: 818 self.xaxis_tick = self.xaxis_font 819 if self.is_ytick: 820 self.yaxis_tick = self.yaxis_font 821 822 self.xaxis(self.xaxis_label, self.xaxis_unit, 823 self.graphApp.get_xfont(), self.graphApp.get_xcolor(), 824 self.xaxis_tick) 825 self.yaxis(self.yaxis_label, self.yaxis_unit, 826 self.graphApp.get_yfont(), self.graphApp.get_ycolor(), 827 self.yaxis_tick) 814 828 815 829 self.graphApp.Destroy() -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/SectorSlicer.py
r4752c31 r657e52c 186 186 new_plot.id = "SectorQ" + self.base.data2D.name 187 187 new_plot.is_data = True 188 self.base.parent.update_theory(data_id=data , \188 self.base.parent.update_theory(data_id=data.id, \ 189 189 theory=new_plot) 190 190 wx.PostEvent(self.base.parent, NewPlotEvent(plot=new_plot, -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/graphAppearance.py
r9f51c2c r657e52c 36 36 self.xfont = None 37 37 self.yfont = None 38 self.is_xtick = False 39 self.is_ytick = False 38 40 39 41 … … 172 174 fonty = SimpleFont(self, wx.NewId(), title) 173 175 fonty.set_default_font(self.xfont) 176 fonty.set_ticklabel_check(self.is_xtick) 174 177 if(fonty.ShowModal() == wx.ID_OK): 175 178 self.xfont = fonty.get_font() 179 self.is_xtick = fonty.get_ticklabel_check() 176 180 177 181 def onyFont(self, e): … … 179 183 fonty = SimpleFont(self, wx.NewId(), title) 180 184 fonty.set_default_font(self.yfont) 185 fonty.set_ticklabel_check(self.is_ytick) 181 186 if(fonty.ShowModal() == wx.ID_OK): 182 187 self.yfont = fonty.get_font() 188 self.is_ytick = fonty.get_ticklabel_check() 183 189 184 190 def on_ok(self, e): … … 233 239 def setDefaults(self,grid,legend,xlab,ylab,xunit,yunit, 234 240 xaxis_font,yaxis_font,legend_loc, 235 xcolor,ycolor ):241 xcolor,ycolor, is_xtick, is_ytick): 236 242 self.toggle_grid.SetValue(grid) 237 243 if self.legend: … … 243 249 self.xfont = xaxis_font 244 250 self.yfont = yaxis_font 251 self.is_xtick = is_xtick 252 self.is_ytick = is_ytick 245 253 246 254 if not xcolor: … … 303 311 return self.yfont 304 312 313 def get_xtick_check(self): 314 return self.is_xtick 315 316 def get_ytick_check(self): 317 return self.is_ytick 318 305 319 306 320 if __name__ == '__main__': -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/masking.py
r3f68e93 r657e52c 558 558 style=wx.TRANSPARENT_WINDOW) 559 559 self.plotpanel._SetInitialSize() 560 self.plotpanel.prevXtrans = "x" 561 self.plotpanel.prevYtrans = "y" 560 562 561 563 self.cmap = DEFAULT_CMAP -
sansguiframe/src/sans/guiframe/local_perspectives/plotting/profile_dialog.py
r808da5e r657e52c 213 213 self.window_name = "Scattering Length Density Profile" 214 214 self.window_caption = self.window_name 215 self.prevXtrans = "x" 216 self.prevYtrans = "y" 217 self.viewModel = "--" 215 218 # Internal list of plottable names (because graph 216 219 # doesn't have a dictionary of handles for the plottables) -
sansguiframe/src/sans/guiframe/startup_configuration.py
r6306f2f r657e52c 84 84 current_bt.SetValue(False) 85 85 current_bt.Bind(wx.EVT_RADIOBUTTON, self.OnCurrent) 86 msg = "\nThis new configuration will take effect after\n"87 msg += "r estarting the SansView application..."86 msg = "\nThis new configuration will take effect when\n" 87 msg += "running this application next time." 88 88 note_txt = wx.StaticText(panel, -1, msg, (15, 75)) 89 89 note_txt.SetForegroundColour("black")
Note: See TracChangeset
for help on using the changeset viewer.