Changeset 2151 for trunk/python


Ignore:
Timestamp:
04/22/11 18:59:12 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (a fix)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s):

Description: more proper handling of window action in qt4Agg backend.


Location:
trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asapfitter.py

    r2150 r2151  
    667667            self.blpars.append(fpar)
    668668        if plot:
    669             self._p.unmap()
     669            self._p.quit()
     670            del self._p
    670671            self._p = None
    671672        return scan
  • trunk/python/asaplotgui_qt4.py

    r2149 r2151  
    6868        """
    6969        self.is_dead = True
    70         self.window.close()
     70        try: self.window.close()
     71        except RuntimeError: pass # the window may already be closed by user
    7172
    7273    def show(self, hardrefresh=True):
Note: See TracChangeset for help on using the changeset viewer.