- Timestamp:
- 04/25/11 18:38:07 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asaplotgui_qt4.py
r2151 r2152 7 7 from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg, \ 8 8 FigureManagerQTAgg 9 from matplotlib import _pylab_helpers 9 10 # Force use of the newfangled toolbar. 10 11 import matplotlib … … 34 35 self.window = self.figmgr.window 35 36 self.window.setWindowTitle('ASAP Plotter - Qt4') 37 # register this plot to matplotlib 38 _pylab_helpers.Gcf.set_active(self.figmgr) 36 39 37 40 ############# … … 39 42 ############# 40 43 def dest_callback(): 41 self.is_dead = True 44 try: 45 self.is_dead = True 46 except NameError: 47 pass 42 48 43 49 qt.QtCore.QObject.connect(self.window, qt.QtCore.SIGNAL('destroyed()'),dest_callback)
Note:
See TracChangeset
for help on using the changeset viewer.