adding separator addition to popup

This commit is contained in:
Zero Rust 2020-05-22 23:53:21 -04:00
parent f5c9272291
commit 1b34993fa9

View file

@ -71,6 +71,11 @@ class menu(object):
label=menuitem, command=functools.partial(self.__on_click, callback) label=menuitem, command=functools.partial(self.__on_click, callback)
) )
"""Adds a separator to the menu in the current location"""
def add_separator(self):
self._menu.add_separator()
"""Shows this menu """Shows this menu
:param event: i3wm event that triggered the menu (dict that contains "x" and "y" fields) :param event: i3wm event that triggered the menu (dict that contains "x" and "y" fields)