示例#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
文件: macosx.py 项目: 3lnc/cpython
    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)