israel-dryer / ttkbootstrap

A supercharged theme extension for tkinter that enables on-demand modern flat style themes inspired by Bootstrap.
MIT License
1.99k stars 395 forks source link

Handling of the Enter button is incorrect for Messagebox #526

Open Slarag opened 10 months ago

Slarag commented 10 months ago

Desktop (please complete the following information):

ttkbootstrap Version: 1.10.1 OS: Independet

Describe the bug

Handling of the Enter button is incorrect for Messagebox

To Reproduce

  1. Run the following code:
import ttkbootstrap as ttk
ttk.dialogs.Messagebox.yesnocancel('')
  1. Select the Messagebox and press Enter
  2. This will return Cancel, allthough Yes is the default and is focused

Expected behavior

Should return the value of the currently selected button

Screenshots

No response

Additional context

No response