代码搜索结果
找到约 10,000 项符合
Python 的代码
test_cd.py
#! /usr/bin/env python
"""Whimpy test script for the cd module
Roger E. Masse
"""
import cd
from test_support import verbose
cdattrs = ['BLOCKSIZE', 'CDROM', 'DATASIZE', 'ERROR', 'NODISC', 'PAUSED
test_arr.py
#! /usr/bin/env python
"""Test the arraymodule.
Roger E. Masse
"""
import array
from test_support import verbose, TESTFN, unlink, TestFailed
def main():
testtype('c', 'c')
for type in ([
window-creation-w-location.py
from Tkinter import *
import sys
##sys.path.append("/users/mjc4y/projects/python/tkinter/utils")
##from TkinterUtils import *
# this shows how to create a new window with a button in it that
# can
kill.py
#! /usr/bin/env python
# Tkinter interface to Linux `kill' command.
from Tkinter import *
from string import splitfields
from string import split
import commands
import os
class BarButton(Menubutton
www8.py
#! /usr/bin/env python
# www8.py -- display the contents of a URL in a Text widget
# - set window title
# - make window resizable
# - update display while reading
# - vertical scroll bar
import sys
readme
These demos run only on SGI machines and require the 'gl' built-in module.
The demonstrate the abilities of SGI's GL library as well as the ease of
GL programming in Python. Most demos require the Z-
rec.py
#! /usr/bin/env python
import sys
import audio
import stdwin
import string
import getopt
from stdwinevents import *
from Buttons import *
from Sliders import *
#from Soundogram import Soundogram
fr
vumeter.py
#! /usr/bin/env python
import audio
import stdwin
from VUMeter import VUMeter
from WindowParent import WindowParent
import MainLoop
NBUFS=20
BUFSIZE = NBUFS*48
SCALE=128
class MyVUMeter(VUMeter):
vreceive.py
#! /usr/bin/env python
# Receive live video UDP packets.
# Usage: Vreceive [port]
import sys
import struct
from socket import * # syscalls and support functions
from SOCKET import * #
js2c.py.svn-base
#!/usr/bin/env python
#
# Copyright 2006-2008 the V8 project authors. All rights reserved.
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided t