Python Forum
Tkinter & matplotlib
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tkinter & matplotlib
#7
(Nov-22-2019, 04:43 PM)Larz60+ Wrote: Again:
The error is:
Error:
Exception in Tkinter callback Traceback (most recent call last): File "/home/captainkirk/.pyenv/versions/3.7.4/lib/python3.7/tkinter/__init__.py", line 1705, in __call__ return self.func(*args) File "/media/captainkirk/Data-3TB/projects/T-Z/T/TryStuff/src/PyMatplotlib.py", line 17, in inputik nPoints = int(pocetbodu_entry.get()) NameError: name 'pocetbodu_entry' is not defined
Which very clearly states that 'pocetbodu_entry' is not defined

I suggest that you run step by step through a debugger and watch the program flow.

I am getting different error, I'm sorry if I am misunderstanding something, but as far as I can understand it, pocetbodu_entry is defined and works fine, its the line 68 which I can't figure out, without the for cycle on line 67, everything works fine and gets ploted.

Error:
C:/Users/Admin/Downloads/Škola/Python projects/Hangman/testtest.py:66: MatplotlibDeprecationWarning: Adding an axes using the same arguments as a previous axes currently reuses the earlier instance. In a future version, a new instance will always be created and returned. Meanwhile, this warning can be suppressed, and the future behavior ensured, by passing a unique label to each axes instance. ax2 = fig.add_subplot(111).plot(xpoints, ypoints, "ro") Exception in Tkinter callback Traceback (most recent call last): File "C:\Program Files (x86)\Python37-32\lib\tkinter\__init__.py", line 1705, in __call__ return self.func(*args) File "C:/Users/Admin/Downloads/Škola/Python projects/Hangman/testtest.py", line 19, in inputik vykresleni() File "C:/Users/Admin/Downloads/Škola/Python projects/Hangman/testtest.py", line 68, in vykresleni ax2.text(points[nr][0], points[nr][0], nr) AttributeError: 'list' object has no attribute 'text'
Reply


Messages In This Thread
Tkinter & matplotlib - by PillyChepper - Nov-21-2019, 05:18 PM
RE: Tkinter & matplotlib - by Larz60+ - Nov-21-2019, 07:34 PM
RE: Tkinter & matplotlib - by PillyChepper - Nov-21-2019, 08:13 PM
RE: Tkinter & matplotlib - by Larz60+ - Nov-22-2019, 02:37 AM
RE: Tkinter & matplotlib - by PillyChepper - Nov-22-2019, 03:40 PM
RE: Tkinter & matplotlib - by Larz60+ - Nov-22-2019, 04:43 PM
RE: Tkinter & matplotlib - by PillyChepper - Nov-22-2019, 05:08 PM
RE: Tkinter & matplotlib - by Larz60+ - Nov-22-2019, 05:18 PM
RE: Tkinter & matplotlib - by Larz60+ - Nov-22-2019, 05:56 PM
RE: Tkinter & matplotlib - by PillyChepper - Nov-23-2019, 10:36 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Interaction between Matplotlib window, Python prompt and TKinter window NorbertMoussy 3 581 Mar-17-2024, 09:37 AM
Last Post: deanhystad
  [Tkinter] Tkinter Matplotlib Animation Graph not rendering dimidgen 3 686 Mar-12-2024, 02:09 PM
Last Post: deanhystad
  How to use rangesliders feature from matplotlib in tkinter? pymn 2 3,008 Feb-28-2022, 05:06 PM
Last Post: pymn
  Tkinter Matplotlib Nepo 1 2,493 Sep-27-2020, 10:20 AM
Last Post: Gribouillis
  Making a Matplotlib in Tkinter using a slider Jemeronimo 1 5,704 Dec-05-2018, 08:06 AM
Last Post: Gribouillis
  how to install numpy and matplotlib to Tkinter elwolv 4 4,807 Dec-02-2017, 06:17 PM
Last Post: Barrowman

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020