|
36 | 36 |
|
37 | 37 | from matplotlib.externals import six
|
38 | 38 | from matplotlib.externals.six.moves import xrange, zip
|
| 39 | +from matplotlib.cbook import warn_deprecated |
39 | 40 |
|
40 | 41 | import copy
|
41 | 42 | import gtk, gobject
|
|
44 | 45 | import matplotlib.mlab as mlab
|
45 | 46 |
|
46 | 47 |
|
| 48 | +warn_deprecated("2.0", name="mpl_toolkits.gtktools", obj_type="module") |
| 49 | + |
| 50 | + |
47 | 51 | def error_message(msg, parent=None, title=None):
|
48 | 52 | """
|
49 | 53 | create an error message dialog with string msg. Optionally set
|
@@ -387,7 +391,7 @@ def __init__(self, r, formatd=None, stringd=None):
|
387 | 391 | formatd = mlab.get_formatd(r)
|
388 | 392 |
|
389 | 393 | self.stringd = stringd
|
390 |
| - self.callbacks = cbook.CallbackRegistry(['cell_changed']) |
| 394 | + self.callbacks = cbook.CallbackRegistry() |
391 | 395 |
|
392 | 396 | self.r = r
|
393 | 397 |
|
@@ -599,7 +603,7 @@ def edit_recarray(r, formatd=None, stringd=None, constant=None, autowin=True):
|
599 | 603 | clientid = list(xrange(N)) # ints
|
600 | 604 |
|
601 | 605 | r = np.rec.fromarrays([clientid, dates, weekdays, gains, prices, up],
|
602 |
| - names='clientid,date,weekdays,gains,prices,up') |
| 606 | + names=str('clientid,date,weekdays,gains,prices,up')) |
603 | 607 |
|
604 | 608 | # some custom formatters
|
605 | 609 | formatd = mlab.get_formatd(r)
|
|
0 commit comments