equal
deleted
inserted
replaced
33 |
33 |
34 #------------------------------------------------------------------------------- |
34 #------------------------------------------------------------------------------- |
35 # Helpers |
35 # Helpers |
36 #------------------------------------------------------------------------------- |
36 #------------------------------------------------------------------------------- |
37 |
37 |
|
38 |
38 def GetBlockTypeDefaultNameModel(blocktype): |
39 def GetBlockTypeDefaultNameModel(blocktype): |
39 return re.compile("%s[0-9]+" % blocktype if blocktype is not None else ".*") |
40 return re.compile("%s[0-9]+" % blocktype if blocktype is not None else ".*") |
40 |
41 |
41 #------------------------------------------------------------------------------- |
42 #------------------------------------------------------------------------------- |
42 # Set Block Parameters Dialog |
43 # Set Block Parameters Dialog |
43 #------------------------------------------------------------------------------- |
44 #------------------------------------------------------------------------------- |
44 |
45 |
45 """ |
|
46 Class that implements a dialog for defining parameters of a FBD block graphic |
|
47 element |
|
48 """ |
|
49 |
46 |
50 class FBDBlockDialog(BlockPreviewDialog): |
47 class FBDBlockDialog(BlockPreviewDialog): |
|
48 """ |
|
49 Class that implements a dialog for defining parameters of a FBD block graphic |
|
50 element |
|
51 """ |
51 |
52 |
52 def __init__(self, parent, controller, tagname): |
53 def __init__(self, parent, controller, tagname): |
53 """ |
54 """ |
54 Constructor |
55 Constructor |
55 @param parent: Parent wx.Window of dialog for modal |
56 @param parent: Parent wx.Window of dialog for modal |