Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit badc008

Browse files
committed
Fix up syntax error and import for traits example.
Not sure whether this example actually works, but this at least gets rid of errors.
1 parent 60d869c commit badc008

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/misc/rc_traits.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from __future__ import print_function
77

88
import sys, os, re
9-
import enthought.traits.api as traits
9+
import traits.api as traits
1010
from matplotlib.cbook import is_string_like
1111
from matplotlib.artist import Artist
1212

@@ -186,8 +186,8 @@ def __init__(self,
186186
p.fill = 'f'
187187
print('p.facecolor', type(p.facecolor), p.facecolor)
188188
print('p.fill', type(p.fill), p.fill)
189-
if p.fill_: print 'fill'
190-
else: print 'no fill'
189+
if p.fill_: print('fill')
190+
else: print('no fill')
191191
if doprint:
192192
print()
193193
print('Patch')

0 commit comments

Comments
 (0)