Python Forum
Multiply function using Tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiply function using Tkinter
#5
I think the point of Larz's comment was to get information on the state of the program right before the error, so that you could tell which value is causing the problem. Although, it would help if you used {!r} in place of {} in his format statement, which would distinguish '5' from 5.

Based on the error, I expect it's num2. I would also note that you are not converting to integer in mulitply_num as you are in calc_sum.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Multiply function using Tkinter - by ady1583 - Dec-20-2018, 07:59 PM
RE: Multiply function using Tkinter - by ichabod801 - Dec-20-2018, 08:05 PM
RE: Multiply function using Tkinter - by Larz60+ - Dec-20-2018, 11:48 PM
RE: Multiply function using Tkinter - by ady1583 - Dec-21-2018, 02:37 PM
RE: Multiply function using Tkinter - by ichabod801 - Dec-21-2018, 02:51 PM
RE: Multiply function using Tkinter - by buran - Dec-21-2018, 02:59 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using Tkinter inside function not working Ensaimadeta 5 5,228 Dec-03-2023, 01:50 PM
Last Post: deanhystad
  Tkinter won't run my simple function AthertonH 6 4,063 May-03-2022, 02:33 PM
Last Post: deanhystad
  [Tkinter] tkinter best way to pass parameters to a function Pedroski55 3 5,007 Nov-17-2021, 03:21 AM
Last Post: deanhystad
  Creating a function interrupt button tkinter AnotherSam 2 5,666 Oct-07-2021, 02:56 PM
Last Post: AnotherSam
  [Tkinter] Have tkinter button toggle on and off a continuously running function AnotherSam 5 5,146 Oct-01-2021, 05:00 PM
Last Post: Yoriz
  tkinter get function finndude 2 3,039 Mar-02-2021, 03:53 PM
Last Post: finndude
  tkinter -- after() method and return from function -- (python 3) Nick_tkinter 12 7,696 Feb-20-2021, 10:26 PM
Last Post: Nick_tkinter
  function in new window (tkinter) Dale22 7 5,365 Nov-24-2020, 11:28 PM
Last Post: Dale22
Star [Tkinter] How to perform math function in different page of Tkinter GUI ravaru 2 4,673 Oct-23-2020, 05:46 PM
Last Post: deanhystad
  Call local variable of previous function from another function with Python3 & tkinter Hannibal 5 4,581 Oct-12-2020, 09:16 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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