update label text in for loop
I’m working on a shopping cart GUI. I have a list called my_order, which stores the information I get from the user. I want to update label text in a for loop so I can print all the elements of my_order list. Here’s my code: class PaymentScreen(QMainWindow): def __init__(self): super(PaymentScreen, self).__init__() loadUi("paymentscreen.ui",self) self.gobackbutton.clicked.connect(self.goback) self.basket.setText("{}".format(my_order)) #the… Read More update label text in for loop