def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_NEWLOCALNODEDIALOG,
              name='newLocalNodeDialog', parent=prnt, pos=wx.Point(0, 0),
              size=wx.Size(184, 173), style=wx.DEFAULT_DIALOG_STYLE,
              title='New node')
        self._init_utils()
        self.SetClientSize(wx.Size(230, 120))
        self.Center(wx.BOTH)
        self.SetBackgroundColour(wx.Colour(164, 202, 235))

        # set the icon of the dialog box
        iconSolipsis = ImageManager.getIcon(ImageManager.IMG_SOLIPSIS_ICON)
        bitmap = ImageManager.getBitmap(ImageManager.IMG_SOLIPSIS_ICON)
        iconSolipsis.CopyFromBitmap(bitmap)
        self.SetIcon(iconSolipsis)

        self.pseudoStaticText = wx.StaticText(id=wxID_NEWLOCALNODEDIALOGPSEUDOSTATICTEXT,
              label='Node pseudo :', name='pseudoStaticText', parent=self,
              pos=wx.Point(10, 20), size=wx.Size(80, 15), style=0)
                
        self.pseudoTextCtrl = wx.TextCtrl(id=wxID_NEWLOCALNODEDIALOGPSEUDOTEXTCTRL,
              name='pseudoTextCtrl', parent=self, pos=wx.Point(100, 20),
              size=wx.Size(100, 21), style=0, value='')

        btmp = ImageManager.getButton(ImageManager.BUT_OK)
        self.okButton = wx.BitmapButton(bitmap=btmp, id=wx.ID_OK, name='okButton',
                                        parent=self, pos=wx.Point(10, 80),
                                        size=wx.Size(-1, -1), style=0,
                                        validator=wx.DefaultValidator)

        btmp = ImageManager.getButton(ImageManager.BUT_CANCEL)
        self.cancelButton = wx.BitmapButton(bitmap=btmp, id=wx.ID_CANCEL,
                                            name='cancelButton', parent=self,
                                            pos=wx.Point(140, 80),
                                            size=wx.Size(-1, -1), style=0,
                                            validator=wx.DefaultValidator)
    def _init_ctrls(self, prnt):

        # dialog box initialisation
        wx.Dialog.__init__(self, id=wxID_ENTITYDIALOG, name='entityDialog',
              parent=prnt, pos=wx.Point(0, 0), size=wx.Size(386, 409),
              style=wx.DEFAULT_DIALOG_STYLE, title='Manage entities')
        self._init_utils()
        self.SetClientSize(wx.Size(378, 260))
        self.Center(wx.BOTH)
        self.SetBackgroundColour(wx.Colour(164, 202, 235))
                
        # set the icon of the dialog box
        iconSolipsis = ImageManager.getIcon(ImageManager.IMG_SOLIPSIS_ICON)
        self.SetIcon(iconSolipsis)

        self.nodesListBox = wx.ListBox(choices=self.pseudoList,
                                       id=wxID_ENTITYDIALOGNODESLISTBOX,
                                       name='nodesList', parent=self,
                                       pos=wx.Point(10, 20),size=wx.Size(210, 200),
                                       style=wx.LB_ALWAYS_SB,
                                       validator=wx.DefaultValidator)

        btmp = ImageManager.getButton(ImageManager.BUT_CREATE)
        self.newLocalButton = wx.BitmapButton(bitmap=btmp,
                                              id=wxID_ENTITYDIALOGNEWLOCALBUTTON,
                                              name='newlocalButton', parent=self,
                                              pos=wx.Point(260, 20),
                                              size=wx.Size(-1, -1), style=0,
                                              validator=wx.DefaultValidator)

        btmp = ImageManager.getButton(ImageManager.BUT_REMOVE)
        self.removeButton = wx.BitmapButton(bitmap=btmp,
                                            id=wxID_ENTITYDIALOGREMOVEBUTTON,
                                            name='removeButton', parent=self,
                                            pos=wx.Point(260, 60),
                                            size=wx.Size(-1, -1), style=0,
                                            validator=wx.DefaultValidator)

        btmp = ImageManager.getButton(ImageManager.BUT_CONNECT)
        self.connectButton = wx.BitmapButton(bitmap=btmp,
                                             id=wxID_ENTITYDIALOGCONNECTBUTTON,
                                             name='connectButton', parent=self,
                                             pos=wx.Point(260, 100),
                                             size=wx.Size(-1, -1), style=0,
                                             validator=wx.DefaultValidator)


        btmp = ImageManager.getButton(ImageManager.BUT_CLOSE_ENTITY)
        self.closeButton = wx.BitmapButton(bitmap=btmp, id=wx.ID_CANCEL,
                                           name='closeButton', parent=self,
                                           pos=wx.Point(260, 140),
                                           size=wx.Size(-1, -1), style=0,
                                           validator=wx.DefaultValidator)

        self.Bind(wx.EVT_LISTBOX, self.OnSelectNode,
                  id=wxID_ENTITYDIALOGNODESLISTBOX)
        #EVT_LISTBOX(self.nodesListBox, wxID_ENTITYDIALOGNODESLISTBOX,
        #     self.OnSelectNode)

        self.Bind(wx.EVT_BUTTON, self.OnNewLocalNodeButton,
                  id=self.newLocalButton.GetId())
        #self.Bind(EVT_BUTTON, self.OnNewLocalNodeButton, wxID_ENTITYDIALOGNEWLOCALBUTTON)
        
        self.Bind(wx.EVT_BUTTON, self.OnConnectNodeButton,
                  id=self.connectButton.GetId())        
        #self.Bind(wx.EVT_BUTTON, self.OnConnectNodeButton,
        #          id=wxID_ENTITYDIALOGCONNECTBUTTON
        

        self.Bind(wx.EVT_BUTTON, self.OnRemoveNodeButton,
                  id= self.removeButton.GetId())