Python Forum
Need help with an error
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help with an error
#4
Quote:screen_numbers = Text(screen_topside, height='fill', width='fill')
your screen_numbers is a Text widget to manipulate the text you use value like so:
count= 1 #used to keep track of the number of ones will need to be reset
# Functions
def one():
    global count    
    screen_numbers.value= '1' * count
    count +=1
all numbers added to your screen_numbers are strings and will need to be converted to integers to evaluate their expressions. check out the module partial, it allows you to pass arguments to your number and other buttons- best of luck
Reply


Messages In This Thread
Need help with an error - by Miguel_Lona605 - Mar-25-2020, 09:17 PM
RE: Need help with an error - by michael1789 - Mar-25-2020, 09:35 PM
RE: Need help with an error - by Miguel_Lona605 - Mar-25-2020, 11:36 PM
RE: Need help with an error - by joe_momma - Mar-26-2020, 12:03 AM

Forum Jump:

User Panel Messages

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