0
self.Lowest = tk.Label(self.Frame2,  font=('Arial', 12), text='lower limit', bg='#E8E8E8', bd=7, anchor=W)
self.Lowest.grid(row=4, column=1)
self.Lowest_e = tk.Entry(self.Frame2, font=('Arial', 12), bg='white', bd=5, width=19, justify='left')
self.Lowest_e.bind('<FocusIn>', self.click_standard)
self.Lowest_e.grid(row=4, column=2)

def click_standard(self, event): #
     if self.standards is not None:
         messagebox.showinfo("Notification", "Tolerance values must not be different!")
大陸北方網友
  • 3,696
  • 3
  • 12
  • 37
Eric
  • 1
  • 1
    Please provide a complete [mcve]. We can't run the code as posted. – Bryan Oakley Jan 27 '21 at 05:53
  • 1
    Please give background on what you were trying to do and what is the problem you are facing. Just pasting the code doesn't help much – MSS Jan 27 '21 at 06:11
  • 2
    The messagebox will make the entry lose the focus, then get focus again after the messagebox is closed which trigger `` event again. Normally such situation should repeat indefinitely, but I don't know why it happens only 3 times. Maybe the focus is messed up after 3 times. – acw1668 Jan 27 '21 at 09:46

0 Answers0