代码搜索:self

找到约 10,000 项符合「self」的源代码

代码结果 10,000
www.eeworm.com/read/381490/2643996

py bgenbacksupport.py

from bgenOutput import * from bgenVariable import * class BackGeneratorGroup: def __init__(self): self.generators = [] def add(self, g, dupcheck=0): self.generators.append(g
www.eeworm.com/read/138927/13201945

c stack.c

#include Stack* stack_new() { Stack* self; self = (Stack*) mem_new (sizeof(Stack)); object_init_object((Object*)self, stack_destroy); self->stack = list_new(); return self; }
www.eeworm.com/read/193974/5138184

py graph.py

from java import awt from math import * from jarray import array class Graph(awt.Canvas): def __init__(self): self.function = None def paint(self, g): if self.function is None: return self.
www.eeworm.com/read/100265/15879287

py idle.py

Callouts = [] class Callout: def __init__(self, function, time, val = 0): self.once = val self.func = function self.next_call = now + time self.next_time = time def once_only(sel
www.eeworm.com/read/183315/5256632

py timer.py

import wx import time class ClockWindow(wx.Window): def __init__(self, parent): wx.Window.__init__(self, parent) self.Bind(wx.EVT_PAINT, self.OnPaint) self.timer = wx.Time
www.eeworm.com/read/193974/5138003

py repr.py

"""Redo the `...` (representation) but with limits on most sizes.""" __all__ = ["Repr","repr"] class Repr: def __init__(self): self.maxlevel = 6 self.maxtuple = 6 self.ma
www.eeworm.com/read/183315/5256634

py drop_target.py

import wx class MyFileDropTarget(wx.FileDropTarget): def __init__(self, window): wx.FileDropTarget.__init__(self) self.window = window def OnDropFiles(self, x, y, filenames):
www.eeworm.com/read/183315/5256746

py customevent.py

import wx class TwoButtonEvent(wx.PyCommandEvent): def __init__(self, evtType, id): wx.PyCommandEvent.__init__(self, evtType, id) self.clickCount = 0 def GetClickCount(self):
www.eeworm.com/read/338546/3315274

g t014parser.g

grammar t014parser; options { language = Python; } @parser::init { self.events = [] self.reportedErrors = [] } @parser::members { def emitErrorMessage(self, msg): self.reportedErrors.append(ms
www.eeworm.com/read/411228/2190726

py frame2.py

from Tkinter import * class GUI: def __init__(self): self.root = Tk() self.root.title('Frame Styles') for bdw in range(5): setattr(self, 'of%d' % bdw, Frame