adding separator addition to popup
This commit is contained in:
parent
f5c9272291
commit
1b34993fa9
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue