Changeset 30ccad1 in sasview


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

Location:
sansguiframe/src/sans/guiframe
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sansguiframe/src/sans/guiframe/gui_manager.py

    r2e9d14c r30ccad1  
    160160IS_WIN = True 
    161161CLOSE_SHOW = True 
     162TIME_FACTOR = 5 
    162163if sys.platform.count("win32")==0: 
    163164    IS_WIN = False 
     165    TIME_FACTOR = 5 
    164166    if int(wx.__version__.split('.')[0]) == 2: 
    165167        if int(wx.__version__.split('.')[1]) < 9: 
     
    273275        self._idle_count = 0 
    274276        self.schedule_full_draw_list = [] 
    275         self.idletimer = wx.CallLater(1, self._onDrawIdle) 
     277        self.idletimer = wx.CallLater(TIME_FACTOR, self._onDrawIdle) 
    276278         
    277279        self.batch_frame = GridFrame(parent=self) 
     
    15241526        self.on_set_plot_focus(self.panels[panel_id]) 
    15251527        self.show_panel(evt.GetId(), 'on')       
    1526         wx.CallLater(5, self.set_schedule(True)) 
     1528        wx.CallLater(5*TIME_FACTOR, self.set_schedule(True)) 
    15271529        self.set_plot_unfocus() 
    15281530         
     
    29272929        """ 
    29282930        # restart idle    
    2929         self.idletimer.Restart(55, *args, **kwargs) 
     2931        self.idletimer.Restart(55*TIME_FACTOR, *args, **kwargs) 
    29302932 
    29312933         
  • 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.