def build( self ): """Lays out the components of the window.""" # We'll have one grid of labels for each device, # laid out in four rows. top_row = Row( [self.rms_checkbox, self.rms_samples_field] ) label_frame = ggutils.frame_items( self.labels ) self.place( top_row, left=PADDING, top=PADDING ) self.place( label_frame, left=PADDING, top=top_row.bottom+PADDING ) self.shrink_wrap()
def build( self ): """Lays out the components of the window.""" box_frame = ggutils.frame_items(self.checkboxes, layout=CHECKBOX_LAYOUT) self.place( box_frame, left=PADDING, top=PADDING ) self.place( self.plot_button, left=PADDING, top=box_frame.bottom+3*PADDING ) self.shrink_wrap()