Пример #1
0
 def postwindowsmenu(menu=menu):
     end = menu.index('end')
     if end is None:
         end = -1
     if end > 0:
         menu.delete(0, end)
     windows.add_windows_to_menu(menu)
Пример #2
0
    def postwindowsmenu(menu=menu):
        end = menu.index('end')
        if end is None:
            end = -1

        if end > 0:
            menu.delete(0, end)
        windows.add_windows_to_menu(menu)