Python Forum
Test program returns int (I want int) and real one returns tuple (not wanted)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Test program returns int (I want int) and real one returns tuple (not wanted)
#8
(Mar-25-2020, 05:21 PM)chesschaser Wrote: It's not itembox's type I'm worried about.

You should be worried. ListBox.size() returns int as you example code show. It's pretty clear itembox is NOT ListBox.

Also please, post full traceback produced by your real code, not something else, e.g. your traceback refer to line 1 and line that is just int(itembox.size()). Full code would be helpful too
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Test program returns int (I want int) and real one returns tuple (not wanted) - by buran - Mar-25-2020, 05:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Entry returns NONE mollerpunker 2 2,584 Dec-06-2020, 06:50 PM
Last Post: DT2000

Forum Jump:

User Panel Messages

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