Changeset 1765 for branches/alma


Ignore:
Timestamp:
07/13/10 23:25:48 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (bug fixes)

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: Quit plotter with buttons and replot

Put in Release Notes: No

Module(s): sdplot

Description: fixed bugs for the plotter to work fine for replotting once after quitted


Location:
branches/alma/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/alma/python/asapplotter.py

    r1758 r1765  
    9090        """
    9191        if self._plotter.is_dead:
     92            if hasattr(self._plotter.figmgr,'casabar'):
     93                del self._plotter.figmgr.casabar
    9294            self._plotter = self._newplotter()
     95            self._plotter.figmgr.casabar=self._newcasabar()
    9396        self._plotter.hold()
    9497        self._plotter.clear()
     
    11671170    def plottp(self, scan=None, outfile=None):
    11681171        if self._plotter.is_dead:
     1172            if hasattr(self._plotter.figmgr,'casabar'):
     1173                del self._plotter.figmgr.casabar
    11691174            self._plotter = self._newplotter()
     1175            self._plotter.figmgr.casabar=self._newcasabar()
    11701176        self._plotter.hold()
    11711177        self._plotter.clear()
  • branches/alma/python/casatoolbar.py

    r1724 r1765  
    210210    def quit(self):
    211211        self.__disconnect_event()
    212         self.delete_bar()
     212        #self.delete_bar()
     213        self.disable_button()
    213214        self.figmgr.window.wm_withdraw()
    214215
     
    231232        self.__disconnect_event()
    232233        self.custombar.destroy()
    233         self.custombar=None             
     234        self.custombar=None
    234235
    235236    def __disconnect_event(self):
Note: See TracChangeset for help on using the changeset viewer.