"""A TrayIcon widget."""

# TODO: fix this.

import bananagui
from .basewidgets import Widget


class TrayIcon(_base.TrayIcon, Widget):
    """An application indicator that will be displayed in the system tray."""

    # TODO: the trayicon's size shouldn't be hard-coded.
    iconpath = bananagui.BananaProperty.imagepath(
        'iconpath', settable=False,
        doc="""A path to the icon that will be displayed in the system tray.

        The icon should be 22 pixels wide and 22 pixels high.
        """)
    tooltip = bananagui.BananaProperty(
        'tooltip', type=str, allow_none=True, default=None,
        doc="""The trayicon's tooltip.

        Note that the tooltip is not displayed on some platforms.
        """)
    # TODO: A menu property, but not an on_click property. This will be
    #       an indicator instead of a tray icon on some platforms.

"""A TrayIcon widget."""

# TODO: fix this.

import bananagui
from .basewidgets import Widget


class TrayIcon(_base.TrayIcon, Widget):
    """An application indicator that will be displayed in the system tray."""

    # TODO: the trayicon's size shouldn't be hard-coded.
    iconpath = bananagui.BananaProperty.imagepath(
        'iconpath', settable=False,
        doc="""A path to the icon that will be displayed in the system tray.

        The icon should be 22 pixels wide and 22 pixels high.
        """)
    tooltip = bananagui.BananaProperty(
        'tooltip', type=str, allow_none=True, default=None,
        doc="""The trayicon's tooltip.

        Note that the tooltip is not displayed on some platforms.
        """)
    # TODO: A menu property, but not an on_click property. This will be
    #       an indicator instead of a tray icon on some platforms.

A TrayIcon widget. # TODO: fix this. An application indicator that will be displayed in the system tray. # TODO: the trayicon's size shouldn't be hard-coded. A path to the icon that will be displayed in the system tray.          The icon should be 22 pixels wide and 22 pixels high. The trayicon's tooltip.          Note that the tooltip is not displayed on some platforms. # TODO: A menu property, but not an on_click property. This will be #       an indicator instead of a tray icon on some platforms.