代码搜索结果

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

dragndrop.py

#!/usr/bin/env python # example dragndrop.py import pygtk pygtk.require('2.0') import gtk import string, time import gtkxpm class DragNDropExample: HEIGHT = 600 WIDTH = 600 TARGET_TYPE

packbox.py

#!/usr/bin/env python # example packbox.py import pygtk pygtk.require('2.0') import gtk import sys, string # Helper function that makes a new hbox filled with button-labels. Arguments # for the var

scrolledwin.py

#!/usr/bin/env python # example scrolledwin.py import pygtk pygtk.require('2.0') import gtk class ScrolledWindowExample: def destroy(self, widget): gtk.main_quit() def __init__(sel

basic.cpp

#include int main(int argc, char *argv[]) { Py_Initialize(); PyRun_SimpleString("from time import time,ctime\n" "print 'Today is',ctime(time())\n"); char *cstr; PyObje

xpath.py

#!/usr/bin/python -u # # this test exercise the XPath basic engine, parser, etc, and # allows to detect memory leaks # import sys import libxml2 # Memory debug specific libxml2.debugMemory(1) doc =

tstxpath.py

#!/usr/bin/python -u import sys import libxml2 #memory debug specific libxml2.debugMemory(1) called = "" def foo(ctx, x): global called # # test that access to the XPath evaluation con

ribcl.py.in

#!@PYTHON@ import sys import socket from httplib import * from time import sleep argv = sys.argv try: host = argv[1].split('.')[0]+'-rm' cmd = argv[2] except IndexError: pr

bsl.py

#!/usr/bin/env python # Serial Bootstrap Loader software for the MSP430 embedded proccessor. # # (C) 2001-2003 Chris Liechti # this is distributed under a free software license, see

cachedjarspackagemanager.java

// Copyright (c) Corporation for National Research Initiatives // Copyright 2000 Samuele Pedroni package org.python.core; import java.util.Hashtable; import java.util.Vector; import java.util.Enumer

fileutil.java

// Copyright (c) 2003 Jython project package org.python.core; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.io.IOException; /** * Utility methods for Java file handl