代码搜索:self
找到约 10,000 项符合「self」的源代码
代码结果 10,000
www.eeworm.com/read/480846/6662478
py line_line_int.py
#!/usr/bin/env python
import Tix,math,tkFont
class Punkt:
def __init__(self,x=0,y=0):
self.x=x
self.y=y
def text(self):
return "[%9.4f,%9.4f]"%(self.x,self.y)
class Appn(Tix.Fram
www.eeworm.com/read/334125/3374774
sh perl_path_wrapper.sh
#!/bin/sh
#
SELF=$0
DIR=`dirname $SELF`
$PERL $DIR/$@
www.eeworm.com/read/239567/4597781
py testundefinedattribute.py
class Foo:
class nested:
print self.nestAttr
def meth(self):
print self.bar * self.bar
print "bar"
##r
# 2
# nested nestAttr
# Foo bar
# 1
# Fo
www.eeworm.com/read/221464/4831801
py enumsut.py
import unittest
from _enums import *
class EnumsTest(unittest.TestCase):
def testIt(self):
self.assertEqual(int(Red), 0)
self.assertEqual(int(Blue), 1)
self.ass
www.eeworm.com/read/183315/5256612
py example1.py
import wx
class SketchWindow(wx.Window):
def __init__(self, parent, ID):
wx.Window.__init__(self, parent, ID)
self.SetBackgroundColour("White")
self.color = "Black"
www.eeworm.com/read/183315/5256664
py splitter.py
import wx
class SplitterExampleFrame(wx.Frame):
def __init__(self, parent, title):
wx.Frame.__init__(self, parent, title=title)
self.MakeMenuBar()
self.minpane = 0
www.eeworm.com/read/325535/3482946
py blackbox.py
from vtk.util import vtkMethodParser
class Tester:
def __init__(self, debug=0):
self.setDebug(debug)
self.parser = vtkMethodParser.VtkDirMethodParser()
self.obj = None
www.eeworm.com/read/438718/1822707
py test_behead.py
import unittest
from modulefinder import _behead
class beheadTest(unittest.TestCase):
path = '/a/b/c'
def testEmpty(self):
self.assertEquals(_behead('',self.path), self.path)
def
www.eeworm.com/read/411228/2190905
py guicommon_7_1.py
#
# GUI Common Class definitions
#
from Common_7_1 import *
class GUICommon:
def turnon(self):
self.status = STATUS_ON
if not self.blink: self.update()
def turn
www.eeworm.com/read/411228/2190913
py guicommon_7_2.py
#
# GUI Common Class definitions
#
from Common_7_1 import *
class GUICommon:
def turnon(self):
self.status = STATUS_ON
if not self.blink: self.update()
def turn