canfestival/canfestival.py
changeset 1737 a39c2918c015
parent 1736 7e61baa047f0
child 1738 d2e979738700
equal deleted inserted replaced
1736:7e61baa047f0 1737:a39c2918c015
   127             if dialog.ShowModal() == wx.ID_OK:
   127             if dialog.ShowModal() == wx.ID_OK:
   128                 name, id, nodetype, description = dialog.GetValues()
   128                 name, id, nodetype, description = dialog.GetValues()
   129                 profile, filepath = dialog.GetProfile()
   129                 profile, filepath = dialog.GetProfile()
   130                 NMT = dialog.GetNMTManagement()
   130                 NMT = dialog.GetNMTManagement()
   131                 options = dialog.GetOptions()
   131                 options = dialog.GetOptions()
   132                 self.CreateNewNode(name,       # Name - will be changed at build time
   132                 self.CreateNewNode(name,         # Name - will be changed at build time
   133                                    id,         # NodeID - will be changed at build time
   133                                    id,           # NodeID - will be changed at build time
   134                                    "slave",    # Type
   134                                    "slave",      # Type
   135                                    description,# description
   135                                    description,  # description
   136                                    profile,    # profile
   136                                    profile,      # profile
   137                                    filepath,   # prfile filepath
   137                                    filepath,     # prfile filepath
   138                                    NMT,        # NMT
   138                                    NMT,          # NMT
   139                                    options)     # options
   139                                    options)      # options
   140             else:
   140             else:
   141                 self.CreateNewNode("SlaveNode",  # Name - will be changed at build time
   141                 self.CreateNewNode("SlaveNode",  # Name - will be changed at build time
   142                                    0x00,         # NodeID - will be changed at build time
   142                                    0x00,         # NodeID - will be changed at build time
   143                                    "slave",      # Type
   143                                    "slave",      # Type
   144                                    "",           # description
   144                                    "",           # description
   145                                    "None",       # profile
   145                                    "None",       # profile
   146                                    "", # prfile filepath
   146                                    "",           # prfile filepath
   147                                    "heartbeat",  # NMT
   147                                    "heartbeat",  # NMT
   148                                    [])           # options
   148                                    [])           # options
   149             dialog.Destroy()
   149             dialog.Destroy()
   150             self.OnCTNSave()
   150             self.OnCTNSave()
   151 
   151