vcs
vcs copied to clipboard
Canvas.copyfontto() calls non-existent function
@doutriaux1 @chaosphere2112, here's another possible deprecation. Whether we're going to nuke it or implement it later, let me know and I'll update the docs. The copyfontto() function is also called in Canvas.setdefaultfont().
>>> a=vcs.init()
>>> a.listelements('font') # show all font names
[...]
>>> a.copyfontto('Russian', 'Times')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-104-44742c8d0004> in <module>()
----> 1 a.copyfontto('Russian','Times')
/Users/brown308/anaconda/envs/2.8/lib/python2.7/site-packages/vcs/Canvas.pyc in copyfontto(self, font1, font2)
5673 "Error you must pass either a number or font name!, you passed for font 2: %s" %
5674 font2)
-> 5675 return self.canvas.copyfontto(*(index1, index2))
5676
5677 def setdefaultfont(self, font):
AttributeError: 'module' object has no attribute 'copyfontto'