代码搜索结果

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

runtests

#!/usr/bin/env ksh # Performs tests on agrepy via the python program testagrepy.py # args are: function run_a_test { testagrepy.py -

page585.html

Python and Object-Oriented Programming

mainframe.py

#Boa:Frame:MainFrame """ Python GUI Calculator by Jia-Yang Chen (JAYA) email: jia.yang.chen@gmail.com school: TTU date: 2006/10/09 """ import wx def create(parent): retur

scribblesimple.py

#!/usr/bin/env python # example scribblesimple.py # GTK - The GIMP Toolkit # Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald # Copyright (C) 2001-2004 John Finlay # # T

treemodelfilter.py

#!/usr/bin/env python # example treemodelfilter.py import pygtk pygtk.require('2.0') import gtk bugdata="""120595 NEW Custom GtkTreeModelFilter wrappers need 121339 RESO dsextras.py installation di

aspectframe.py

#!/usr/bin/env python # example aspectframe.py import pygtk pygtk.require('2.0') import gtk class AspectFrameExample: def __init__(self): window = gtk.Window(gtk.WINDOW_TOPLEVEL);

textview-basic.py

#!/usr/bin/env python # example textview-basic.py import pygtk pygtk.require('2.0') import gtk class TextViewExample: def toggle_editable(self, checkbutton, textview): textview.set_edit

helloworld2.py

#!/usr/bin/env python # example helloworld2.py import pygtk pygtk.require('2.0') import gtk class HelloWorld2: # Our new improved callback. The data passed to this method # is printed to

treeviewdnd.py

#!/usr/bin/env python # example treeviewdnd.py import pygtk pygtk.require('2.0') import gtk class TreeViewDnDExample: TARGETS = [ ('MY_TREE_MODEL_ROW', gtk.TARGET_SAME_WIDGET, 0),

expander.py

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