def __init__(self, title, parent, service, folders=[], items=[], onDesktop=True): KActionMenu.__init__(self, title, parent) MenuBase.__init__(self, service, folders, items, onDesktop)
def __init__(self, title, parent, service, folders: list = None, items: list = None, onDesktop=True): KActionMenu.__init__(self, title, parent) MenuBase.__init__(self, service, folders, items, onDesktop) if items is None: items = [] if folders is None: folders = []