Python Forum
how to count elements in list box?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to count elements in list box?
#3
(Nov-02-2016, 08:42 PM)metulburr Wrote:
Quote:but it shows up in the console
If you want it to show in the GUI you need to make a label for it, not print().

http://effbot.org/tkinterbook/label.htm


Yes i know. i got one for it in class StatusBar. But what i meant was how do i make the label in there show how many elements there are in the listbox and every time i add a new one the number should change to show the new amount.
Reply


Messages In This Thread
how to count elements in list box? - by qrion - Nov-02-2016, 04:54 PM
RE: how to count elements in list box? - by qrion - Nov-03-2016, 04:46 AM
RE: how to count elements in list box? - by qrion - Nov-03-2016, 05:12 AM
RE: how to count elements in list box? - by qrion - Nov-03-2016, 05:36 AM

Forum Jump:

User Panel Messages

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