Skip to content

Commit

Permalink
Adicionada função para validação de texto nas caixas de entrada.
Browse files Browse the repository at this point in the history
  • Loading branch information
WilsonCazarre committed Apr 9, 2019
1 parent f4a7698 commit fb66940
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def _widgets(self):
highlightcolor=std.bd,
highlightthickness=std.bd_width,
validate='key',
validatecommand=(self.vcmd, '%s', '%P'))
validatecommand=(self.vcmd, '%P'))
entry.place(relx=0.7,
rely=0.2,
y=self.gapy)
Expand Down Expand Up @@ -316,7 +316,8 @@ def _widgets(self):
bg=std.bg,
bd=0,
fg=std.label_color,
command=self.handle_back_button)
command=self.handle_back_button,
activebackground='#555A5C')
self.button_back.bind('<Enter>', self.on_hover)
self.button_back.bind('<Leave>', self.on_leave)
self.button_back.place(x=0, y=0)
Expand Down

0 comments on commit fb66940

Please sign in to comment.