Ignore:
Timestamp:
Sep 29, 2011 12:17:08 PM (13 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:
67cf696
Parents:
62258ee
Message:

fixed plot symbol custom size dialog: had errors on cancel and invalid values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/local_perspectives/plotting/Plotter1D.py

    r5f15492 r30ccad1  
    559559            sizedial = SizeDialog(None, -1, 'Change Marker Size') 
    560560            if sizedial.ShowModal() == wx.ID_OK: 
    561                 label = sizedial.getText() 
     561                try: 
     562                    label = sizedial.getText() 
     563                    selected_plot.markersize = int(label) 
     564                    self._check_zoom_plot() 
     565                except: 
     566                    msg = 'Symbol Size: Got an invalid Value.' 
     567                    wx.PostEvent( self.parent,  
     568                          StatusEvent(status= msg, info='error')) 
    562569            sizedial.Destroy() 
    563570 
    564         selected_plot.markersize = int(label) 
    565         self._check_zoom_plot() 
    566         #self._onEVT_FUNC_PROPERTY() 
    567         ## Set the view scale for all plots 
    568          
    569         ## render the graph 
    570         #self.graph.render(self) 
    571         #self.subplot.figure.canvas.draw_idle() 
    572571 
    573572     
Note: See TracChangeset for help on using the changeset viewer.