Reverted to python2 and added None Available text when no Filters are available.

This commit is contained in:
Adam Nelson 2014-01-22 14:54:10 -05:00
parent 39a97d6be5
commit 65a25edf63

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
"""Python script to plot tally data generated by OpenMC."""
@ -182,6 +182,12 @@ class MeshPlotter(tk.Frame):
combobox.grid(row=count+6, column=1, sticky=tk.W+tk.E)
combobox.bind('<<ComboboxSelected>>', self.redraw)
# If There are no filters, leave a 'None available' message
if count == 0:
count += 1
label = tk.Label(self.selectFrame, text="None Available")
label.grid(row=count+6, column=0, sticky=tk.W)
self.redraw()
def redraw(self, event=None):