dialogs/FBDBlockDialog.py
changeset 1782 5b6ad7a7fd9d
parent 1768 691083b5682a
child 1853 47a3f39bead0
equal deleted inserted replaced
1781:b112bfdde5cc 1782:5b6ad7a7fd9d
    29 
    29 
    30 from graphics.FBD_Objects import FBD_Block
    30 from graphics.FBD_Objects import FBD_Block
    31 from controls.LibraryPanel import LibraryPanel
    31 from controls.LibraryPanel import LibraryPanel
    32 from BlockPreviewDialog import BlockPreviewDialog
    32 from BlockPreviewDialog import BlockPreviewDialog
    33 
    33 
    34 #-------------------------------------------------------------------------------
    34 # -------------------------------------------------------------------------------
    35 #                                    Helpers
    35 #                                    Helpers
    36 #-------------------------------------------------------------------------------
    36 # -------------------------------------------------------------------------------
    37 
    37 
    38 
    38 
    39 def GetBlockTypeDefaultNameModel(blocktype):
    39 def GetBlockTypeDefaultNameModel(blocktype):
    40     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 ".*")
    41 
    41 
    42 #-------------------------------------------------------------------------------
    42 # -------------------------------------------------------------------------------
    43 #                         Set Block Parameters Dialog
    43 #                         Set Block Parameters Dialog
    44 #-------------------------------------------------------------------------------
    44 # -------------------------------------------------------------------------------
    45 
    45 
    46 
    46 
    47 class FBDBlockDialog(BlockPreviewDialog):
    47 class FBDBlockDialog(BlockPreviewDialog):
    48     """
    48     """
    49     Class that implements a dialog for defining parameters of a FBD block graphic
    49     Class that implements a dialog for defining parameters of a FBD block graphic