Ignore:
Timestamp:
08/30/10 12:47:16 (14 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: Yes (CAS-1822)

Ready for Test: Yes

Interface Changes: Yes

What Interface Changed: added "- page" (inactive) and "+ page" buttons to the toolbar

Test Programs: try "+ page" button

Put in Release Notes: Yes

Module(s): asapplotter & sdplot

Description:

  1. "- page" (inactive) and "+ page" buttons to the toolbar to enable

multi-page plotting. Currently "+ page" is only supported.

  1. Enabled row panelling and stacking. Note that only single stack/panel

is plotted when row panneling/stacking is selected.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/casatoolbar.py

    r1890 r1913  
    167167        return False
    168168
     169    def _new_page(self,next=True):
     170        self.plotter._plotter.hold()
     171        self.plotter._plotter.clear()
     172        self.plotter._plot(self.plotter._data)
     173        self.plotter._plotter.release()
     174        self.plotter._plotter.tidy()
     175        self.plotter._plotter.show(hardrefresh=False)
     176        pass
     177
    169178#####################################
    170179##    Backend dependent Classes    ##
     
    202211                                   text='notation',
    203212                                   command=self.modify_note)
     213        self.bPrev=self._NewButton(master=self,
     214                                   text='- page',
     215                                   command=self.prev_page)
     216        self.bPrev.config(padx=5)
     217        self.bNext=self._NewButton(master=self,
     218                                   text='+ page',
     219                                   command=self.next_page)
     220        self.bNext.config(padx=5)
    204221        self.bQuit=self._NewButton(master=self,
    205222                                   text='Quit',
     
    256273        self._p.register('button_press',self._mod_note)
    257274
     275    def prev_page(self):
     276        self.figmgr.toolbar.set_message('plotting the previous page')
     277        self._new_page(next=False)
     278
     279    def next_page(self):
     280        self.figmgr.toolbar.set_message('plotting the next page')
     281        self._new_page(next=True)
     282
    258283    def quit(self):
    259284        self.__disconnect_event()
     
    273298        self.bStat.config(relief='raised', state=Tk.DISABLED)
    274299        self.bSpec.config(relief='raised', state=Tk.DISABLED)
     300        self.bPrev.config(state=Tk.DISABLED)
     301        #self.bNext.config(state=Tk.DISABLED)
    275302        self.button=False
    276303        self.mode=''
    277304        self.__disconnect_event()
     305
     306    def enable_next(self):
     307        self.bNext.config(state=Tk.NORMAL)
     308
     309    def disable_next(self):
     310        self.bNext.config(state=Tk.DISABLED)
     311
     312    def enable_prev(self):
     313        self.bPrev.config(state=Tk.NORMAL)
     314
     315    def disable_prev(self):
     316        self.bPrev.config(state=Tk.DISABLED)
    278317
    279318    def delete_bar(self):
Note: See TracChangeset for help on using the changeset viewer.