add replace rules
This commit is contained in:
6
main.py
6
main.py
@@ -78,22 +78,24 @@ class MainFramePanel(wx.Panel):
|
|||||||
|
|
||||||
|
|
||||||
def go_page2(self, event):
|
def go_page2(self, event):
|
||||||
|
|
||||||
|
|
||||||
values = []
|
values = []
|
||||||
|
|
||||||
name = self.inpt_name.GetValue()
|
name = self.inpt_name.GetValue()
|
||||||
name = name.replace(' ', '')
|
name = name.replace(' ', '')
|
||||||
print(name)
|
print(name)
|
||||||
|
|
||||||
familia = self.inpt_familia.GetValue()
|
familia = self.inpt_familia.GetValue()
|
||||||
|
familia = familia.replace(' ','')
|
||||||
if len(familia) == 0:
|
if len(familia) == 0:
|
||||||
self.empty_pole()
|
self.empty_pole()
|
||||||
return
|
return
|
||||||
|
|
||||||
group = self.inpt_group.GetValue()
|
group = self.inpt_group.GetValue()
|
||||||
|
group = group.replace(' ','')
|
||||||
if len(group) == 0:
|
if len(group) == 0:
|
||||||
self.empty_pole()
|
self.empty_pole()
|
||||||
return
|
return
|
||||||
|
|
||||||
zach_number = self.inpt_zachetka.GetValue()
|
zach_number = self.inpt_zachetka.GetValue()
|
||||||
zach_number = zach_number.replace(' ', '')
|
zach_number = zach_number.replace(' ', '')
|
||||||
if len(zach_number) == 0:
|
if len(zach_number) == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user