Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [Tkinter] Getting First 3 characters in a listbox
#1
I'm new to Python so bare with me. I have googled this but can't seem to find the answer. How do I get the first three characters in a Tkinter listbox. Thanks.

Jeff
Quote
#2
This is one way of getting it:

 
variable1 = listbox1.get(0)
    print(variable1[:3])
Quote

Top Page

Forum Jump:


Users browsing this thread: 1 Guest(s)