Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toasts don't work under Gnome 45.4 (Linux) #552

Open
nekkz opened this issue Mar 15, 2024 · 1 comment
Open

Toasts don't work under Gnome 45.4 (Linux) #552

nekkz opened this issue Mar 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@nekkz
Copy link

nekkz commented Mar 15, 2024

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

@nekkz nekkz added the bug Something isn't working label Mar 15, 2024
@nekkz
Copy link
Author

nekkz commented Mar 15, 2024

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",
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant