rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
bkCol = wxWHITE | bkCol = wx.WHITE | def setSTCStyles(stc, styles, styleIdNames, commonDefs, lang, lexer, keywords): #wxLogMessage('Set style') styleDict = {} styleNumIdxMap = {} # build style dict based on given styles for numStyle in styles: num, style = parsePropLine(numStyle) styleDict[num] = style # Add blank style entries for undefined styles newS... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
def setSTCStyles(stc, styles, styleIdNames, commonDefs, lang, lexer, keywords): #wxLogMessage('Set style') styleDict = {} styleNumIdxMap = {} # build style dict based on given styles for numStyle in styles: num, style = parsePropLine(numStyle) styleDict[num] = style # Add blank style entries for undefined styles newS... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | ||
stc.StyleSetSpec(wxSTC_STYLE_DEFAULT, styleDict[wxSTC_STYLE_DEFAULT] % commonDefs) | stc.StyleSetSpec(wx.stc.STC_STYLE_DEFAULT, styleDict[wx.stc.STC_STYLE_DEFAULT] % commonDefs) | def setSTCStyles(stc, styles, styleIdNames, commonDefs, lang, lexer, keywords): #wxLogMessage('Set style') styleDict = {} styleNumIdxMap = {} # build style dict based on given styles for numStyle in styles: num, style = parsePropLine(numStyle) styleDict[num] = style # Add blank style entries for undefined styles newS... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
def setSTCStyles(stc, styles, styleIdNames, commonDefs, lang, lexer, keywords): #wxLogMessage('Set style') styleDict = {} styleNumIdxMap = {} # build style dict based on given styles for numStyle in styles: num, style = parsePropLine(numStyle) styleDict[num] = style # Add blank style entries for undefined styles newS... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | ||
commonDefsFile = 'common.defs.%s'%(wxPlatform == '__WXMSW__' and 'msw' or 'gtk') | commonDefsFile = 'common.defs.%s'%(platformSettings[wx.Platform][0]) | def setSTCStyles(stc, styles, styleIdNames, commonDefs, lang, lexer, keywords): #wxLogMessage('Set style') styleDict = {} styleNumIdxMap = {} # build style dict based on given styles for numStyle in styles: num, style = parsePropLine(numStyle) styleDict[num] = style # Add blank style entries for undefined styles newS... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
return eval(string.replace(conf.Read(name), '\r\n', '\n')+'\n') | ns = {} ns.update(wxPython.stc.__dict__) ns['wx'] = wx value = conf.Read(name).replace('\r\n', '\n')+'\n' try: return eval(value, ns) except: print value raise | def readPyValFromConfig(conf, name): return eval(string.replace(conf.Read(name), '\r\n', '\n')+'\n') | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
cfg = wxFileConfig(localFilename=configFile, style=wxCONFIG_USE_LOCAL_FILE) | if not os.path.exists(configFile): raise Exception, 'Config file %s not found'%configFile cfg = wx.FileConfig(localFilename=configFile, style= wx.CONFIG_USE_LOCAL_FILE) | def initFromConfig(configFile, lang): cfg = wxFileConfig(localFilename=configFile, style=wxCONFIG_USE_LOCAL_FILE) cfg.SetExpandEnvVars(False) # read in all group names for this language groupPrefix = 'style.%s'%lang gpLen = len(groupPrefix) predefStyleGroupNames, otherLangStyleGroupNames = [], [] cont, val, idx = cfg.... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
def initFromConfig(configFile, lang): cfg = wxFileConfig(localFilename=configFile, style=wxCONFIG_USE_LOCAL_FILE) cfg.SetExpandEnvVars(False) # read in all group names for this language groupPrefix = 'style.%s'%lang gpLen = len(groupPrefix) predefStyleGroupNames, otherLangStyleGroupNames = [], [] cont, val, idx = cfg.... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py | ||
name, value = string.split(style, '=') config.Write(name, string.strip(value)) | name, value = style.split('=') config.Write(name, value.strip()) | def writeStylesToConfig(config, group, styles): config.SetPath('') config.DeleteGroup(group) config.SetPath(group) for style in styles: name, value = string.split(style, '=') config.Write(name, string.strip(value)) config.SetPath('') | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
from wxPython.help import * app = wxPySimpleApp() provider = wxSimpleHelpProvider() wxHelpProvider_Set(provider) base = os.path.split(__file__)[0] config = os.path.abspath(os.path.join(base, 'stc-styles.rc.cfg')) | app = wx.PySimpleApp() provider = wx.SimpleHelpProvider() wx.HelpProvider.Set(provider) home = os.environ.get('HOME') if home: home = os.path.join(home, '.boa-constructor') if not os.path.exists(home): home = '.' else: home = '.' config = os.path.abspath(os.path.join(home, 'stc-styles.rc.cfg')) | def initSTC(stc, config, lang): """ Main module entry point. Initialise a wxSTC from given config file.""" (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo) = initFromConfig(config, lang) setSTCStyle... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
f = wxFrame(None, -1, 'Test frame (double click for editor)') stc = wxStyledTextCtrl(f, -1) | f = wx.Frame(None, -1, 'Test frame (double click for editor)') stc = wx.stc.StyledTextCtrl(f, -1) | def initSTC(stc, config, lang): """ Main module entry point. Initialise a wxSTC from given config file.""" (cfg, commonDefs, styleIdNames, styles, predefStyleGroupNames, predefStyleGroups, otherLangStyleGroupNames, otherLangStyleGroups, displaySrc, lexer, keywords, braceInfo) = initFromConfig(config, lang) setSTCStyle... | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
EVT_LEFT_DCLICK(stc, OnDblClick) | stc.Bind(wx.EVT_LEFT_DCLICK, OnDblClick) | def OnDblClick(evt, stc=stc): dlg = STCStyleEditDlg(None, 'Python', 'python', config, (stc,)) try: dlg.ShowModal() finally: dlg.Destroy() | 1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1e19321bfb8d6ff348cd85bdad3a1a4c2f517fa0/STCStyleEditor.py |
def __init__(self,arg0) : self.this = miscc.new_wxAcceleratorTable(arg0) self.thisown = 1 | 7bcd390c943f59567704a5e99838370e6c2aacad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/7bcd390c943f59567704a5e99838370e6c2aacad/_extras.py | ||
self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow() | raise self.error, 'wxPyStdOutWindow not yet implemented.' | def RedirectStdio(self, filename): if filename: sys.stdout = sys.stderr = open(filename, 'a') else: #raise self.error, 'wxPyStdOutWindow not yet implemented.' self.stdioWin = sys.stdout = sys.stderr = wxPyStdOutWindow() | 7bcd390c943f59567704a5e99838370e6c2aacad /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/7bcd390c943f59567704a5e99838370e6c2aacad/_extras.py |
"""NameRegions(wxString parentName="")""" | """NameRegions(wxString parentName=wxPyEmptyString)""" | def NameRegions(*args, **kwargs): """NameRegions(wxString parentName="")""" return _ogl.PyShape_NameRegions(*args, **kwargs) | dec9fa491d282a94c122c74f69e835682a28d72d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/dec9fa491d282a94c122c74f69e835682a28d72d/ogl.py |
dirflags = '-DWXTOPDIR=%s../' % prefix | topdirflags = '-DWXTOPDIR=%s../' % prefix srcdirflags = '' | def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return bakes.sort() dirname = dirname.replace(os.sep, '/') depth = dirname.count('/') - 2 if depth <= 0: return if type==SAMPLES_DIR: prefix = ''.join(['../' for i in range(0,depth)]) dirflags = '-DWXTOPDIR=%s... | 87e7f166824eea7439e5d42a2a1d4a4345ee91ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/87e7f166824eea7439e5d42a2a1d4a4345ee91ae/regenMakefile.py |
dirflags = '-DSRCDIR=../../src/%s' % dirname.split('/')[-1] dirflags += ' -DWXTOPDIR=../../../' | srcdirflags = '-DSRCDIR=../../src/%s' % dirname.split('/')[-1] topdirflags = ' -DWXTOPDIR=../../../' | def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return bakes.sort() dirname = dirname.replace(os.sep, '/') depth = dirname.count('/') - 2 if depth <= 0: return if type==SAMPLES_DIR: prefix = ''.join(['../' for i in range(0,depth)]) dirflags = '-DWXTOPDIR=%s... | 87e7f166824eea7439e5d42a2a1d4a4345ee91ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/87e7f166824eea7439e5d42a2a1d4a4345ee91ae/regenMakefile.py |
'all':dirflags, | 'all':topdirflags, 'not_autoconf':srcdirflags, | def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return bakes.sort() dirname = dirname.replace(os.sep, '/') depth = dirname.count('/') - 2 if depth <= 0: return if type==SAMPLES_DIR: prefix = ''.join(['../' for i in range(0,depth)]) dirflags = '-DWXTOPDIR=%s... | 87e7f166824eea7439e5d42a2a1d4a4345ee91ae /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/87e7f166824eea7439e5d42a2a1d4a4345ee91ae/regenMakefile.py |
self._setOORandCallbackInfo(PyShapeEvtHandler) | self._setOORandCallbackInfo(PyShape) | def __init__(self, *args, **kwargs): """__init__(self, PyShapeCanvas can=None) -> PyShape""" newobj = _ogl.new_PyShape(*args, **kwargs) self.this = newobj.this self.thisown = 1 del newobj.thisown self._setOORandCallbackInfo(PyShapeEvtHandler) | baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0/ogl.py |
"""DrawLines(self, int PCOUNT, Point points)""" | """DrawLines(self, int points, Point points_array)""" | def DrawLines(*args, **kwargs): """DrawLines(self, int PCOUNT, Point points)""" return _ogl.PseudoMetaFile_DrawLines(*args, **kwargs) | baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0/ogl.py |
"""DrawPolygon(self, int PCOUNT, Point points, int flags=0)""" | """DrawPolygon(self, int points, Point points_array, int flags=0)""" | def DrawPolygon(*args, **kwargs): """DrawPolygon(self, int PCOUNT, Point points, int flags=0)""" return _ogl.PseudoMetaFile_DrawPolygon(*args, **kwargs) | baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0/ogl.py |
"""DrawSpline(self, int PCOUNT, Point points)""" | """DrawSpline(self, int points, Point points_array)""" | def DrawSpline(*args, **kwargs): """DrawSpline(self, int PCOUNT, Point points)""" return _ogl.PseudoMetaFile_DrawSpline(*args, **kwargs) | baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0/ogl.py |
"""DrawLines(self, int PCOUNT, Point points)""" | """DrawLines(self, int points, Point points_array)""" | def DrawLines(*args, **kwargs): """DrawLines(self, int PCOUNT, Point points)""" return _ogl.PyDrawnShape_DrawLines(*args, **kwargs) | baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0/ogl.py |
"""DrawPolygon(self, int PCOUNT, Point points, int flags=0)""" | """DrawPolygon(self, int points, Point points_array, int flags=0)""" | def DrawPolygon(*args, **kwargs): """DrawPolygon(self, int PCOUNT, Point points, int flags=0)""" return _ogl.PyDrawnShape_DrawPolygon(*args, **kwargs) | baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0/ogl.py |
"""DrawSpline(self, int PCOUNT, Point points)""" | """DrawSpline(self, int points, Point points_array)""" | def DrawSpline(*args, **kwargs): """DrawSpline(self, int PCOUNT, Point points)""" return _ogl.PyDrawnShape_DrawSpline(*args, **kwargs) | baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/baaa1d1a58224f2d1509965e5e9d9e8fd5799cf0/ogl.py |
dc.DrawRectangleRect(itemrect) | if wx.Platform in ["__WXGTK2__", "__WXMAC__"]: flags = wx.CONTROL_SELECTED if self._hasFocus: flags = flags | wx.CONTROL_FOCUSED wx.RendererNative.Get().DrawItemSelectionRect(self, dc, itemrect, flags) else: dc.DrawRectangleRect(itemrect) | def PaintItem(self, item, dc): """Actually paint an item.""" | 8bc0c17afc3a83b625a6109375bf86a126cac69e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/8bc0c17afc3a83b625a6109375bf86a126cac69e/customtreectrl.py |
dc.DrawRectangleRect(itemrect) | if wx.Platform in ["__WXGTK2__", "__WXMAC__"]: flags = wx.CONTROL_SELECTED if self._hasFocus: flags = flags | wx.CONTROL_FOCUSED wx.RendererNative.Get().DrawItemSelectionRect(self, dc, itemrect, flags) else: dc.DrawRectangleRect(itemrect) | def PaintItem(self, item, dc): """Actually paint an item.""" | 8bc0c17afc3a83b625a6109375bf86a126cac69e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/8bc0c17afc3a83b625a6109375bf86a126cac69e/customtreectrl.py |
dirname = os.path.dirname(self.dataFile) | dirname = os.path.abspath(os.path.dirname(self.dataFile)) | def OnSaveOrSaveAs(self, evt): if evt.GetId() == wxID_SAVEAS or not self.dataFile: if self.dataFile: defaultName = '' else: defaultName = 'UNTITLED.xrc' dirname = os.path.dirname(self.dataFile) dlg = wxFileDialog(self, 'Save As', dirname, defaultName, '*.xrc', wxSAVE | wxOVERWRITE_PROMPT | wxCHANGE_DIR) if dlg.ShowModa... | 207ebbbd7281ff518aac06a2388bb487a8c18733 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/207ebbbd7281ff518aac06a2388bb487a8c18733/xrced.py |
if parent.__class__ not in [xxxMainNode, xxxPanel, xxxFrame]: error = True | if parent.__class__ not in [xxxMainNode, xxxPanel, xxxFrame] and \ not parent.isSizer: error = True | def OnPaste(self, evt): selected = tree.selection if not selected: return # key pressed event # For pasting with Ctrl pressed appendChild = True if evt.GetId() == pullDownMenu.ID_PASTE_SIBLING: appendChild = False elif evt.GetId() == self.ID_TOOL_PASTE: if g.tree.ctrl: appendChild = False else: appendChild = no... | 207ebbbd7281ff518aac06a2388bb487a8c18733 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/207ebbbd7281ff518aac06a2388bb487a8c18733/xrced.py |
grid1.Add( self.integerwidth, 0, wx.ALIGN_LEFT|wx.ALL, 5 ) | grid1.Add( self.integerwidth, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 ) | def __init__( self, parent, log ): | 13fc2ad8196af29d6a3e2c8dfac5d6c10acfcacb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/13fc2ad8196af29d6a3e2c8dfac5d6c10acfcacb/MaskedNumCtrl.py |
grid1.Add( self.groupchar, 0, wx.ALIGN_LEFT|wx.ALL, 5 ) | grid1.Add( self.groupchar, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 ) | def __init__( self, parent, log ): | 13fc2ad8196af29d6a3e2c8dfac5d6c10acfcacb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/13fc2ad8196af29d6a3e2c8dfac5d6c10acfcacb/MaskedNumCtrl.py |
grid1.Add( self.fractionwidth, 0, wx.ALIGN_LEFT|wx.ALL, 5 ) | grid1.Add( self.fractionwidth, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 ) | def __init__( self, parent, log ): | 13fc2ad8196af29d6a3e2c8dfac5d6c10acfcacb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/13fc2ad8196af29d6a3e2c8dfac5d6c10acfcacb/MaskedNumCtrl.py |
grid1.Add( self.decimalchar, 0, wx.ALIGN_LEFT|wx.ALL, 5 ) | grid1.Add( self.decimalchar, 0, wx.FIXED_SIZE|wx.ALIGN_LEFT|wx.ALL, 5 ) | def __init__( self, parent, log ): | 13fc2ad8196af29d6a3e2c8dfac5d6c10acfcacb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/13fc2ad8196af29d6a3e2c8dfac5d6c10acfcacb/MaskedNumCtrl.py |
def __init__(self, parent, id, pos, size, style): | def __init__(self, parent, id, pos, size, style, log): | def __init__(self, parent, id, pos, size, style): wxTreeCtrl.__init__(self, parent, id, pos, size, style) | 3b36695de4d1d88e57c75465d81c6462a454eb86 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/3b36695de4d1d88e57c75465d81c6462a454eb86/wxTreeCtrl.py |
self.log = log | def __init__(self, parent, id, pos, size, style): wxTreeCtrl.__init__(self, parent, id, pos, size, style) | 3b36695de4d1d88e57c75465d81c6462a454eb86 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/3b36695de4d1d88e57c75465d81c6462a454eb86/wxTreeCtrl.py | |
wxTR_HAS_BUTTONS | wxTR_EDIT_LABELS) | wxTR_HAS_BUTTONS | wxTR_EDIT_LABELS , self.log) | def __init__(self, parent, log): # Use the WANTS_CHARS style so the panel doesn't eat the Return key. wxPanel.__init__(self, parent, -1, style=wxWANTS_CHARS) EVT_SIZE(self, self.OnSize) | 3b36695de4d1d88e57c75465d81c6462a454eb86 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/3b36695de4d1d88e57c75465d81c6462a454eb86/wxTreeCtrl.py |
def RestoreStdio(self): sys.stdout, sys.stderr = self.saveStdio if self.stdioWin != None: self.stdioWin.Show(false) self.stdioWin.Destroy() self.stdioWin = None | 11765138636bade99a104fa6a72ef5ced752b22d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/11765138636bade99a104fa6a72ef5ced752b22d/wx.py | ||
EVT_WINDOW_CREATE(self, self.OnCreateWindow) | if wxPlatform != '__WXMSW__': EVT_WINDOW_CREATE(self, self.OnCreateWindow) else: hdl = self.GetHandle() self.renderWindow.SetWindowInfo(str(hdl)) | def __init__(self, parent, id, position=wxDefaultPosition, size=wxDefaultSize, style=0): wxScrolledWindow.__init__(self, parent, id, position, size, style) | d59efe01ea62f90077c3e43db08bbfbce4f9f544 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d59efe01ea62f90077c3e43db08bbfbce4f9f544/vtk.py |
pen = wx.Pen(wx.NamedColour(colour), width, style) | if not isinstance(colour, wx.Colour): colour = wx.NamedColour(colour) pen = wx.Pen(colour, width, style) | def draw(self, dc, printerScale, coord= None): colour = self.attributes['colour'] width = self.attributes['width'] * printerScale style= self.attributes['style'] pen = wx.Pen(wx.NamedColour(colour), width, style) pen.SetCap(wx.CAP_BUTT) dc.SetPen(pen) if coord == None: dc.DrawLines(self.scaled) else: dc.DrawLines(coord... | b0d45269cc5046402752449098731b8ee189d78d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b0d45269cc5046402752449098731b8ee189d78d/plot.py |
dc.SetPen(wx.Pen(wx.NamedColour(colour), width)) | if colour and not isinstance(colour, wx.Colour): colour = wx.NamedColour(colour) if fillcolour and not isinstance(fillcolour, wx.Colour): fillcolour = wx.NamedColour(fillcolour) dc.SetPen(wx.Pen(colour, width)) | def draw(self, dc, printerScale, coord= None): colour = self.attributes['colour'] width = self.attributes['width'] * printerScale size = self.attributes['size'] * printerScale fillcolour = self.attributes['fillcolour'] fillstyle = self.attributes['fillstyle'] marker = self.attributes['marker'] | b0d45269cc5046402752449098731b8ee189d78d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b0d45269cc5046402752449098731b8ee189d78d/plot.py |
dc.SetBrush(wx.Brush(wx.NamedColour(fillcolour),fillstyle)) else: dc.SetBrush(wx.Brush(wx.NamedColour(colour), fillstyle)) | dc.SetBrush(wx.Brush(fillcolour,fillstyle)) else: dc.SetBrush(wx.Brush(colour, fillstyle)) | def draw(self, dc, printerScale, coord= None): colour = self.attributes['colour'] width = self.attributes['width'] * printerScale size = self.attributes['size'] * printerScale fillcolour = self.attributes['fillcolour'] fillstyle = self.attributes['fillstyle'] marker = self.attributes['marker'] | b0d45269cc5046402752449098731b8ee189d78d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b0d45269cc5046402752449098731b8ee189d78d/plot.py |
dc.SetPen(wx.Pen(wx.NamedColour('BLACK'), penWidth)) | dc.SetPen(wx.Pen(self._gridColour, penWidth)) | def _drawAxes(self, dc, p1, p2, scale, shift, xticks, yticks): penWidth= self.printerScale # increases thickness for printing only dc.SetPen(wx.Pen(wx.NamedColour('BLACK'), penWidth)) # set length of tick marks--long ones make grid if self._gridEnabled: x,y,width,height= self._point2ClientCoord(p1,p2) if self.... | b0d45269cc5046402752449098731b8ee189d78d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b0d45269cc5046402752449098731b8ee189d78d/plot.py |
pen.SetDashes([0, 1, 2, 3, 4, 5, 6, 7, 8]) | pen.SetDashes([1, 2, 3, 4, 5, 6, 7, 8]) | def DoDrawing(self, dc): dc.BeginDrawing() dc.SetPen(wxPen(wxNamedColour('RED'))) dc.DrawRectangle(5, 5, 50, 50) | 05f30eecb7fbe4b923e8c0ff13b1a97a03cb75d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/05f30eecb7fbe4b923e8c0ff13b1a97a03cb75d3/wxScrolledWindow.py |
def DoDrawing(self, dc): dc.BeginDrawing() dc.SetPen(wxPen(wxNamedColour('RED'))) dc.DrawRectangle(5, 5, 50, 50) | 05f30eecb7fbe4b923e8c0ff13b1a97a03cb75d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/05f30eecb7fbe4b923e8c0ff13b1a97a03cb75d3/wxScrolledWindow.py | ||
testText = | testText = \ | def test(): testText = | 4c53d5301b134376f49ec1296d2e4c83dae8c0a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c53d5301b134376f49ec1296d2e4c83dae8c0a3/fancytext.py |
self._fgclr.SetSizeHints((20,20)) | self._fgclr.SetMinSize((20,20)) | def __init__(self, parent, label): wx.Panel.__init__(self, parent) | 320700213165fc9d163f3a361fce12dc6a796fa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/320700213165fc9d163f3a361fce12dc6a796fa3/widgetLayoutTest.py |
self._bgclr.SetSizeHints((20,20)) | self._bgclr.SetMinSize((20,20)) | def __init__(self, parent, label): wx.Panel.__init__(self, parent) | 320700213165fc9d163f3a361fce12dc6a796fa3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/320700213165fc9d163f3a361fce12dc6a796fa3/widgetLayoutTest.py |
'src/_stockobjs.i', 'src/_dragimg.i', | 'src/_stockobjs.i', | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | dd9f7fea29e3f8bb61861f52984b7943512346ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/dd9f7fea29e3f8bb61861f52984b7943512346ac/setup.py |
'src/_cshelp.i', | 'src/_cshelp.i', 'src/_dragimg.i', | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | dd9f7fea29e3f8bb61861f52984b7943512346ac /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/dd9f7fea29e3f8bb61861f52984b7943512346ac/setup.py |
wxPanel.__init__(self, parent, -1) | wx.Panel.__init__(self, parent, -1) | def __init__(self, parent): wxPanel.__init__(self, parent, -1) print parent | 2620b36e036a1d93bf57c97ee2f7cb9a339fd457 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2620b36e036a1d93bf57c97ee2f7cb9a339fd457/embedded_sample.py |
text = wxStaticText(self, -1, | text = wx.StaticText(self, -1, | def __init__(self, parent): wxPanel.__init__(self, parent, -1) print parent | 2620b36e036a1d93bf57c97ee2f7cb9a339fd457 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2620b36e036a1d93bf57c97ee2f7cb9a339fd457/embedded_sample.py |
text.SetFont(wxFont(12, wxSWISS, wxNORMAL, wxBOLD)) | text.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.BOLD)) | def __init__(self, parent): wxPanel.__init__(self, parent, -1) print parent | 2620b36e036a1d93bf57c97ee2f7cb9a339fd457 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2620b36e036a1d93bf57c97ee2f7cb9a339fd457/embedded_sample.py |
sizer = wxBoxSizer(wxVERTICAL) sizer.Add(text, 0, wxEXPAND|wxALL, 10) sizer.Add(pycrust, 1, wxEXPAND|wxBOTTOM|wxLEFT|wxRIGHT, 10) | sizer = wx.BoxSizer(wx.VERTICAL) sizer.Add(text, 0, wx.EXPAND|wx.ALL, 10) sizer.Add(pycrust, 1, wx.EXPAND|wx.BOTTOM|wx.LEFT|wx.RIGHT, 10) | def __init__(self, parent): wxPanel.__init__(self, parent, -1) print parent | 2620b36e036a1d93bf57c97ee2f7cb9a339fd457 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2620b36e036a1d93bf57c97ee2f7cb9a339fd457/embedded_sample.py |
def __init__(self, parent): wxPanel.__init__(self, parent, -1) print parent | 2620b36e036a1d93bf57c97ee2f7cb9a339fd457 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2620b36e036a1d93bf57c97ee2f7cb9a339fd457/embedded_sample.py | ||
includes += [ CONTRIBS_INC ] | CONTRIBS_INC = [ CONTRIBS_INC ] else: CONTRIBS_INC = [] | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 4c41721418d544175d81f2270bc305cc33de5f12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c41721418d544175d81f2270bc305cc33de5f12/setup.py |
include_dirs = includes, | include_dirs = includes + CONTRIBS_INC, | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 4c41721418d544175d81f2270bc305cc33de5f12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c41721418d544175d81f2270bc305cc33de5f12/setup.py |
include_dirs = includes + [ location ], | include_dirs = includes + [ location ] + CONTRIBS_INC, | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 4c41721418d544175d81f2270bc305cc33de5f12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c41721418d544175d81f2270bc305cc33de5f12/setup.py |
include_dirs = includes, | include_dirs = includes + CONTRIBS_INC, | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 4c41721418d544175d81f2270bc305cc33de5f12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c41721418d544175d81f2270bc305cc33de5f12/setup.py |
include_dirs = includes, | include_dirs = includes + CONTRIBS_INC, | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 4c41721418d544175d81f2270bc305cc33de5f12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c41721418d544175d81f2270bc305cc33de5f12/setup.py |
include_dirs = includes, | include_dirs = includes + CONTRIBS_INC, | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 4c41721418d544175d81f2270bc305cc33de5f12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c41721418d544175d81f2270bc305cc33de5f12/setup.py |
include_dirs = includes + [ location ], | include_dirs = includes + [ location ] + CONTRIBS_INC, | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 4c41721418d544175d81f2270bc305cc33de5f12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c41721418d544175d81f2270bc305cc33de5f12/setup.py |
include_dirs = includes, | include_dirs = includes + CONTRIBS_INC, | def adjustLFLAGS(lfags, libdirs, libs): '''Extrace the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 4c41721418d544175d81f2270bc305cc33de5f12 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c41721418d544175d81f2270bc305cc33de5f12/setup.py |
dlg = wx.MessageDialog(frame, 'This demo only works on MSW.', | dlg = wx.MessageDialog(frame, 'This demo only works on Windows.', | def runTest(frame, nb, log): if wx.Platform == '__WXMSW__': win = TestPanel(nb, log, frame) return win else: dlg = wx.MessageDialog(frame, 'This demo only works on MSW.', 'Sorry', wx.OK | wx.ICON_INFORMATION) dlg.ShowModal() dlg.Destroy() | 21b227f211df3c3fd52d75afd4febf7704e76192 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/21b227f211df3c3fd52d75afd4febf7704e76192/IEHtmlWin.py |
if type(self.ctx.classObj) != types.ClassType: | if type(self.ctx.classObj) not in [ types.ClassType, types.TypeType]: | def HandleWxpTag(self, tag): # create a new context object self.ctx = _Context() | fb757066dfea26412c518153f7c4af05a8a43dc9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/fb757066dfea26412c518153f7c4af05a8a43dc9/wxpTag.py |
print "Check imports is: " + `check_imports` | def import_hook(name, globals=None, locals=None, fromlist=None): # Fast path: see if the module has already been imported. try: return builtin_import(name, globals, locals, fromlist) except: print "Check imports is: " + `check_imports` if name.startswith("wxaddons"): print "Querying %s for module." % domain try: modnam... | 7532d26c0cc2fd4e24f3298874a6589fffa02655 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/7532d26c0cc2fd4e24f3298874a6589fffa02655/__init__.py | |
be associated with any text entry control. (eg. wxTextCtrl, wxComboBox, etc.) | be associated with any text entry control. (eg. wx.TextCtrl, wx.ComboBox, etc.) | def _AdjustField(self, slice): """ 'Fixes' an integer field. Right or left-justifies, as required.""" | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py |
def _OnTextChange(self, event): """ Handler for EVT_TEXT event. self._Change() is provided for subclasses, and may return False to skip this method logic. This function returns True if the event detected was a legitimate event, or False if it was a "bogus" EVT_TEXT event. (NOTE: There is currently an issue with calli... | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py | ||
if newvalue == self._curValue: | if newvalue == self._curValue or len(newvalue) == 0: | def _OnTextChange(self, event): """ Handler for EVT_TEXT event. self._Change() is provided for subclasses, and may return False to skip this method logic. This function returns True if the event detected was a legitimate event, or False if it was a "bogus" EVT_TEXT event. (NOTE: There is currently an issue with calli... | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py |
The TAB key auto selects the entire contents of the wxTextCtrl *after* | The TAB key auto selects the entire contents of the wx.TextCtrl *after* | def _OnFocus(self,event): """ This event handler is currently necessary to work around new default behavior as of wxPython2.3.3; The TAB key auto selects the entire contents of the wxTextCtrl *after* the EVT_SET_FOCUS event occurs; therefore we can't query/adjust the selection *here*, because it hasn't happened yet. S... | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py |
valid = False | return False | def _validateNumeric(self, candidate=None): """ Validate that the value is within the specified range (if specified.)""" if candidate is None: value = self._GetValue() else: value = candidate try: groupchar = self._fields[0]._groupChar if self._isFloat: number = float(value.replace(groupchar, '').replace(self._decimalC... | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py |
do this is because the default behavior on TAB traveral in a wxTextCtrl is | do this is because the default behavior on TAB traveral in a wx.TextCtrl is | def _fixSelection(self): """ This gets called after the TAB traversal selection is made, if the focus event was due to this, but before the EVT_LEFT_* events if the focus shift was due to a mouse event. | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py |
do = wxTextDataObject() | do = wx.TextDataObject() | def _Cut(self): """ Used to override the default Cut() method in base controls, instead copying the selection to the clipboard and then blanking the selection, leaving only the mask in the selected area behind. Note: _Cut (read "undercut" ;-) must be called from a Cut() override in the derived control because the mixin... | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py |
wxTheClipboard.Open() wxTheClipboard.SetData(do) wxTheClipboard.Close() | wx.TheClipboard.Open() wx.TheClipboard.SetData(do) wx.TheClipboard.Close() | def _Cut(self): """ Used to override the default Cut() method in base controls, instead copying the selection to the clipboard and then blanking the selection, leaving only the mask in the selected area behind. Note: _Cut (read "undercut" ;-) must be called from a Cut() override in the derived control because the mixin... | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py |
## def _Copy( self ): | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py | ||
## def _Copy( self ): | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py | ||
## def _Copy( self ): | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py | ||
## def _Copy( self ): | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py | ||
do = wxTextDataObject() wxTheClipboard.Open() success = wxTheClipboard.GetData(do) wxTheClipboard.Close() | do = wx.TextDataObject() wx.TheClipboard.Open() success = wx.TheClipboard.GetData(do) wx.TheClipboard.Close() | def _getClipboardContents( self ): """ Subroutine for getting the current contents of the clipboard. """ do = wxTextDataObject() wxTheClipboard.Open() success = wxTheClipboard.GetData(do) wxTheClipboard.Close() | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py |
def onClickPrint(self, event): for format in masktags.keys(): sep = "+------------------------+" print "%s\n%s \n Mask: %s \n RE Validation string: %s\n" % (sep,format, masktags[format]['mask'], masktags[format]['validRegex']) | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py | ||
def onClickPrint(self, event): for format in masktags.keys(): sep = "+------------------------+" print "%s\n%s \n Mask: %s \n RE Validation string: %s\n" % (sep,format, masktags[format]['mask'], masktags[format]['validRegex']) | 89f9e172e206e88c784ef0ef88f77a38a5585d35 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/89f9e172e206e88c784ef0ef88f77a38a5585d35/maskededit.py | ||
t2b1 = wx.Button(self, -1, "wx.FutureCall") | t2b1 = wx.Button(self, -1, "wx.CallLater") | def __init__(self, parent, log): self.log = log sp.ScrolledPanel.__init__(self, parent, -1) | 04f99266b069fa27d2f380070fa8b3456ed1b485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/04f99266b069fa27d2f380070fa8b3456ed1b485/Timer.py |
def OnTest1Timer(self, evt): self.log.write("got EVT_TIMER event\n") | 04f99266b069fa27d2f380070fa8b3456ed1b485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/04f99266b069fa27d2f380070fa8b3456ed1b485/Timer.py | ||
self.t2 = wx.FutureCall(1000, self.OnTest2Timer, | self.t2 = wx.CallLater(1000, self.OnTest2Timer, | def OnTest2Start(self, evt): # Call OnTest2Timer one second in the future, passing some # optional arbitrary args. There is no need to hold a # reference to this one, unless we want to manipulate or query # it later like we do in the two methods below self.t2 = wx.FutureCall(1000, self.OnTest2Timer, 'a', 'b', 'c', one... | 04f99266b069fa27d2f380070fa8b3456ed1b485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/04f99266b069fa27d2f380070fa8b3456ed1b485/Timer.py |
self.log.write("FutureCall scheduled\n") | self.log.write("CallLater scheduled\n") | def OnTest2Start(self, evt): # Call OnTest2Timer one second in the future, passing some # optional arbitrary args. There is no need to hold a # reference to this one, unless we want to manipulate or query # it later like we do in the two methods below self.t2 = wx.FutureCall(1000, self.OnTest2Timer, 'a', 'b', 'c', one... | 04f99266b069fa27d2f380070fa8b3456ed1b485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/04f99266b069fa27d2f380070fa8b3456ed1b485/Timer.py |
self.log.write("FutureCall stopped, last return value was: %s\n" % | self.log.write("CallLater stopped, last return value was: %s\n" % | def OnTest2Stop(self, evt): self.t2.Stop() self.log.write("FutureCall stopped, last return value was: %s\n" % repr(self.t2.GetResult())) del self.t2 self.t2b2.Disable() | 04f99266b069fa27d2f380070fa8b3456ed1b485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/04f99266b069fa27d2f380070fa8b3456ed1b485/Timer.py |
self.log.write("FutureCall called with args=%s, kwargs=%s\n" % (args, kw)) | self.log.write("CallLater called with args=%s, kwargs=%s\n" % (args, kw)) | def OnTest2Timer(self, *args, **kw): self.log.write("FutureCall called with args=%s, kwargs=%s\n" % (args, kw)) | 04f99266b069fa27d2f380070fa8b3456ed1b485 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/04f99266b069fa27d2f380070fa8b3456ed1b485/Timer.py |
glLightModel(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0]) | glLightModelfv(GL_LIGHT_MODEL_AMBIENT, [0.2, 0.2, 0.2, 1.0]) | def InitGL( self ): glMatrixMode(GL_PROJECTION) # camera frustrum setup glFrustum(-0.5, 0.5, -0.5, 0.5, 1.0, 3.0) glMaterial(GL_FRONT, GL_AMBIENT, [0.2, 0.2, 0.2, 1.0]) glMaterial(GL_FRONT, GL_DIFFUSE, [0.8, 0.8, 0.8, 1.0]) glMaterial(GL_FRONT, GL_SPECULAR, [1.0, 0.0, 1.0, 1.0]) glMaterial(GL_FRONT, GL_SHININESS, 50.0)... | de8137ac5c47102f0815e4177f31dc2f1a128f65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/de8137ac5c47102f0815e4177f31dc2f1a128f65/GLCanvas.py |
glutInit([]) | def InitGL( self ): glMatrixMode(GL_PROJECTION) # camera frustrum setup glFrustum(-0.5, 0.5, -0.5, 0.5, 1.0, 3.0) glMaterial(GL_FRONT, GL_AMBIENT, [0.2, 0.2, 0.2, 1.0]) glMaterial(GL_FRONT, GL_DIFFUSE, [0.8, 0.8, 0.8, 1.0]) glMaterial(GL_FRONT, GL_SPECULAR, [1.0, 0.0, 1.0, 1.0]) glMaterial(GL_FRONT, GL_SHININESS, 50.0)... | de8137ac5c47102f0815e4177f31dc2f1a128f65 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/de8137ac5c47102f0815e4177f31dc2f1a128f65/GLCanvas.py | |
id=self.ID_WINDOW_TOP, id2=self.ID_WINDOW_BOTTOM, | id=min(winids), id2=max(winids) | def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) | 6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py |
win = wx.SashLayoutWindow( self, self.ID_WINDOW_TOP, wx.DefaultPosition, (200, 30), wx.NO_BORDER|wx.SW_3D ) win.SetDefaultSize((1000, 30)) win.SetOrientation(wx.LAYOUT_HORIZONTAL) win.SetAlignment(wx.LAYOUT_TOP) win.SetBackgroundColour(wx.Colour(255, 0, 0)) win.SetSashVisible(wx.SASH_BOTTOM, True) self.topWindow = ... | def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) | 6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py | |
eID = event.GetId() | eobj = event.GetEventObject() | def OnSashDrag(self, event): if event.GetDragStatus() == wx.SASH_STATUS_OUT_OF_RANGE: return | 6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py |
if eID == self.ID_WINDOW_TOP: | if eobj is self.topWindow: self.log.write('topwin received drag event') | def OnSashDrag(self, event): if event.GetDragStatus() == wx.SASH_STATUS_OUT_OF_RANGE: return | 6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py |
elif eID == self.ID_WINDOW_LEFT1: | elif eobj is self.leftWindow1: self.log.write('leftwin1 received drag event') | def OnSashDrag(self, event): if event.GetDragStatus() == wx.SASH_STATUS_OUT_OF_RANGE: return | 6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py |
elif eID == self.ID_WINDOW_LEFT2: | elif eobj is self.leftWindow2: self.log.write('leftwin2 received drag event') | def OnSashDrag(self, event): if event.GetDragStatus() == wx.SASH_STATUS_OUT_OF_RANGE: return | 6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py |
elif eID == self.ID_WINDOW_BOTTOM: | elif eobj is self.bottomWindow: self.log.write('bottomwin received drag event') | def OnSashDrag(self, event): if event.GetDragStatus() == wx.SASH_STATUS_OUT_OF_RANGE: return | 6f016d540117a5832f5242344694a6e2f25094a6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6f016d540117a5832f5242344694a6e2f25094a6/SashWindow.py |
wizard = wiz.Wizard(self, -1, "Simple Wizard", images.getWizTest1Bitmap()) | wizard = wiz.Wizard(self, -1, "Dynamic Wizard", images.getWizTest1Bitmap()) | def OnRunDynamicWizard(self, evt): # Create the wizard and the pages #wizard = wx.PreWizard() #wizard.SetExtraStyle(wx.WIZARD_EX_HELPBUTTON) #wizard.Create(self, self.ID_wiz, "Simple Wizard", # images.getWizTest1Bitmap()) wizard = wiz.Wizard(self, -1, "Simple Wizard", images.getWizTest1Bitmap()) | 4e9080bc8ea7e46bcc442037a67a08ad4efb8674 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4e9080bc8ea7e46bcc442037a67a08ad4efb8674/Wizard.py |
def adjustLFLAGS(lfags, libdirs, libs): | def adjustLFLAGS(lflags, libdirs, libs): | def adjustLFLAGS(lfags, libdirs, libs): '''Extract the -L and -l flags and put them in libdirs and libs as needed''' newLFLAGS = [] for flag in lflags: if flag[:2] == '-L': libdirs.append(flag[2:]) elif flag[:2] == '-l': libs.append(flag[2:]) else: newLFLAGS.append(flag) return newLFLAGS | 2bbabc0647910d6afea914a7c295cfb761ac2423 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2bbabc0647910d6afea914a7c295cfb761ac2423/config.py |
fgs.Add(wxTextCtrl(self, -1, "", validator = MyValidator(ALPHA_ONLY)) | fgs.Add(wxTextCtrl(self, -1, "", validator = MyValidator(ALPHA_ONLY))) | def __init__(self, parent): wxPanel.__init__(self, parent, -1) self.SetAutoLayout(true) VSPACE = 10 | e918362128868b35e4e21ceda651a62794070a6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e918362128868b35e4e21ceda651a62794070a6f/wxValidator.py |
fgs.Add(wxTextCtrl(self, -1, "", validator = MyValidator(DIGITS_ONLY))) | fgs.Add(wxTextCtrl(self, -1, "", validator = MyValidator(DIGIT_ONLY))) | def __init__(self, parent): wxPanel.__init__(self, parent, -1) self.SetAutoLayout(true) VSPACE = 10 | e918362128868b35e4e21ceda651a62794070a6f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e918362128868b35e4e21ceda651a62794070a6f/wxValidator.py |
dc.SetClippingRegion(0, 0, dcwidth, dcheight) | dc.SetClippingRegion((0, 0), (dcwidth, dcheight)) | def OnPaint(self, event): dc = wx.PaintDC(self) dc.SetFont(self.GetFont()) dc.Clear() text = self.GetValue() textwidth, textheight = dc.GetTextExtent(text) dcwidth, dcheight = self.GetClientSize() | 35095c028d472a2d0b9607a9430a468765a16e3f /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/35095c028d472a2d0b9607a9430a468765a16e3f/rightalign.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.