Changeset 2170


Ignore:
Timestamp:
05/17/11 18:14:58 (13 years ago)
Author:
Kana Sugimoto
Message:

New Development: No

JIRA Issue: No (minor fixes and improvements)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs: interactive testing

Put in Release Notes: No

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

Description:

Misc bug fixes and minor modifications:
+ fixed bug in customgui_base (scantable class referenced but not imported)
+ minor improvement of toolbar message in customgui_tkagg
+ added a new method _set_window_title(string title) to asaplotgui_qt4 and asaplotgui modules

Location:
trunk/python
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotgui.py

    r2149 r2170  
    3737        # Simply instantiating this is enough to get a working toolbar.
    3838        self.figmgr = FigureManagerTkAgg(self.canvas, 1, self.window)
    39         self.window.wm_title('ASAP Plotter - Tk')
     39        self._set_window_title('ASAP Plotter - Tk')
    4040
    4141        self.events = {'button_press':None,
     
    8484        """
    8585        self.window.wm_withdraw()
     86
     87    def _set_window_title(self,title):
     88        # Set title to main window title bar
     89        self.window.wm_title(title)
  • trunk/python/asaplotgui_qt4.py

    r2152 r2170  
    3434        self.figmgr = FigureManagerQTAgg(self.canvas, 1)
    3535        self.window = self.figmgr.window
    36         self.window.setWindowTitle('ASAP Plotter - Qt4')
     36        self._set_window_title('ASAP Plotter - Qt4')
    3737        # register this plot to matplotlib
    3838        _pylab_helpers.Gcf.set_active(self.figmgr)
     
    100100        """
    101101        self.window.hide()
     102
     103    def _set_window_title(self,title):
     104        # Set title to main window title bar
     105        self.window.setWindowTitle(title)
  • trunk/python/customgui_base.py

    r2155 r2170  
    44from matplotlib.patches import Rectangle
    55from asap.parameters import rcParams
     6from asap import scantable
    67from asap._asap import stmath
    78
  • trunk/python/customgui_tkagg.py

    r2155 r2170  
    605605    def select_region(self):
    606606        if not self.figmgr.toolbar.mode == '' or not self.button: return
    607         self.figmgr.toolbar.set_message('select rectangle regions')
     607        self.figmgr.toolbar.set_message('select regions: click at start and end channels')
    608608        if self.mode == 'region':
    609609            self.bRegion.config(relief='raised')
     
    621621    def select_panel(self):
    622622        if not self.figmgr.toolbar.mode == '' or not self.button: return
    623         self.figmgr.toolbar.set_message('select panels')
     623        self.figmgr.toolbar.set_message('select spectra: click on subplots')
    624624        if self.mode == 'panel':
    625625            self.bPanel.config(relief='raised')
Note: See TracChangeset for help on using the changeset viewer.