israel-dryer/ttkbootstrap

Toasts don't work under Gnome 45.4 (Linux)

nekkz opened this issue · 1 comments

Desktop (please complete the following information):

ttkboostrap 1.10.1
Python 3.12
Gnome 45.4 (Linux)

Describe the bug

Toasts just don't show up.

To Reproduce

Run this script and press the button.

#!/usr/bin/env python3

import tkinter as tk
import ttkbootstrap as ttk
from ttkbootstrap.toast import ToastNotification

# window
window = ttk.Window(themename="darkly")
window.title("TtkBootstrap toast bug")
window.geometry("300x300")
# toast
toast = ToastNotification(
    title="This is a message title.",
    message="This is the actual message.",
    duration=20000*1,
    icon="I"
)

ttk.Button(
    window,
    text="Show toast",
    command=toast.show_toast,
).pack()

window.mainloop()

Expected behavior

The toast should show up, it seems to do, but disapears instantly, no stacktrace in the terminal.

Screenshots

No response

Additional context

No response

By specifying a position, it does appear. Although, this requirement isn't specified in the documentation.

toast = ToastNotification(
    title="This is a message title.",
    message="This is the actual message.",
    duration=2000*1,
    position=(10, 10, "nw"),
    icon="info",
)