lightspeed.error_popup.window#
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
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.error_popup.window.CustomErrorModel(value: str | None = None)#
Bases:
AbstractValueModel
- get_value_as_string(
- self: omni.ui._ui.AbstractValueModel,
Return the string representation of the value.
- set_value(value)#
Reimplemented set
- class lightspeed.error_popup.window.ErrorPopup(
- title,
- message,
- details: str | None = None,
- yes_no: bool = False,
- window_size: Tuple[int, int] = (400, 300),
Bases:
object
Creates a modal window with a status label and a progress bar inside. :param title: Title of this window. :type title: str :param message: Error message to display in a label. :type message: str :param details: Error details to display in a string field. :type details: str :param yes_no: Show a Yes/No :type yes_no: bool
- BUTTON_WIDTH = 64#
- destroy()#
- hide()#
- is_visible()#
- show()#
- subscribe_no_clicked(func)#
Return the object that will automatically unsubscribe when destroyed.
- subscribe_yes_clicked(func)#
Return the object that will automatically unsubscribe when destroyed.