From 94976a0fd6bcf3c9ecb5ab5cf2299137428bd55a Mon Sep 17 00:00:00 2001 From: oysteini Date: Mon, 31 Jan 2011 15:37:11 +0000 Subject: [PATCH] =?UTF-8?q?Bruker=20less=20til=20liste=20over=20kj=C3=B8pt?= =?UTF-8?q?e=20produkter=20for=20en=20bruker.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- text_based.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/text_based.py b/text_based.py index 391db22..7f85a17 100755 --- a/text_based.py +++ b/text_based.py @@ -672,7 +672,6 @@ class ShowUserMenu(Menu): self.print_all_transactions(user) elif what == 'products': self.print_purchased_products(user) - self.pause() else: print 'What what?' @@ -731,9 +730,12 @@ class ShowUserMenu(Menu): if num_products == 0: print 'No products purchased yet' else: - print 'Products purchased:' + text = '' + text += 'Products purchased:\n' for product in products: - print ('%-'+str(Product.name_length)+'s %3i') % (product, products[product]) + text += ('%-'+str(Product.name_length)+'s %3i\n') \ + % (product, products[product]) + less(text) class UserListMenu(Menu):