Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example code throws: AttributeError: 'FigureCanvasTkAgg' object has no attribute 'show' #6

Open
mfisher-klarisdx opened this issue Sep 23, 2019 · 2 comments

Comments

@mfisher-klarisdx
Copy link

python: 3.5.2
joystick: 0.3.8
tkinter: 8.6 ("python3 -m tkinter" reports 8.6)

When running the example code from: https://pypi.org/project/joystick/, I get the following exception and traceback:

Traceback (most recent call last):
File "jtest.py", line 71, in
t = test()
File "/home/mfisher/.local/lib/python3.5/site-packages/joystick/joystick.py", line 49, in init
self._callmthd(after, **kwargs)
File "/home/mfisher/.local/lib/python3.5/site-packages/joystick/core.py", line 177, in callmthd
ret.append(getattr(obj, item)(**kwargs))
File "/home/mfisher/.local/lib/python3.5/site-packages/joystick/deco.py", line 156, in func_wrapper
func(self, **kwargs) # finally calling some stuff
File "jtest.py", line 27, in _build_frames
xylim=(0,10,0,1), xlabel='t', ylabel='random'))
File "/home/mfisher/.local/lib/python3.5/site-packages/joystick/graph.py", line 105, in init
self._init_base(**self._kwargs)
File "/home/mfisher/.local/lib/python3.5/site-packages/joystick/graph.py", line 113, in _init_base
self._init_basic_graph(**kwargs)
File "/home/mfisher/.local/lib/python3.5/site-packages/joystick/graph.py", line 130, in _init_basic_graph
self._canvas.show()
AttributeError: 'FigureCanvasTkAgg' object has no attribute 'show'

@mfisher-klarisdx mfisher-klarisdx changed the title Example code throws: AttribAttributeError: 'FigureCanvasTkAgg' object has no attribute 'show'uteError: 'FigureCanvasTkAgg' object has no attribute 'show' Example code throws: AttributeError: 'FigureCanvasTkAgg' object has no attribute 'show'uteError: 'FigureCanvasTkAgg' object has no attribute 'show' Sep 23, 2019
@mfisher-klarisdx mfisher-klarisdx changed the title Example code throws: AttributeError: 'FigureCanvasTkAgg' object has no attribute 'show'uteError: 'FigureCanvasTkAgg' object has no attribute 'show' Example code throws: AttributeError: 'FigureCanvasTkAgg' object has no attribute 'show' Sep 23, 2019
@sakshatshinde
Copy link

@mfisher-klarisdx this should be using the draw() instead of show()

@Alex031544
Copy link

jarvisteach/appJar#551

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants