Commits

Matthew Turk committed 7695475

Option menu is created, but binding an on-change command isn't yet done, and
only the x-slices work yet.

Comments (0)

Files changed (1)

fisheye/parameter_file_frame.py

         # Add our buttons
         button_frame = Tk.Frame(frame, bd=2, relief=Tk.GROOVE)
         button_frame.grid(row=0)
+        self.button_frame = button_frame
         self.plot_frame = Tk.Frame(frame, bd=2, relief=Tk.GROOVE)
         self.plot_frame.grid(row=1)
 
         self.current_plot = Tk.StringVar()
         if self.active_plot >= 0:
             self.current_plot.set(option_list[self.active_plot])
-        self.plot_list = Tk.OptionMenu()
+        self.plot_list = Tk.OptionMenu(self.button_frame,
+            self.current_plot, *option_list)
+        self.plot_list.grid(row = 0, column = 3)
 
     def set_plot(self, plot_id):
         if isinstance(plot_id, types.StringTypes):