Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91197734
progress.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 8, 21:35
Size
422 B
Mime Type
text/x-c++
Expires
Sun, Nov 10, 21:35 (2 d)
Engine
blob
Format
Raw Data
Handle
22217890
Attached To
R8831 BIMxBEM
progress.py
View Options
class
Progress
:
progress_func
=
None
@classmethod
def
set
(
cls
,
pourcentage
:
int
,
step_id
:
str
,
message
:
str
):
"""Set progression during IFC import
Pourcentage: is x as in x/100.
step_id: step name which can be interpretable as an id for translation
message: is a free string message"""
if
cls
.
progress_func
:
cls
.
progress_func
(
pourcentage
,
step_id
,
message
)
Event Timeline
Log In to Comment