Return command button gridded in command frame.
(self, label, command, isdef=0)
| 167 | return frame, others |
| 168 | |
| 169 | def make_button(self, label, command, isdef=0): |
| 170 | "Return command button gridded in command frame." |
| 171 | b = Button(self.buttonframe, |
| 172 | text=label, command=command, |
| 173 | default=isdef and "active" or "normal") |
| 174 | cols,rows=self.buttonframe.grid_size() |
| 175 | b.grid(pady=1,row=rows,column=0,sticky="ew") |
| 176 | self.buttonframe.grid(rowspan=rows+1) |
| 177 | return b |
| 178 | |
| 179 | def create_command_buttons(self): |
| 180 | "Place buttons in vertical command frame gridded on right." |