Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #25512
| From | Shamefaced <manengstudent@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Blank TK Window |
| Date | 2012-07-17 09:32 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <250fc186-0fa9-481c-8b2b-44e77921e6d8@googlegroups.com> (permalink) |
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()
Simulation.activate(cf, cf.run(), 0.0)
Simulation.simulate(until=CLOSING)
Histo = waittime.histogram(low=0.0, high=80, nbins=40)
plt = SimPlot()
plt.plotLine(Histo, xlab='Time (min)',ylab='Qty Customers',
title="Wait Time",
color="red", width=2,
smooth='True')
plt.mainloop()
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Blank TK Window Shamefaced <manengstudent@gmail.com> - 2012-07-17 09:32 -0700 Re: Blank TK Window woooee <woooee@gmail.com> - 2012-07-17 09:47 -0700
csiph-web