Changeset 1913 for trunk/python/casatoolbar.py
- Timestamp:
- 08/30/10 12:47:16 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/casatoolbar.py
r1890 r1913 167 167 return False 168 168 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 169 178 ##################################### 170 179 ## Backend dependent Classes ## … … 202 211 text='notation', 203 212 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) 204 221 self.bQuit=self._NewButton(master=self, 205 222 text='Quit', … … 256 273 self._p.register('button_press',self._mod_note) 257 274 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 258 283 def quit(self): 259 284 self.__disconnect_event() … … 273 298 self.bStat.config(relief='raised', state=Tk.DISABLED) 274 299 self.bSpec.config(relief='raised', state=Tk.DISABLED) 300 self.bPrev.config(state=Tk.DISABLED) 301 #self.bNext.config(state=Tk.DISABLED) 275 302 self.button=False 276 303 self.mode='' 277 304 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) 278 317 279 318 def delete_bar(self):
Note: See TracChangeset
for help on using the changeset viewer.