代码搜索结果

找到约 10,000 项符合 Python 的代码

func_doc.py

#!/usr/bin/env python # Filename: func_doc.py def printMax(x,y): '''Prints the maximum of two numbers. The two values must be integers.''' x=int(x) # convert to integers, if possible y=i

func_param.py

#!/usr/bin/env python # Filename: func_param.py def printMax(a,b): if a>b: print a,'is maximum' else: print b,'is maximum' printMax(3,4) # directly give literal values x=5 y=7

func_doc.py

#!/usr/bin/env python # Filename: func_doc.py def printMax(x,y): '''Prints the maximum of two numbers. The two values must be integers.''' x=int(x) # convert to integers, if possible y=i

btcompletedirgui.py

#!/usr/bin/env python # Written by Bram Cohen # see LICENSE.txt for license information #import PSYCO #if PSYCO.psyco: # try: # import psyco # assert psyco.__version__ >= 0x010100f0

btcompletedir.py

#!/usr/bin/env python # Written by Bram Cohen # see LICENSE.txt for license information #import PSYCO #if PSYCO.psyco: # try: # import psyco # assert psyco.__version__ >= 0x010100f0

comboboxwrap.py

#!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk class ComboBoxWrapExample: def __init__(self): window = gtk.Window() window.connect('destroy', lambda w: gtk.ma

comboboxentrybasic.py

#!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk class ComboBoxEntryExample: def __init__(self): window = gtk.Window() window.connect('destroy', lambda w: gtk.m

filelisting-gtm.py

#!/usr/bin/env python import os, stat, time import pygtk pygtk.require('2.0') import gtk folderxpm = [ "17 16 7 1", " c #000000", ". c #808000", "X c yellow", "o c #808080",

progressbar.py

#!/usr/bin/env python # example progressbar.py import pygtk pygtk.require('2.0') import gtk, gobject # Update the value of the progress bar so that we get # some movement def progress_timeout(pbobj

images.py

#!/usr/bin/env python # example images.py import pygtk pygtk.require('2.0') import gtk class ImagesExample: # when invoked (via signal delete_event), terminates the application. def close_a