Changeset 1153 for trunk/python/asaplotgui.py
- Timestamp:
- 08/21/06 10:48:45 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotgui.py
r1084 r1153 26 26 v = vars() 27 27 del v['self'] 28 28 29 29 asaplotbase.__init__(self, **v) 30 30 self.window = Tk.Tk() … … 38 38 # Simply instantiating this is enough to get a working toolbar. 39 39 self.figmgr = FigureManagerTkAgg(self.canvas, 1, self.window) 40 self.window.wm_title('ASAP lot graphics window')40 self.window.wm_title('ASAP Plotter - Tk') 41 41 42 42 self.events = {'button_press':None, … … 44 44 'motion_notify':None} 45 45 46 matplotlib. interactive= True47 self.buffering = buffering46 matplotlib.rcParams["interactive"] = True 47 #self.buffering = buffering 48 48 49 49 self.canvas.show() … … 177 177 178 178 179 def show(self ):179 def show(self, hardrefresh=True): 180 180 """ 181 181 Show graphics dependent on the current buffering state. 182 182 """ 183 183 if not self.buffering: 184 asaplotbase.show(self) 184 if hardrefresh: 185 asaplotbase.show(self) 185 186 self.window.wm_deiconify() 186 self.canvas. draw()187 self.canvas.show() 187 188 188 189 def terminate(self):
Note: See TracChangeset
for help on using the changeset viewer.