Skip to content

cannot set position #27

@gidhoog

Description

@gidhoog

Hello!

I cannot set the position of the toast.

I do this:

def show_toast(self):
        Toast.setPosition(ToastPosition.BOTTOM_MIDDLE)  # set the position here !!?
        toast = Toast(self)
        toast.setDuration(5000)  # Hide after 5 seconds
        toast.setTitle('Success! Confirmation email sent.')
        toast.setText('Check your email to complete signup.')
        toast.applyPreset(ToastPreset.SUCCESS)  # Apply style preset
        toast.show()

What I am doing wrong?

Thank you!

EDIT:

Works on Windows10, but not on Linux! Should it work on Linux, or is there an other positioning code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions