def drawDialog(self): self.conversionInfoShown = False self.forceRestart = None self.dialog = makerManageLinkedProjDialog.xrcManageLinked(self.view) self.dialog.Cancel.Bind(self.view.wx.EVT_BUTTON, self.cancel) # self.dialog.Unlink.Bind(self.view.wx.EVT_BUTTON, self.unlink) self.dialog.Bind(self.view.wx.EVT_CLOSE, self.close) for item in self.model.getManagedProjectsList(): self.dialog.theList.Append(item) self.pathList = [] try: # there might be no projects self.dialog.theList.SetSelection(0) except: pass self.dialog.Show()
def drawDialog(self): self.dialog = makerManageLinkedProjDialog.xrcManageLinked(self.view) self.dialog.Cancel.Bind(self.view.wx.EVT_BUTTON, self.cancel) # self.dialog.Unlink.Bind(self.view.wx.EVT_BUTTON, self.unlink) self.dialog.Bind(self.view.wx.EVT_CLOSE, self.close) for item in self.model.getManagedProjectsList(): self.dialog.theList.Append(item) self.pathList = [] self.dialog.Show()