File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -316,13 +316,12 @@ def refresh(self):
316316 def onClosing (self , cell ):
317317 print " ------> Closing!"
318318 self .stopAnimation ()
319- if cell <> None :
320- self .cfgManager .parent .clear ( cell )
321- self .terminate ()
322- self .renderer .RemoveAllViewProps ()
323- self .clearReferrents ()
324- if self .renderWindowInteractor <> None :
325- self .renderWindowInteractor .TerminateApp ()
319+ self .cfgManager .parent .clear ( cell )
320+ self .terminate ()
321+ self .renderer .RemoveAllViewProps ()
322+ self .clearReferrents ()
323+ if self .renderWindowInteractor <> None :
324+ self .renderWindowInteractor .TerminateApp ()
326325
327326# pipeline = DV3DPipelineHelper.getPipeline( cell_address, sheetName )
328327# if pipeline == None: pipeline = self.getCurrentPipeline()
@@ -338,11 +337,11 @@ def terminate( self ):
338337 pass
339338
340339 def quit ( self , ** args ):
340+ self .saveState ()
341+ self .onClosing (None )
341342 eventArgs = args .get ( 'args' , None )
342343 if eventArgs and ( eventArgs [1 ] == 'Q' ):
343- self .saveState ()
344- self .onClosing (None )
345- sys .exit ( 0 )
344+ sys .exit ( 0 )
346345
347346 def stepAnimation (self , ** args ):
348347 if self .record_animation : self .captureFrame ()
Original file line number Diff line number Diff line change 44f = cdms2 .open (vcs .prefix + "/sample_data/clt.nc" )
55v = f ["clt" ]
66dv3d = vcs .get3d_scalar ()
7- x .plot ( v , dv3d )
7+ d = x .plot ( v , dv3d )
88x .interact ()
99
You can’t perform that action at this time.
0 commit comments