代码搜索结果
找到约 10,000 项符合
Python 的代码
autoconnect.py
#!/usr/bin/env python
#
# Small test to demonstrate glade.XML.signal_autoconnect on an instance
#
import pygtk
pygtk.require('2.0')
import gtk, gtk.glade
class SimpleTest:
def __init__(self):
pyide.py
#!/usr/bin/env python
import pygtk
pygtk.require('2.0')
import gtk
import gtkcons, gtkdb, gtkprof, edit, dialogs
import os, sys, string
# select a good VT emulator
for vt in 'Eterm', 'nxterm', 'xter
bin.py
# A simple gtk.Conatiner subclassing example reimplementing gtk.Bin in python
import gtk
class Bin(gtk.Container):
__gtype_name__ = 'PyGtkBin'
def __init__(self):
gtk.Container.__init
moz1206ex.txt
#!/usr/local/bin/python
import cgi
form = cgi.FieldStorage( )
print """Content-type: application/vnd.mozilla.xul+xml\n
grid.py
#!/usr/bin/env python
import os, sys, traceback
import Queue
import getpass
import re
from threading import Thread
from string import find, split, join, atof
# svmtrain and gnuplot executable
is_wi
grid.py
#!/usr/bin/env python
import os, sys, traceback
import Queue
import getpass
import re
from threading import Thread
from string import find, split, join, atof
# svmtrain and gnuplot executable
is_wi
ping.cgi
#!/usr/bin/python
"""PING cgi.
Gets the name or IP number of a host as CGI argument. Returns as
plain text the output of the ping command for that host.
Lars Wirzenius
"""
import o
ping.cgi
#!/usr/bin/python
"""PING cgi.
Gets the name or IP number of a host as CGI argument. Returns as
plain text the output of the ping command for that host.
Lars Wirzenius
"""
import o
dbg.py
#!/usr/bin/env python
import Serial, Disassembler, Screen
import sys, curses
#Modem.test_modem()
#Disassembler.test_disasm()
# Global function debug(msg)
class SerialDebug:
def __init__(self, ser
sax7.py
#!/usr/bin/python
import sys
from xml.sax import saxutils
from xml.sax import make_parser
class Generator(saxutils.XMLGenerator):
def startElement(self,name,attrs):
if name == '