def OnOK(self,evt): self.passwd=common.genPass(self.grid.GetPropertyValue("plen"), self.grid.GetPropertyValue("digit"), self.grid.GetPropertyValue("lowercase"), self.grid.GetPropertyValue("uppercase"), self.grid.GetPropertyValue("punction"), self.grid.GetPropertyValue("custom"), ) evt.Skip()
def OnOK(self, evt): self.passwd = common.genPass( self.grid.GetPropertyValue("plen"), self.grid.GetPropertyValue("digit"), self.grid.GetPropertyValue("lowercase"), self.grid.GetPropertyValue("uppercase"), self.grid.GetPropertyValue("punction"), self.grid.GetPropertyValue("custom"), ) evt.Skip()
def OnOK(self, evt): c = self.grid.GetPropertyValue("custom") c = c.strip() c = c.replace(" ", "") c = c.replace("\t", "") self.passwd = common.genPass( self.grid.GetPropertyValue("plen"), self.grid.GetPropertyValue("digit"), self.grid.GetPropertyValue("lowercase"), self.grid.GetPropertyValue("uppercase"), self.grid.GetPropertyValue("punction"), c, ) evt.Skip()