Python Forum
[Tkinter] Tkinter Textbox only showing one character
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] Tkinter Textbox only showing one character
#2
Foung the Error:

if parsedFile[n] != 'b\x00':
should be:

if parsedFile[n] != b'\x00':
The b (standing for byte) was inside the quotation marks instead of in front

Tkinter was only printing the first character in the artistArray because the second index on the array will not display because it cannot be decoded into UTF-8 string when it is (byte) b'\x00'
Reply


Messages In This Thread
RE: Tkinter Textbox only showing one character - by Xylianth - Jan-29-2021, 02:59 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  recording textbox data into a variable paul18fr 4 430 Feb-19-2024, 09:30 PM
Last Post: Axel_Erfurt
  [Tkinter] tkinter menubar not showing on mac ventura taras 1 2,083 Dec-17-2022, 02:44 PM
Last Post: Yoriz
  tkinter showing image in button rwahdan 3 5,617 Jun-16-2021, 06:08 AM
Last Post: Yoriz
  [Tkinter] Redirecting stdout to TextBox in realtime Gilush 2 9,854 Jun-06-2020, 11:05 AM
Last Post: deanhystad
  [Tkinter] Entry box not showing 2 decimal places Chuck_Norwich 3 5,705 Apr-24-2020, 05:28 PM
Last Post: deanhystad
  tkinter how to unselect text in textbox Battant 0 2,257 Feb-17-2020, 02:00 PM
Last Post: Battant
  [Tkinter] showing results in TKInter as Vertical List diegoctn 4 3,241 Jan-18-2019, 02:33 PM
Last Post: diegoctn
  [Tkinter] cannot type in textbox msteffes 2 3,000 Jul-28-2018, 04:20 AM
Last Post: msteffes
  GUI insert textbox value into a Class dimvord 0 2,245 Jul-04-2018, 06:49 PM
Last Post: dimvord
  [Tkinter] Tkinter optionmenu child menu position showing 0,0 thatguy14 2 4,641 Jun-15-2018, 10:42 AM
Last Post: thatguy14

Forum Jump:

User Panel Messages

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