示例#1
0
 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()
示例#2
0
 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()
示例#3
0
 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()