bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def wxFindWindowAtPoint(*_args, **_kwargs): val = misc2c.wxFindWindowAtPoint(*_args,**_kwargs) return val | def wxFindWindowAtPoint(*_args, **_kwargs): val = misc2c.wxFindWindowAtPoint(*_args,**_kwargs) return val | 31,600 |
def runTest(frame, nb, log): win = TestPanel(nb, log) return win | def runTest(frame, nb, log): win = TestPanel(nb, log) return win | 31,601 |
def adjustCFLAGS(cflags, defines, includes): '''Extrace the raw -I, -D, and -U flags and put them into defines and includes as needed.''' newCFLAGS = [] for flag in cflags: if flag[:2] == '-I': includes.append(flag[2:]) elif flag[:2] == '-D': flag = flag[2:] if flag.find('=') == -1: defines.append( (flag, None) ) else:... | def adjustCFLAGS(cflags, defines, includes): '''Extract the raw -I, -D, and -U flags and put them into defines and includes as needed.''' newCFLAGS = [] for flag in cflags: if flag[:2] == '-I': includes.append(flag[2:]) elif flag[:2] == '-D': flag = flag[2:] if flag.find('=') == -1: defines.append( (flag, None) ) else:... | 31,602 |
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 | 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 | 31,603 |
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 | 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 | 31,604 |
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 | 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 | 31,605 |
def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE) self.log = log | def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1, style=wx.NO_FULL_REPAINT_ON_RESIZE) self.log = log | 31,606 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,607 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,608 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,609 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,610 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,611 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,612 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,613 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,614 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,615 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,616 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,617 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,618 |
def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | def __init__(self, parent, id=-1, title="", pos=wx.DefaultPosition, size=wx.DefaultSize, style=wx.DEFAULT_FRAME_STYLE | wx.SUNKEN_BORDER | wx.CLIP_CHILDREN): | 31,619 |
def OnPaneButton(self, event): | def OnPaneButton(self, event): | 31,620 |
def OnPaneButton(self, event): | def OnPaneButton(self, event): | 31,621 |
def OnPaneButton(self, event): | def OnPaneButton(self, event): | 31,622 |
def OnPaneButton(self, event): | def OnPaneButton(self, event): | 31,623 |
def OnCreateTree(self, event): | defOnCreateTree(self,event): | 31,624 |
def OnCreateTree(self, event): | def OnCreateTree(self, event): | 31,625 |
def OnCreateTree(self, event): | def OnCreateTree(self, event): | 31,626 |
def OnCreateGrid(self, event): | defOnCreateGrid(self,event): | 31,627 |
def OnCreateGrid(self, event): | def OnCreateGrid(self, event): | 31,628 |
def OnCreateGrid(self, event): | def OnCreateGrid(self, event): | 31,629 |
def OnCreateHTML(self, event): | defOnCreateHTML(self,event): | 31,630 |
def OnCreateHTML(self, event): | def OnCreateHTML(self, event): | 31,631 |
def OnCreateHTML(self, event): | def OnCreateHTML(self, event): | 31,632 |
def OnCreateText(self, event): | defOnCreateText(self,event): | 31,633 |
def OnCreateText(self, event): | def OnCreateText(self, event): | 31,634 |
def OnCreateSizeReport(self, event): | defOnCreateSizeReport(self,event): | 31,635 |
def OnCreateSizeReport(self, event): | def OnCreateSizeReport(self, event): | 31,636 |
def __init__(self, parent, frame): | def __init__(self, parent, frame): | 31,637 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_DOCKART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(ca... | 31,638 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_DOCKART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(ca... | 31,639 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | 31,640 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | 31,641 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | 31,642 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | 31,643 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | 31,644 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | 31,645 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | 31,646 |
def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | def UpdateColors(self): bk = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_BACKGROUND_COLOUR) self._background_color.SetBitmapLabel(self.CreateColorBitmap(bk)) cap = self._frame.GetDockArt().GetColour(wx.aui.AUI_ART_INACTIVE_CAPTION_COLOUR) self._inactive_caption_color.SetBitmapLabel(self.CreateColorBitmap(cap)) ... | 31,647 |
def OnPaneBorderSize(self, event): self._frame.GetDockArt().SetMetric(wx.aui.AUI_ART_PANE_BORDER_SIZE, event.GetInt()) self._frame.DoUpdate() | def OnPaneBorderSize(self, event): self._frame.GetDockArt().SetMetric(wx.aui.AUI_DOCKART_PANE_BORDER_SIZE, event.GetInt()) self._frame.DoUpdate() | 31,648 |
def OnSashSize(self, event): | def OnSashSize(self, event): | 31,649 |
def OnCaptionSize(self, event): self._frame.GetDockArt().SetMetric(wx.aui.AUI_ART_CAPTION_SIZE, event.GetInt()) self._frame.DoUpdate() | def OnCaptionSize(self, event): self._frame.GetDockArt().SetMetric(wx.aui.AUI_DOCKART_CAPTION_SIZE, event.GetInt()) self._frame.DoUpdate() | 31,650 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_DOCKART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID... | 31,651 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_DOCKART_SASH_COLOUR elif event.GetId() == ID... | 31,652 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | 31,653 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | 31,654 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | 31,655 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | 31,656 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | 31,657 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | 31,658 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | 31,659 |
def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | def OnSetColor(self, event): dlg = wx.ColourDialog(self._frame) dlg.SetTitle("Color Picker") if dlg.ShowModal() != wx.ID_OK: return var = 0 if event.GetId() == ID_BackgroundColor: var = wx.aui.AUI_ART_BACKGROUND_COLOUR elif event.GetId() == ID_SashColor: var = wx.aui.AUI_ART_SASH_COLOUR elif event.GetId() == ID_Ina... | 31,660 |
def FillVC8GradientColour(self, pageContainer, dc, tabPoints, bSelectedTab, tabIdx): """ Fills a tab with a gradient shading. """ | def FillVC8GradientColour(self, pageContainer, dc, tabPoints, bSelectedTab, tabIdx): """ Fills a tab with a gradient shading. """ | 31,661 |
def run(self): result = distutils.command.install.install.run(self) metadata_file = 'addon.info' if os.path.exists(metadata_file): import wx import email fields = email.message_from_string(open(metadata_file).read()) config = wx.Config("wxaddons-receipts") config.SetPath(fields['name']) for field in fields._headers: c... | def run(self): result = distutils.command.install.install.run(self) import wx config = wx.Config("wxaddons-receipts") config.SetPath(self.distribution.get_name()) config.Write("Version", str(self.distribution.get_version())) config.Write("Summary", self.distribution.get_description()) config.Write("Home-page", self.di... | 31,662 |
def Activate(self, activate=True): """ Call this from your view frame's OnActivate member to tell the framework which view is currently active. If your windowing system doesn't call OnActivate, you may need to call this function from OnMenuCommand or any place where you know the view must be active, and the framework w... | def Activate(self, activate=True): """ Call this from your view frame's OnActivate member to tell the framework which view is currently active. If your windowing system doesn't call OnActivate, you may need to call this function from any place where you know the view must be active, and the framework will need to get t... | 31,663 |
def Activate(self, activate=True): """ Call this from your view frame's OnActivate member to tell the framework which view is currently active. If your windowing system doesn't call OnActivate, you may need to call this function from OnMenuCommand or any place where you know the view must be active, and the framework w... | def Activate(self, activate=True): """ Call this from your view frame's OnActivate member to tell the framework which view is currently active. If your windowing system doesn't call OnActivate, you may need to call this function from OnMenuCommand or any place where you know the view must be active, and the framework w... | 31,664 |
def DoGetBestSize(self): """Overridden base class virtual. Determines the best size of the button based on the label and bezel size.""" label = self.GetLabel() maxWidth = totalHeight = 0 for line in label.split('\n'): if line == '': w, h = self.GetTextExtent('W') # empty lines have height too else: w, h = self.GetTex... | def DoGetBestSize(self): """Overridden base class virtual. Determines the best size of the button based on the label size.""" label = self.GetLabel() maxWidth = totalHeight = 0 for line in label.split('\n'): if line == '': w, h = self.GetTextExtent('W') # empty lines have height too else: w, h = self.GetTextExtent(li... | 31,665 |
def RedrawIconBitmap(self): """ Redraws the icons (if they exists). """ | def RedrawIconBitmap(self): """ Redraws the icons (if they exists). """ | 31,666 |
def runTest(frame, nb, log): dlg = wxFontDialog(frame) if dlg.ShowModal() == wxID_OK: data = dlg.GetFontData() font = data.GetChosenFont() log.WriteText('You selected: "%s", %d points, color %s\n' % (font.GetFaceName(), font.GetPointSize(), data.GetColour().Get())) dlg.Destroy() | def runTest(frame, nb, log): data = wxFontData() dlg = wxFontDialog(frame, data) if dlg.ShowModal() == wxID_OK: data = dlg.GetFontData() font = data.GetChosenFont() log.WriteText('You selected: "%s", %d points, color %s\n' % (font.GetFaceName(), font.GetPointSize(), data.GetColour().Get())) dlg.Destroy() | 31,667 |
def runTest(frame, nb, log): dlg = wxFontDialog(frame) if dlg.ShowModal() == wxID_OK: data = dlg.GetFontData() font = data.GetChosenFont() log.WriteText('You selected: "%s", %d points, color %s\n' % (font.GetFaceName(), font.GetPointSize(), data.GetColour().Get())) dlg.Destroy() | def runTest(frame, nb, log): dlg = wxFontDialog(frame) if dlg.ShowModal() == wxID_OK: data = dlg.GetFontData() font = data.GetChosenFont() log.WriteText('You selected: "%s", %d points, color %s\n' % (font.GetFaceName(), font.GetPointSize(), data.GetColour().Get())) dlg.Destroy() | 31,668 |
def runTest(frame, nb, log): dlg = wxFontDialog(frame) if dlg.ShowModal() == wxID_OK: data = dlg.GetFontData() font = data.GetChosenFont() log.WriteText('You selected: "%s", %d points, color %s\n' % (font.GetFaceName(), font.GetPointSize(), data.GetColour().Get())) dlg.Destroy() | def runTest(frame, nb, log): dlg = wxFontDialog(frame) if dlg.ShowModal() == wxID_OK: data = dlg.GetFontData() font = data.GetChosenFont() log.WriteText('You selected: "%s", %d points, color %s\n' % (font.GetFaceName(), font.GetPointSize(), data.GetColour().Get())) dlg.Destroy() | 31,669 |
def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 31,670 |
def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 31,671 |
def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 31,672 |
def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 31,673 |
def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 31,674 |
def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 31,675 |
def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 31,676 |
def OnSelChanged(self, event): if self.dying: return | def OnSelChanged(self, event): if self.dying: return | 31,677 |
def OnSelChanged(self, event): if self.dying: return | def OnSelChanged(self, event): if self.dying: return | 31,678 |
def OnDemoMenu(self, event): try: selectedDemo = self.treeMap[self.mainmenu.GetLabel(event.GetId())] except: selectedDemo = None if selectedDemo: self.tree.SelectItem(selectedDemo) self.tree.EnsureVisible(selectedDemo) | def OnDemoMenu(self, event): try: selectedDemo = self.treeMap[self.mainmenu.GetLabel(event.GetId())] except: selectedDemo = None if selectedDemo: self.tree.SelectItem(selectedDemo) self.tree.EnsureVisible(selectedDemo) | 31,679 |
def OnPaint(self, event): if BUFFERED: dc = wx.BufferedPaintDC(self) else: dc = wx.PaintDC(self) width, height = self.GetClientSize() if not width or not height: return | def OnPaint(self, event): if BUFFERED: dc = wx.BufferedPaintDC(self) else: dc = wx.PaintDC(self) width, height = self.GetClientSize() if not width or not height: return | 31,680 |
def RecalcSizes(self): # get current dimensions, for performance myWidth = self.size.width myHeight = self.size.height | def RecalcSizes(self): # get current dimensions, for performance myWidth = self.size.width myHeight = self.size.height | 31,681 |
def __init__(self, type, constraining, constrained): self._xSpacing = 0.0 self._ySpacing = 0.0 | def __init__(self, type, constraining, constrained): self._xSpacing = 0.0 self._ySpacing = 0.0 | 31,682 |
def Evaluate(self): """Evaluate this constraint and return TRUE if anything changed.""" maxWidth, maxHeight = self._constraintingObject.GetBoundingBoxMax() minWidth, minHeight = self._constraintingObject.GetBoundingBoxMin() x = self._constraintingObject.GetX() y = self._constraintingObject.GetY() | def Evaluate(self): """Evaluate this constraint and return TRUE if anything changed.""" maxWidth, maxHeight = self._constraintingObject.GetBoundingBoxMax() minWidth, minHeight = self._constraintingObject.GetBoundingBoxMin() x = self._constraintingObject.GetX() y = self._constraintingObject.GetY() | 31,683 |
def libFlag(): if FINAL: rv = '' elif HYBRID: rv = 'h' else: rv = 'd' if UNICODE: rv = 'u' + rv return rv | def libFlag(): if FINAL: rv = '' elif HYBRID: rv = 'h' else: rv = 'd' if UNICODE: rv = 'u' + rv return rv | 31,684 |
def libFlag(): if FINAL: rv = '' elif HYBRID: rv = 'h' else: rv = 'd' if UNICODE: rv = 'u' + rv return rv | def libFlag(): if FINAL: rv = '' elif HYBRID: rv = 'h' else: rv = 'd' if UNICODE: rv = 'u' + rv return rv | 31,685 |
def callback(cond, sources): prf = suf = '' if sources[0].isspace(): prefix=' ' if sources[-1].isspace(): suffix=' ' retval = [] for s in sources.split(): if s.endswith('.h'): retval.append(s) return '%s%s%s' % (prf, ' '.join(retval), suf) | def callback(cond, sources): prf = suf = '' if sources[0].isspace(): prf=' ' if sources[-1].isspace(): suf=' ' retval = [] for s in sources.split(): if s.endswith('.h'): retval.append(s) return '%s%s%s' % (prf, ' '.join(retval), suf) | 31,686 |
def GetItem(self, *_args, **_kwargs): val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs) if val is not None: val.thisown = 1 return val | def GetColumn(self, *_args, **_kwargs): val = apply(controls2c.wxListCtrl_GetColumn,(self,) + _args, _kwargs) if val is not None: val.thisown = 1 return val | 31,687 |
def GetItem(self, *_args, **_kwargs): val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs) val.thisown = 1 return val | def GetItem(self, *_args, **_kwargs): val = apply(controls2c.wxListCtrl_GetItem,(self,) + _args, _kwargs) if val is not None: val.thisown = 1 return val | 31,688 |
def __init__(self, parent, log): wxPanel.__init__(self, parent, -1) self.log = log | def __init__(self, parent, log): wxPanel.__init__(self, parent, -1) self.log = log | 31,689 |
def getAttributeNames(object, includeMagic=1, includeSingle=1, includeDouble=1): """Return list of unique attributes, including inherited, for object.""" attributes = [] dict = {} if not hasattrAlwaysReturnsTrue(object): # Add some attributes that don't always get picked up. If # they don't apply, they'll get filtered... | def getAttributeNames(object, includeMagic=1, includeSingle=1, includeDouble=1): """Return list of unique attributes, including inherited, for object.""" attributes = [] dict = {} if not hasattrAlwaysReturnsTrue(object): # Add some attributes that don't always get picked up. If # they don't apply, they'll get filtered... | 31,690 |
def getAttributeNames(object, includeMagic=1, includeSingle=1, includeDouble=1): """Return list of unique attributes, including inherited, for object.""" attributes = [] dict = {} if not hasattrAlwaysReturnsTrue(object): # Add some attributes that don't always get picked up. If # they don't apply, they'll get filtered... | def getAttributeNames(object, includeMagic=1, includeSingle=1, includeDouble=1): """Return list of unique attributes, including inherited, for object.""" attributes = [] dict = {} if not hasattrAlwaysReturnsTrue(object): # Add some attributes that don't always get picked up. If # they don't apply, they'll get filtered... | 31,691 |
def getAttributeNames(object, includeMagic=1, includeSingle=1, includeDouble=1): """Return list of unique attributes, including inherited, for object.""" attributes = [] dict = {} if not hasattrAlwaysReturnsTrue(object): # Add some attributes that don't always get picked up. If # they don't apply, they'll get filtered... | def getAttributeNames(object, includeMagic=1, includeSingle=1, includeDouble=1): """Return list of unique attributes, including inherited, for object.""" attributes = [] dict = {} if not hasattrAlwaysReturnsTrue(object): # Add some attributes that don't always get picked up. If # they don't apply, they'll get filtered... | 31,692 |
def AddText(self, string): """Add a line of text to the shape's default text region.""" if not self._regions: return | def AddText(self, string): """Add a line of text to the shape's default text region.""" if not self._regions: return | 31,693 |
def libFlag(): if FINAL: rv = '' elif HYBRID: rv = 'h' else: rv = 'd' if UNICODE: rv = 'u' + rv return rv | def libFlag(): if FINAL: rv = '' elif HYBRID: rv = 'h' else: rv = 'd' if UNICODE: rv = 'u' + rv return rv | 31,694 |
def getMondrianData(): return \ | def getMondrianData(): return \ | 31,695 |
def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return depth = dirname.count('/') - 2 if depth <= 0: return prefix = ''.join(['../' for i in range(0,depth)]) args = { 'all':'-DWXTOPDIR=%s../' % prefix, 'autoconf':'-DAUTOCONF_MACROS_FILE=../../autoconf_inc.m... | def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return depth = dirname.count('/') - 2 if depth <= 0: return if type==SAMPLES_DIR: prefix = ''.join(['../' for i in range(0,depth)]) dirflags = '-DWXTOPDIR=%s../' % prefix elif type==CONTRIB_DIR: dirflags = '-D... | 31,696 |
def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return depth = dirname.count('/') - 2 if depth <= 0: return prefix = ''.join(['../' for i in range(0,depth)]) args = { 'all':'-DWXTOPDIR=%s../' % prefix, 'autoconf':'-DAUTOCONF_MACROS_FILE=../../autoconf_inc.m... | def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return depth = dirname.count('/') - 2 if depth <= 0: return prefix = ''.join(['../' for i in range(0,depth)]) args = { 'not_autoconf':dirflags, 'autoconf':'-DAUTOCONF_MACROS_FILE=../../autoconf_inc.m4', } for... | 31,697 |
def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return depth = dirname.count('/') - 2 if depth <= 0: return prefix = ''.join(['../' for i in range(0,depth)]) args = { 'all':'-DWXTOPDIR=%s../' % prefix, 'autoconf':'-DAUTOCONF_MACROS_FILE=../../autoconf_inc.m... | def onSubmakefile(type, dirname, names): bakes = [x for x in names if x.endswith('.bkl')] if len(bakes) == 0: return depth = dirname.count('/') - 2 if depth <= 0: return prefix = ''.join(['../' for i in range(0,depth)]) args = { 'all':'-DWXTOPDIR=%s../' % prefix, 'autoconf':'-DAUTOCONF_MACROS_FILE=../../autoconf_inc.m... | 31,698 |
def SetCal(self, year, month): self.InitValues() # reset initial values | def SetCal(self, year, month): self.InitValues() # reset initial values | 31,699 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.