Ignore:
Timestamp:
05/18/11 15:03:16 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: enabled flagplotter on PyQt4 backend

Test Programs: sdflag with interactive=True

Put in Release Notes: Yes

Module(s): flagplotter, sdflag, asapplotter, sdplot

Description:

enabled flagplotter on PyQt4 backend
renamed methods_newcasabar() in asapplotter and flagplotter class as _new_custombar()


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/flagplotter.py

    r2155 r2173  
    2727        self._scan = None
    2828        asapplotter.__init__(self,visible=visible, **kwargs)
    29         self._plotter.window.title('Flag Plotter')
     29        self._plotter._set_window_title('Flag Plotter')
    3030        self._panelling = 'r'
    3131        self.set_stacking('scan')
    3232        self._ismodified = False
    3333
    34     def _newcasabar(self):
     34    def _new_custombar(self):
    3535        backend = matplotlib.get_backend()
    36         if self._visible and backend == "TkAgg":
    37             #from asap.casatoolbar import CustomToolbarTkAgg
    38             #return CustomToolbarTkAgg(self)
     36        # Flag plotter relys on supported GUI backends
     37        if not self._visible:
     38            asaplog.push("GUI backend is not available")
     39            asaplog.post("ERROR")
     40        elif backend == "TkAgg":
    3941            from asap.customgui_tkagg import CustomFlagToolbarTkAgg
    4042            return CustomFlagToolbarTkAgg(self)
    41         return None
     43        elif backend == "Qt4Agg":
     44            from asap.customgui_qt4agg import CustomFlagToolbarQT4Agg
     45            return CustomFlagToolbarQT4Agg(self)
     46        else:
     47            asaplog.push("Unsupported backend for interactive flagging. Use either TkAgg or PyQt4Agg")
     48            asaplog.post("ERROR")
    4249
    4350    @asaplog_post_dec
Note: See TracChangeset for help on using the changeset viewer.