代码搜索结果

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

filelisting.py

#!/usr/bin/env python import os, stat, time import pygtk pygtk.require('2.0') import gtk folderxpm = [ "17 16 7 1", " c #000000", ". c #808000", "X c yellow", "o c #808080",

colorbutton.py

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

eventbox.py

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

statusbar.py

#!/usr/bin/env python # example statusbar.py import pygtk pygtk.require('2.0') import gtk class StatusbarExample: def push_item(self, widget, data): buff = " Item %d" % self.count

fontbutton.py

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

linkmssql_active.py

#!/usr/bin/env python # -*- coding: utf-8 -*- import _mssql from pylab import * mssql=_mssql.connect('172.18.23.102','user','user') mssql.select_db('elementinfo') StartTime=raw_input('Enter star

old_dbconn.py

# -*- coding:gb2312 -*- #!/usr/bin/env python from sqlalchemy import * S_CONN = 'mysql://root:root@127.0.0.1/keyword' class DbBase: # s_conn = 'mysql://root:root@192.168.200.9/keywor

hd.c

#include PyObject *HD_GetMAC(PyObject *self,PyObject *args) { char NIC[200]; int result; result = GetMAC(NIC,200); return Py_BuildValue("s",NIC); } PyObject *HD_GetHar

serialposix.py

#!/usr/bin/env python #module for serial IO for POSIX compatible systems, like Linux #see __init__.py # #(C) 2001-2002 Chris Liechti # this is distributed under a free software lice

adaptermaker.java

// Copyright (c) Corporation for National Research Initiatives package org.python.compiler; import java.util.Hashtable; import java.util.Enumeration; import java.lang.reflect.Method; import java.io.