def METHOD_NAME(parent):
    global dialog
    if dialog:
        try:
            dialog.Show()
            dialog.SetFocus()
            return
        except:
            # dialog got destroyed, so just remake it.
            pass
    dialog = SafetyMinDialog(parent)
    dialog.Show()