israel-dryer / ttkbootstrap

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

Handling of the Enter button is incorrect for Messagebox #526

Open Slarag opened 5 months ago

Slarag commented 5 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