dialogs/FBDBlockDialog.py
changeset 1736 7e61baa047f0
parent 1730 64d8f52bc8c8
child 1744 69dfdb26f600
equal deleted inserted replaced
1735:c02818d7e29f 1736:7e61baa047f0
    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