Changeset 7526ad4 in sasview for guiframe/local_perspectives


Ignore:
Timestamp:
Sep 30, 2009 3:33:58 PM (15 years ago)
Author:
Gervaise Alina <gervyh@…>
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:
9dd261e
Parents:
38de7e3
Message:

detector fix for reset button

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guiframe/local_perspectives/plotting/detector_dialog.py

    r9c0fe9a5 r7526ad4  
    9090        """ 
    9191        try: 
    92             self.zmin_ctl.SetValue(str(float(self.reset_zmin_ctl))) 
    93             self.zmax_ctl.SetValue(str(float(self.reset_zmax_ctl))) 
     92            zmin= self.reset_zmin_ctl 
     93            zmax= self.reset_zmax_ctl 
     94            if zmin==None: 
     95                zmin= "" 
     96            if zmax==None: 
     97                zmax= ""     
     98            self.zmin_ctl.SetValue(str(zmin)) 
     99            self.zmax_ctl.SetValue(str(zmax)) 
    94100            self.cmap = DEFAULT_CMAP 
    95             self.cmap_selector.SetValue("jet") 
     101            self.cmap_selector.SetStringSelection("jet") 
    96102            self._on_select_cmap(event=None) 
    97103        except: 
Note: See TracChangeset for help on using the changeset viewer.