Changeset 1826 for trunk/python/asaplotgui.py
- Timestamp:
- 08/03/10 11:41:13 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotgui.py
r1819 r1826 17 17 18 18 def __init__(self, rows=1, cols=0, title='', size=None, buffering=False): 19 20 19 """ 20 Create a new instance of the ASAPlot plotting class. 21 21 22 23 24 22 If rows < 1 then a separate call to set_panels() is required to define 23 the panel layout; refer to the doctext for set_panels(). 24 """ 25 25 v = vars() 26 26 del v['self'] … … 49 49 50 50 def map(self): 51 52 53 54 55 56 51 """ 52 Reveal the ASAPlot graphics window and bring it to the top of the 53 window stack. 54 """ 55 self.window.wm_deiconify() 56 self.window.lift() 57 57 58 58 def quit(self): 59 60 61 62 59 """ 60 Destroy the ASAPlot graphics window. 61 """ 62 self.window.destroy() 63 63 64 64 def show(self, hardrefresh=True): 65 66 67 68 65 """ 66 Show graphics dependent on the current buffering state. 67 """ 68 if not self.buffering: 69 69 if hardrefresh: 70 70 asaplotbase.show(self) 71 72 71 self.window.wm_deiconify() 72 self.canvas.show() 73 73 74 74 def terminate(self): 75 76 77 78 75 """ 76 Clear the figure. 77 """ 78 self.window.destroy() 79 79 80 80 def unmap(self): 81 82 83 84 81 """ 82 Hide the ASAPlot graphics window. 83 """ 84 self.window.wm_withdraw()
Note: See TracChangeset
for help on using the changeset viewer.