Ignore:
Timestamp:
02/21/12 14:11:09 (12 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: Yes (CAS-3749)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: an interactive test

  1. load casapy (or standalone asap)
  2. matplotlib.pyplot.show() ---> 2 plotters (ASAP plotter and matplotlib plotter) are displayed and casapy prompt is paused.
  3. close all plotter windows ---> casapy prompt should be back

Put in Release Notes: No

Module(s): sdplot, asap.plotter

Description:

Fixed a bug in asapplotter with Tk backend which caused scripts and python shells
freeze after the initial invocation of matplotlib.pyplot.show() (known as pl.show() on CASA).
plus minor fixes which handle backend dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/customgui_tkagg.py

    r2174 r2416  
    135135        self.disable_button()
    136136        self.figmgr.window.wm_withdraw()
     137        self._p.quit()
    137138
    138139    def enable_button(self):
     
    147148        #self.bSpec.config(relief='raised', state=Tk.DISABLED)
    148149        self.bStat.config(relief='raised', state=Tk.DISABLED)
    149         #self.bNext.config(state=Tk.DISABLED)
    150         #self.bPrev.config(state=Tk.DISABLED)
     150        self.bNext.config(state=Tk.DISABLED)
     151        self.bPrev.config(state=Tk.DISABLED)
    151152        self.button = False
    152153        self.mode = ''
     
    647648        self.disable_button()
    648649        self.figmgr.window.wm_withdraw()
     650        self._p.quit()
    649651
    650652    def enable_button(self):
Note: See TracChangeset for help on using the changeset viewer.