Blank TK Window

2012-07-17 Thread Shamefaced
Hi, Any reason why a blank Tk() window opens up when I run my code: Code: for run in range(RUNS): waittime = Monitor2() checkouttime = Monitor2() totaltimeinshop = Monitor2() checkout_aisle = Simulation.Resource(AISLES) Simulation.initialize() cf = Customer_Market() Simu

Re: Adding to a List and displaying quantity in the list

2012-07-10 Thread Shamefaced
else: > print("%8.3f %s: Waited too long %6.3f" % (now()/60, self.name, > wait) + " time units have passed - Customer has left") > leavelist.append(self.acquired) Yeah, I should have changed that back to : leavelist.append(self.name) -- my thinking was that it would app

Adding to a List and displaying quantity in the list

2012-07-10 Thread Shamefaced
Hi I have coded a program whihc outputs what I like, but I am trying to modify it to add specific result info to a list and then display the number of items in the list. This is easy for me with basic code, but seems difficult when trying to adapt my program. My code and explanation is as follow