# (C) Copyright 2004-2023 Enthought, Inc., Austin, TX# All rights reserved.## This software is provided without warranty under the terms of the BSD# license included in LICENSE.txt and may be redistributed only under# the conditions described in the aforementioned license. The license# is also available online at http://www.enthought.com/licenses/BSD.txt## Thanks for using Enthought open source!""" Defines the progress editor factory for all traits toolkit backends,"""fromtraits.apiimportInt,Bool,Strfromtraitsui.editor_factoryimportEditorFactory
[docs]classProgressEditor(EditorFactory):"""Editor factory for code editors."""# -------------------------------------------------------------------------# Trait definitions:# -------------------------------------------------------------------------#: The titletitle=Str()#: The message to be displayed along side the progress guagemessage=Str()#: The name of an [object.]trait that defines the message stringmessage_name=Str()#: The starting valuemin=Int()#: The name of an [object.]trait that defines the starting valuemin_name=Str()#: The ending valuemax=Int()#: The name of an [object.]trait that defines the ending valuemax_name=Str()#: If the cancel button should be shown (not very sensible as an editor)can_cancel=Bool(False)#: If the estimated time should be shown (not very sensible as an editor)show_time=Bool(False)#: if the percent complete should be shownshow_percent=Bool(False)
# This alias is deprecated and will be removed in TraitsUI 8.ToolkitEditorFactory=ProgressEditor