代码搜索结果

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

unicode2koi8r.py

"""Convert Cyrillic from iso-8859-1 Unicode-encoded to KOI8-R-encoded This script is used during the build process of the Russian translation of "Dive Into Python" (http://diveintopython.org/). It t

tooltip.py

#!/usr/bin/env python """ Simple example of creating a basic window and button. Also adds a tooltip. """ import gtk def hello_cb(widget, main_window): """ Callback function that prints a me

buttonbox.py

#!/usr/bin/env python '''Button Box This demo shows various button box configurations available. It also uses stock buttons, and use of mnemonics for navigation.''' import gtk def create_bbox(hori

widget.py

#!/usr/bin/python import sys import gobject import pango import gtk from gtk import gdk if gtk.pygtk_version < (2, 8): print "PyGtk 2.8 or later required for this example" raise SystemExit

customtreemodel.py

#! /usr/bin/env python import sys import weakref import pango import gtk class SimpleListTreeModel(gtk.GenericTreeModel): def on_get_flags(self): return gtk.TREE_MODEL_LIST_ONLY

setup.py

#!/usr/bin/env python from distutils.core import setup, Extension import sys if sys.platform == "win32": ext = Extension("cryptlib_py", sources=["cryptlib_py.c"],

backup_ver1.py

#!/usr/bin/python # Filename: backup_ver1.py import os import time # 1. The files and directories to be backed up are specified in a list. source =r"e:\biyelunwen" # If you are using Windows

global.py

# This is the top level Python code for Cooledit. def zope_mode (): insert_menu ("File", gettext ("Zope mode"), gettext ("Insert Zope resource URL..."), "zope_utils.insert_resource()") inser

conv.c

/* #!/usr/bin/python import math dens = 20 r = 1.8 s = 0.0 q = 1.8 # it is a coincidence that q are r are the same for j in range(3): for i in xrange(5): e = 0.0 for k in range(3): fo

unicode2koi8r.py

"""Convert Cyrillic from iso-8859-1 Unicode-encoded to KOI8-R-encoded This script is used during the build process of the Russian translation of "Dive Into Python" (http://diveintopython.org/). It t