<gh_stars>1-10
#####################################################################
#                                                                   #
# /labscript_devices/FunctionRunner/blacs_tabs.py                   #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################

from blacs.device_base_class import DeviceTab


class FunctionRunnerTab(DeviceTab):
    def restore_builtin_save_data(self, data):
        DeviceTab.restore_builtin_save_data(self, data)
        # Override restored settings and show and maximise the outputbox for this tab:
        self.set_terminal_visible(True)
        self._ui.splitter.setSizes([0, 0, 1])

    def initialise_workers(self):
        self.create_worker(
            'main_worker',
            'labscript_devices.FunctionRunner.blacs_workers.FunctionRunnerWorker',
            {},
        )
        self.primary_worker = 'main_worker'

#####################################################################
#                                                                   #
# /labscript_devices/FunctionRunner/blacs_tabs.py                   #
#                                                                   #
# Copyright 2019, Monash University and contributors                #
#                                                                   #
# This file is part of labscript_devices, in the labscript suite    #
# (see http://labscriptsuite.org), and is licensed under the        #
# Simplified BSD License. See the license.txt file in the root of   #
# the project for the full license.                                 #
#                                                                   #
#####################################################################

from blacs.device_base_class import DeviceTab


class FunctionRunnerTab(DeviceTab):
    def restore_builtin_save_data(self, data):
        DeviceTab.restore_builtin_save_data(self, data)
        # Override restored settings and show and maximise the outputbox for this tab:
        self.set_terminal_visible(True)
        self._ui.splitter.setSizes([0, 0, 1])

    def initialise_workers(self):
        self.create_worker(
            'main_worker',
            'labscript_devices.FunctionRunner.blacs_workers.FunctionRunnerWorker',
            {},
        )
        self.primary_worker = 'main_worker'
##################################################################### #                                                                   # # /labscript_devices/FunctionRunner/blacs_tabs.py                   # #                                                                   # # Copyright 2019, Monash University and contributors                # #                                                                   # # This file is part of labscript_devices, in the labscript suite    # # (see http://labscriptsuite.org), and is licensed under the        # # Simplified BSD License. See the license.txt file in the root of   # # the project for the full license.                                 # #                                                                   # ##################################################################### # Override restored settings and show and maximise the outputbox for this tab: