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)