小编aur*_*orn的帖子

如何在 pystray 中创建菜单分隔符

我正在尝试创建一个 pystray 菜单分隔符,但我很难做到这一点。我在这里搜索了 SO 及其文档,我发现这非常令人困惑且无益,我什至尝试阅读该Menu课程:

class Menu(object):
    """A description of a menu.

    A menu description is immutable.

    It is created with a sequence of :class:`Menu.Item` instances, or a single
    callable which must return a generator for the menu items.

    First, non-visible menu items are removed from the list, then any instances
    of :attr:`SEPARATOR` occurring at the head or tail of the item list are
    removed, and any consecutive separators are reduced to one.
    """
    #: A …
Run Code Online (Sandbox Code Playgroud)

python menu separator python-3.x pystray

5
推荐指数
1
解决办法
214
查看次数

标签 统计

menu ×1

pystray ×1

python ×1

python-3.x ×1

separator ×1