def open(self):
        dialog = FileDialog(parent=self.window.control, wildcard='*.py')
        if dialog.open() == OK:
            self._open_file(dialog.path)
Setup the Demo binary sensor platform.
dataset/ETHPy150Open enthought/pyface/examples/tasks/basic/example_task.py/ExampleTask.open--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/binary_sensor/demo.py/setup_platform