Changeset 80a7f77 in sasview


Ignore:
Timestamp:
Apr 22, 2010 10:00:56 AM (15 years ago)
Author:
Jae Cho <jhjcho@…>
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:
9e977fc
Parents:
46e7e82
Message:

fomat some nmubers

File:
1 edited

Legend:

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

    r1f1cacf r80a7f77  
    163163            @param sym: 
    164164        """ 
    165         self.xnpts_ctl.SetLabel(str(float(xnpts))) 
    166         self.ynpts_ctl.SetLabel(str(float(ynpts))) 
    167         self.qmax_ctl.SetLabel(str(float(qmax))) 
    168         self.beam_ctl.SetLabel(str(float(beam))) 
     165        self.xnpts_ctl.SetLabel(str(format_number(xnpts))) 
     166        self.ynpts_ctl.SetLabel(str(format_number(ynpts))) 
     167        self.qmax_ctl.SetLabel(str(format_number(qmax))) 
     168        self.beam_ctl.SetLabel(str(format_number(beam))) 
    169169         
    170170     
    171171        
    172172        if zmin !=None: 
    173             self.zmin_ctl.SetValue(str(float(zmin))) 
     173            self.zmin_ctl.SetValue(str(format_number(zmin))) 
    174174        if zmax !=None: 
    175             self.zmax_ctl.SetValue(str(float(zmax))) 
     175            self.zmax_ctl.SetValue(str(format_number(zmax))) 
    176176 
    177177    def getContent(self): 
Note: See TracChangeset for help on using the changeset viewer.