israel-dryer / ttkbootstrap

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

Checkbutton silently quits application (no exception log) #568

Open electrovoyage opened 5 months ago

electrovoyage commented 5 months ago

Desktop (please complete the following information):

Ttkbootstrap version 1.10.1 OS: Windows 10

Describe the bug

Creating a Checkbutton and packing it causes a no-exception crash (I suppose something somewhere is calling quit() or sys.exit() for some reason). This is really annoying because checkbuttons are a very useful widget.

To Reproduce

  1. Create a window
  2. Create a checkbutton
  3. Call .pack on it
  4. Crash, no exception printed

Expected behavior

The Checkbutton should function as intended (i. e. not crash)

Screenshots

image

Additional context

It seemed to work fine before I pip installed an update, but I don't remember what the old version was so I can't revert it

electrovoyage commented 5 months ago

Solutions i tried:

electrovoyage commented 5 months ago

It also appears it's the actual Checkbutton that's causing the crash, commenting out .pack() did not help.

DavidWild02 commented 2 months ago

I have the same issue. Under linux with python v3.10 it works, but on windows with python v3.12 it crashes. So either the version or the operating system is causing the issue (Maybe also the combination). Were you able to solve the bug?

electrovoyage commented 2 months ago

It seems like either a Python update or a ttkbootstrap update fixed this. Creating a checkbutton, launching ttkbootstrap and ttkcreator all work now.

TotallyNotSethP commented 2 months ago

I'm still having this issue on Windows 11 with Python 3.12.4 (the latest) and ttkbootstrap 1.10.1 (also latest)