(self, start_row=0)
Set up the gui.

        The gui consists of a checkbox for auto save and two buttons put on a
        grid layout. Derived widgets that want to place controls above the auto
        save widget can set the `start_row` argument to the first free row,
        and this constructor will start filling the grid there.

        Args:
            start_row (int): the row at which to start filling the gui
Set up the gui.
Set up the gui .
def __init__(self, start_row=0):
        """
        Set up the gui.

        The gui consists of a checkbox for auto save and two buttons put on a
        grid layout. Derived widgets that want to place controls above the auto
        save widget can set the `start_row` argument to the first free row,
        and this constructor will start filling the grid there.

        Args:
            start_row (int): the row at which to start filling the gui
        """
        super().__init__()
        self.data = None
        self._absolute_path = self._abs_path_from_setting()

        # This cannot be done outside because `filters` is defined by subclass
        if not self.filter:
            self.filter = self.default_filter()

        self.grid = grid = QGridLayout()
        gui.widgetBox(self.controlArea, orientation=grid, box=True)
        grid.addWidget(
            gui.checkBox(
                None, self, "auto_save", "Autosave when receiving new data",
                callback=self.update_messages),
            start_row, 0, 1, 2)
        self.bt_save = gui.button(
            self.buttonsArea, self,
            label=f"Save as {self.stored_name}" if self.stored_name else "Save",
            callback=self.save_file)
        gui.button(self.buttonsArea, self, "Save as ...", callback=self.save_file_as)

        self.adjustSize()
        self.update_messages()
def __init__ ( self , start_row = 0 ) : super ( ) . __init__ ( ) self . data = None self . _absolute_path = self . _abs_path_from_setting ( ) # This cannot be done outside because `filters` is defined by subclass if not self . filter : self . filter = self . default_filter ( ) self . grid = grid = QGridLayout ( ) gui . widgetBox ( self . controlArea , orientation = grid , box = True ) grid . addWidget ( gui . checkBox ( None , self , "auto_save" , "Autosave when receiving new data" , callback = self . update_messages ) , start_row , 0 , 1 , 2 ) self . bt_save = gui . button ( self . buttonsArea , self , label = f"Save as {self.stored_name}" if self . stored_name else "Save" , callback = self . save_file ) gui . button ( self . buttonsArea , self , "Save as ..." , callback = self . save_file_as ) self . adjustSize ( ) self . update_messages ( )