1
2
3
4
5
6
7
8
9from pyfbsdk import FBProgress, FBSleep
10
11
13
14
15lFbp.ProgressBegin()
16
17
18lFbp.Caption = "My Task"
19
20
21for lVal in range(100):
22
23 if (lFbp.UserRequestCancell()):
24 break;
25
26
27 if (lVal < 50) :
28 lFbp.Text = "Processing First Part ..."
29 else:
30 lFbp.Text = "Processing Second Part ..."
31
32
34
35 lFbp.Percent = lVal
36
37
38
39lFbp.ProgressDone()
40
41
42del( lFbp, lVal, FBProgress, FBSleep )
43
Progress bar.b>Property: Base property class.
Definition: pyfbsdk_generated.h:14666
FBSleep(kULong MilliSeconds)
Sleep function Puts system to sleep for specified time.