lightspeed.trex.project_wizard.file_picker.widget

  • SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.

  • SPDX-License-Identifier: Apache-2.0

  • Licensed under the Apache License, Version 2.0 (the “License”);

  • you may not use this file except in compliance with the License.

  • You may obtain a copy of the License at

  • https://www.apache.org/licenses/LICENSE-2.0

  • Unless required by applicable law or agreed to in writing, software

  • distributed under the License is distributed on an “AS IS” BASIS,

  • WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

  • See the License for the specific language governing permissions and

  • limitations under the License.

class lightspeed.trex.project_wizard.file_picker.widget.FilePickerWidget(title: str, select_directory: bool, validate_callback: Callable[[str], Optional[str]], selected_callback: Callable[[Optional[str]], None], current_path: Optional[str] = None, apply_button_label: str = 'Select', placeholder_label: str = '')

Bases: object

destroy()

Destroy.

set_validation_error(error: str)
subscribe_file_picker_closed(function: Callable[[], None])

Return the object that will automatically unsubscribe when destroyed. Called when the file picker is closed.

subscribe_file_picker_opened(function: Callable[[], None])

Return the object that will automatically unsubscribe when destroyed. Called when the file picker is opened.