Source code for py_dss_interface.models.DSSProgress.DSSProgress

# -*- encoding: utf-8 -*-
"""
 Created by eniocc at 11/10/2020
"""
from py_dss_interface.models.DSSProgress.DSSProgressI import DSSProgressI
from py_dss_interface.models.DSSProgress.DSSProgressS import DSSProgressS


[docs]class DSSProgress(DSSProgressI, DSSProgressS): """ This interface implements the DSSProgress (IDSSProgress) interface of OpenDSS by declaring 2 procedures for accessing the different properties included in this interface: DSSProgressI, DSSProgressS """ def __init__(self, dss_obj): super().__init__(dss_obj)
[docs] def pct_progress(self, arg: float) -> int: """Sets the percent progress to indicate [0..100].""" return DSSProgressI._pct_progress(self, arg)
[docs] def show(self) -> int: """Shows progress form with null caption and progress set to zero.""" return DSSProgressI._show(self)
[docs] def close(self) -> int: """Closes (hides) DSS Progress form.""" return DSSProgressI._close(self)
[docs] def caption(self, arg: str) -> str: """Sets the caption to appear on the bottom of the DSS Progress form.""" return DSSProgressS._caption(self, arg)