bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def GetItemType(self, item): """ Returns the item type: 0: normal 1: checkbox item 2: radiobutton item """ | def GetItemType(self, item): """ Returns the item type: 0: normal 1: checkbox item 2: radiobutton item """ | 31,900 |
def IsVisible(self, item): """Returns whether the item is visible or not.""" | def IsVisible(self, item): """Returns whether the item is visible or not.""" | 31,901 |
def ItemHasChildren(self, item): """Returns whether the item has children or not.""" | def ItemHasChildren(self, item): """Returns whether the item has children or not.""" | 31,902 |
def IsExpanded(self, item): """Returns whether the item is expanded or not.""" | def IsExpanded(self, item): """Returns whether the item is expanded or not.""" | 31,903 |
def IsSelected(self, item): """Returns whether the item is selected or not.""" | def IsSelected(self, item): """Returns whether the item is selected or not.""" | 31,904 |
def IsBold(self, item): """Returns whether the item font is bold or not.""" | def IsBold(self, item): """Returns whether the item font is bold or not.""" | 31,905 |
def IsItalic(self, item): """Returns whether the item font is italic or not.""" | def IsItalic(self, item): """Returns whether the item font is italic or not.""" | 31,906 |
def GetItemParent(self, item): """Gets the item parent.""" | def GetItemParent(self, item): """Gets the item parent.""" | 31,907 |
def GetFirstChild(self, item): """Gets the item first child.""" | def GetFirstChild(self, item): """Gets the item first child.""" | 31,908 |
def GetNextChild(self, item, cookie): """ Gets the item next child based on the 'cookie' parameter. This method has no sense if you do not call GetFirstChild() before. """ | def GetNextChild(self, item, cookie): """ Gets the item next child based on the 'cookie' parameter. This method has no sense if you do not call GetFirstChild() before. """ | 31,909 |
def GetLastChild(self, item): """Gets the item last child.""" | def GetLastChild(self, item): """Gets the item last child.""" | 31,910 |
def GetNextSibling(self, item): """Gets the next sibling of an item.""" | def GetNextSibling(self, item): """Gets the next sibling of an item.""" | 31,911 |
def GetPrevSibling(self, item): """Gets the previous sibling of an item.""" | def GetPrevSibling(self, item): """Gets the previous sibling of an item.""" | 31,912 |
def GetNext(self, item): """Gets the next item. Only for internal use right now.""" | def GetNext(self, item): """Gets the next item. Only for internal use right now.""" | 31,913 |
def GetNextVisible(self, item): """Returns the next visible item.""" | def GetNextVisible(self, item): """Returns the next visible item.""" | 31,914 |
def GetPrevVisible(self, item): | def GetPrevVisible(self, item): | 31,915 |
def DoInsertItem(self, parentId, previous, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Actually inserts an item in the tree.""" | def DoInsertItem(self, parentId, previous, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Actually inserts an item in the tree.""" | 31,916 |
def DoInsertItem(self, parentId, previous, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Actually inserts an item in the tree.""" | def DoInsertItem(self, parentId, previous, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Actually inserts an item in the tree.""" | 31,917 |
def DoInsertItem(self, parentId, previous, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Actually inserts an item in the tree.""" | def DoInsertItem(self, parentId, previous, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Actually inserts an item in the tree.""" | 31,918 |
def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist.""" | def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist.""" | 31,919 |
def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist.""" | def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist.""" | 31,920 |
def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist.""" | def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist.""" | 31,921 |
def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist.""" | def AddRoot(self, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Adds a root to the CustomTreeCtrl. Only one root must exist.""" | 31,922 |
def PrependItem(self, parent, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Appends an item as a first child of parent.""" | def PrependItem(self, parent, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Appends an item as a first child of parent.""" | 31,923 |
def PrependItem(self, parent, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Appends an item as a first child of parent.""" | def PrependItem(self, parent, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Appends an item as a first child of parent.""" | 31,924 |
def InsertItemByItem(self, parentId, idPrevious, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" if wnd is not None and not (self._windowStyle & TR_HAS_VARIABLE_ROW_HEIGHT): raise "\nERROR: In Order To Append/Insert Controls You Have To... | def InsertItemByItem(self, parentId, idPrevious, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" if wnd is not None and not (self._windowStyle & TR_HAS_VARIABLE_ROW_HEIGHT): raise "\nERROR: In Order To Append/Insert Controls You Have To... | 31,925 |
def InsertItemByItem(self, parentId, idPrevious, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" if wnd is not None and not (self._windowStyle & TR_HAS_VARIABLE_ROW_HEIGHT): raise "\nERROR: In Order To Append/Insert Controls You Have To... | def InsertItemByItem(self, parentId, idPrevious, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" if wnd is not None and not (self._windowStyle & TR_HAS_VARIABLE_ROW_HEIGHT): raise "\nERROR: In Order To Append/Insert Controls You Have To... | 31,926 |
def InsertItemByItem(self, parentId, idPrevious, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" if wnd is not None and not (self._windowStyle & TR_HAS_VARIABLE_ROW_HEIGHT): raise "\nERROR: In Order To Append/Insert Controls You Have To... | def InsertItemByItem(self, parentId, idPrevious, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" if wnd is not None and not (self._windowStyle & TR_HAS_VARIABLE_ROW_HEIGHT): raise "\nERROR: In Order To Append/Insert Controls You Have To... | 31,927 |
def InsertItemByIndex(self, parentId, before, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" | def InsertItemByIndex(self, parentId, before, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" | 31,928 |
def InsertItemByIndex(self, parentId, before, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" | def InsertItemByIndex(self, parentId, before, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Auxiliary function to cope with the C++ hideous multifunction.""" | 31,929 |
def InsertItem(self, parentId, input, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Inserts an item after the given previous.""" | def InsertItem(self, parentId, input, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Inserts an item after the given previous.""" | 31,930 |
def InsertItem(self, parentId, input, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Inserts an item after the given previous.""" | def InsertItem(self, parentId, input, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Inserts an item after the given previous.""" | 31,931 |
def AppendItem(self, parentId, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Appends an item as a last child of its parent.""" | def AppendItem(self, parentId, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Appends an item as a last child of its parent.""" | 31,932 |
def AppendItem(self, parentId, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Appends an item as a last child of its parent.""" | def AppendItem(self, parentId, text, ct_type=0, wnd=None, image=-1, selImage=-1, data=None): """Appends an item as a last child of its parent.""" | 31,933 |
def DeleteChildren(self, item): """Delete item children.""" | def DeleteChildren(self, item): """Delete item children.""" | 31,934 |
def Delete(self, item): """Delete an item.""" | def Delete(self, item): """Delete an item.""" | 31,935 |
def Expand(self, item): """ Expands an item, sending a EVT_TREE_ITEM_EXPANDING and EVT_TREE_ITEM_EXPANDED events. """ | def Expand(self, item): """ Expands an item, sending a EVT_TREE_ITEM_EXPANDING and EVT_TREE_ITEM_EXPANDED events. """ | 31,936 |
def Expand(self, item): """ Expands an item, sending a EVT_TREE_ITEM_EXPANDING and EVT_TREE_ITEM_EXPANDED events. """ | def Expand(self, item): """ Expands an item, sending a EVT_TREE_ITEM_EXPANDING and EVT_TREE_ITEM_EXPANDED events. """ | 31,937 |
def ExpandAll(self, item): """Expands all the items.""" | def ExpandAll(self, item): """Expands all the items.""" | 31,938 |
def Collapse(self, item): """ Collapse an item, sending a EVT_TREE_ITEM_COLLAPSING and EVT_TREE_ITEM_COLLAPSED events. """ | def Collapse(self, item): """ Collapse an item, sending a EVT_TREE_ITEM_COLLAPSING and EVT_TREE_ITEM_COLLAPSED events. """ | 31,939 |
def Collapse(self, item): """ Collapse an item, sending a EVT_TREE_ITEM_COLLAPSING and EVT_TREE_ITEM_COLLAPSED events. """ | def Collapse(self, item): """ Collapse an item, sending a EVT_TREE_ITEM_COLLAPSING and EVT_TREE_ITEM_COLLAPSED events. """ | 31,940 |
def DoSelectItem(self, item, unselect_others=True, extended_select=False): """Actually selects/unselects an item, sending a EVT_TREE_SEL_CHANGED event.""" | def DoSelectItem(self, item, unselect_others=True, extended_select=False): """Actually selects/unselects an item, sending a EVT_TREE_SEL_CHANGED event.""" | 31,941 |
def SelectItem(self, item, select=True): """Selects/deselects an item.""" | def SelectItem(self, item, select=True): """Selects/deselects an item.""" | 31,942 |
def FillArray(self, item, array=[]): """ Internal function. Used to populate an array of selected items when the style TR_MULTIPLE is used. """ | def FillArray(self, item, array=[]): """ Internal function. Used to populate an array of selected items when the style TR_MULTIPLE is used. """ | 31,943 |
def EnsureVisible(self, item): """Ensure that an item is visible in CustomTreeCtrl.""" | def EnsureVisible(self, item): """Ensure that an item is visible in CustomTreeCtrl.""" | 31,944 |
def SortChildren(self, item): """ Sorts the children of the given item using OnCompareItems method of CustomTreeCtrl. You should override that method to change the sort order (the default is ascending case-sensitive alphabetical order). """ | def SortChildren(self, item): """ Sorts the children of the given item using OnCompareItems method of CustomTreeCtrl. You should override that method to change the sort order (the default is ascending case-sensitive alphabetical order). """ | 31,945 |
def GetBoundingRect(self, item, textOnly=False): """Gets the bounding rectangle of the item.""" | def GetBoundingRect(self, item, textOnly=False): """Gets the bounding rectangle of the item.""" | 31,946 |
def Thaw(self): """Thaw CustomTreeCtrl.""" | def Thaw(self): """Thaw CustomTreeCtrl.""" | 31,947 |
def SetBackgroundColour(self, colour): wxWindow.SetBackgroundColour(self, colour) | def SetBackgroundColour(self, colour): wxWindow.SetBackgroundColour(self, colour) | 31,948 |
def _GetInsertionInfo(self): parent = self.GetParent() sx = parent.GetViewStart()[0] * self.ux sx -= parent._rlSize x = self.GetPosition()[0] w = self.GetSize()[0] sCol = parent.XToCol(x + sx) eCol = parent.XToCol(x + w + sx) iPos = xPos = xCol = 99999 centerPos = x + sx + (w / 2) | def _GetInsertionInfo(self): parent = self.GetParent() sx = parent.GetViewStart()[0] * self.ux sx -= parent.GetRowLabelSize() x = self.GetPosition()[0] w = self.GetSize()[0] sCol = parent.XToCol(x + sx) eCol = parent.XToCol(x + w + sx) iPos = xPos = xCol = 99999 centerPos = x + sx + (w / 2) | 31,949 |
def _GetInsertionInfo(self): parent = self.GetParent() sy = parent.GetViewStart()[1] * self.uy sy -= parent._clSize y = self.GetPosition()[1] h = self.GetSize()[1] sRow = parent.YToRow(y + sy) eRow = parent.YToRow(y + h + sy) iPos = yPos = yRow = 99999 centerPos = y + sy + (h / 2) | def _GetInsertionInfo(self): parent = self.GetParent() sy = parent.GetViewStart()[1] * self.uy sy -= parent.GetColLabelSize() y = self.GetPosition()[1] h = self.GetSize()[1] sRow = parent.YToRow(y + sy) eRow = parent.YToRow(y + h + sy) iPos = yPos = yRow = 99999 centerPos = y + sy + (h / 2) | 31,950 |
def __init__(self,grid): wx.EvtHandler.__init__(self) | def __init__(self,grid): wx.EvtHandler.__init__(self) | 31,951 |
def OnMouseMove(self,evt): if self.isDragging: if abs(self.startX - evt.m_x) >= 3 \ and abs(evt.m_x - self.lastX) >= 3: self.lastX = evt.m_x self.didMove = True sx,y = self.grid.GetViewStart() w,h = self.lwin.GetClientSize() x = sx * self.ux | def OnMouseMove(self,evt): if self.isDragging: if abs(self.startX - evt.m_x) >= 3 \ and abs(evt.m_x - self.lastX) >= 3: self.lastX = evt.m_x self.didMove = True sx,y = self.grid.GetViewStart() w,h = self.lwin.GetClientSize() x = sx * self.ux | 31,952 |
def OnPress(self,evt): self.startX = self.lastX = evt.m_x sx = self.grid.GetViewStart()[0] * self.ux sx -= self.grid._rlSize px,py = self.lwin.ClientToScreenXY(evt.m_x,evt.m_y) px,py = self.grid.ScreenToClientXY(px,py) | def OnPress(self,evt): self.startX = self.lastX = evt.m_x sx = self.grid.GetViewStart()[0] * self.ux sx -= _rlSize px,py = self.lwin.ClientToScreenXY(evt.m_x,evt.m_y) px,py = self.grid.ScreenToClientXY(px,py) | 31,953 |
def OnPress(self,evt): self.startX = self.lastX = evt.m_x sx = self.grid.GetViewStart()[0] * self.ux sx -= self.grid._rlSize px,py = self.lwin.ClientToScreenXY(evt.m_x,evt.m_y) px,py = self.grid.ScreenToClientXY(px,py) | def OnPress(self,evt): self.startX = self.lastX = evt.m_x sx = self.grid.GetViewStart()[0] * self.ux sx -= self.grid._rlSize px,py = self.lwin.ClientToScreenXY(evt.m_x,evt.m_y) px,py = self.grid.ScreenToClientXY(px,py) | 31,954 |
def OnRelease(self,evt): if self.isDragging: self.lwin.ReleaseMouse() self.colWin.Show(False) self.isDragging = False | def OnRelease(self,evt): if self.isDragging: self.lwin.ReleaseMouse() self.colWin.Show(False) self.isDragging = False | 31,955 |
def __init__(self,grid): wx.EvtHandler.__init__(self) | def __init__(self,grid): wx.EvtHandler.__init__(self) | 31,956 |
def OnMouseMove(self,evt): if self.isDragging: if abs(self.startY - evt.m_y) >= 3 \ and abs(evt.m_y - self.lastY) >= 3: self.lastY = evt.m_y self.didMove = True x,sy = self.grid.GetViewStart() w,h = self.lwin.GetClientSizeTuple() y = sy * self.uy | def OnMouseMove(self,evt): if self.isDragging: if abs(self.startY - evt.m_y) >= 3 \ and abs(evt.m_y - self.lastY) >= 3: self.lastY = evt.m_y self.didMove = True x,sy = self.grid.GetViewStart() w,h = self.lwin.GetClientSizeTuple() y = sy * self.uy | 31,957 |
def OnPress(self,evt): self.startY = self.lastY = evt.m_y sy = self.grid.GetViewStart()[1] * self.uy sy -= self.grid._clSize px,py = self.lwin.ClientToScreenXY(evt.m_x,evt.m_y) px,py = self.grid.ScreenToClientXY(px,py) | def OnPress(self,evt): self.startY = self.lastY = evt.m_y sy = self.grid.GetViewStart()[1] * self.uy sy -= _clSize px,py = self.lwin.ClientToScreenXY(evt.m_x,evt.m_y) px,py = self.grid.ScreenToClientXY(px,py) | 31,958 |
def OnPress(self,evt): self.startY = self.lastY = evt.m_y sy = self.grid.GetViewStart()[1] * self.uy sy -= self.grid._clSize px,py = self.lwin.ClientToScreenXY(evt.m_x,evt.m_y) px,py = self.grid.ScreenToClientXY(px,py) | def OnPress(self,evt): self.startY = self.lastY = evt.m_y sy = self.grid.GetViewStart()[1] * self.uy sy -= self.grid._clSize px,py = self.lwin.ClientToScreenXY(evt.m_x,evt.m_y) px,py = self.grid.ScreenToClientXY(px,py) | 31,959 |
def OnRelease(self,evt): if self.isDragging: self.lwin.ReleaseMouse() self.rowWin.Show(False) self.isDragging = False | def OnRelease(self,evt): if self.isDragging: self.lwin.ReleaseMouse() self.rowWin.Show(False) self.isDragging = False | 31,960 |
def SelectDay(self, key): sel_size = 1 # clear large selection if self.sel_key != None: (cfont, bgcolor) = self.__GetColorsForDay(self.sel_key) self.DrawRect(self.sel_key, bgcolor,cfont, sel_size) | defSelectDay(self,key):sel_size=1#clearlargeselectionifself.sel_key!=None:(cfont,bgcolor)=self.__GetColorsForDay(self.sel_key)self.DrawRect(self.sel_key,bgcolor,cfont,sel_size) | 31,961 |
def SelectDay(self, key): sel_size = 1 # clear large selection if self.sel_key != None: (cfont, bgcolor) = self.__GetColorsForDay(self.sel_key) self.DrawRect(self.sel_key, bgcolor,cfont, sel_size) | def SelectDay(self, key): sel_size = 1 # clear large selection if self.sel_key != None: (cfont, bgcolor) = self.__GetColorsForDay(self.sel_key) self.DrawRect(self.sel_key, bgcolor,cfont, sel_size) | 31,962 |
def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | defself.result = None __init__(self,self.result = None parent,self.result = None month=None,self.result = None dayself.result = None =self.result = None None,self.result = None year=None):self.result = None wx.Dialog.__init__(self,self.result = None parent,self.result = None -1,self.result = None "Eventself.... | 31,963 |
def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | 31,964 |
def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | 31,965 |
def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | 31,966 |
def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | def __init__(self, parent, month=None, day = None, year=None): wx.Dialog.__init__(self, parent, -1, "Event Calendar", wx.DefaultPosition, (280, 360)) | 31,967 |
def OnOk(self, event): self.EndModal(wx.ID_OK) | def OnOk(self, evt): self.result = ['None', str(self.calend.day), Month[self.calend.month], str(self.calend.year)] self.EndModal(wx.ID_OK) | 31,968 |
def run_swig(files, dir, gendir, package, USE_SWIG, force, swig_args, swig_deps=[]): from distutils.file_util import copy_file from distutils.dep_util import newer from distutils.spawn import spawn sources = [] for file in files: basefile = os.path.splitext(file)[0] i_file = os.path.join(dir, file) py_file = os.pa... | def run_swig(files, dir, gendir, package, USE_SWIG, force, swig_args, swig_deps=[]): from distutils.file_util import copy_file from distutils.dep_util import newer from distutils.spawn import spawn sources = [] for file in files: basefile = os.path.splitext(file)[0] i_file = os.path.join(dir, file) py_file = os.pa... | 31,969 |
def Refresh(self): if self.doubleBuffered: self.painter.ClearBuffer() wxScrolledWindow.Refresh(self) | def Refresh(self): if self.doubleBuffered: self.painter.ClearBuffer() wxScrolledWindow.Refresh(self) | 31,970 |
def CreateOutputWindow(self, st): self.frame = wx.Frame(self.parent, -1, self.title, style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) self.text = wxTextCtrl(self.frame, -1, "", style = wx.TE_MULTILINE | wx.TE_READONLY) self.frame.SetSize((450, 300)) self.frame.Show(True) EVT_CLOSE(self.frame, self.OnCloseW... | def CreateOutputWindow(self, st): self.frame = wx.Frame(self.parent, -1, self.title, style=wx.DEFAULT_FRAME_STYLE | wx.NO_FULL_REPAINT_ON_RESIZE) self.text = wx.TextCtrl(self.frame, -1, "", style = wx.TE_MULTILINE | wx.TE_READONLY) self.frame.SetSize((450, 300)) self.frame.Show(True) EVT_CLOSE(self.frame, self.OnClose... | 31,971 |
def OnInit(self): self.frame = wxFrame(None, -1, "Widget Tester", pos=(0,0), size=self.size) self.SetTopWindow(self.frame) return True | def OnInit(self): self.frame = wx.Frame(None, -1, "Widget Tester", pos=(0,0), size=self.size) self.SetTopWindow(self.frame) return True | 31,972 |
def __str__(self): return str(self.asTuple()) | def __str__(self): return str(self.asTuple()) | 31,973 |
def __str__(self): return str(self.asTuple()) | def __str__(self): return str(self.asTuple()) | 31,974 |
def __str__(self): return str(self.asTuple()) | def __str__(self): return str(self.asTuple()) | 31,975 |
def __str__(self): return str(self.asTuple()) | def __str__(self): return str(self.asTuple()) | 31,976 |
def __del__(self,oglshapesc=oglshapesc): if self.thisown == 1 : oglshapesc.delete_wxOGLConstraint(self) | def __del__(self,oglshapesc=oglshapesc): if self.thisown == 1 : oglshapesc.delete_wxOGLConstraint(self) | 31,977 |
def runTest(frame, nb, log): dlg = wxSingleChoiceDialog(frame, 'Test Single Choice', 'The Caption', ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'], wxOK|wxCANCEL) if dlg.ShowModal() == wxID_OK: log.WriteText('You selected: %s\n' % dlg.GetStringSelection()) dlg.Destroy() | def runTest(frame, nb, log): dlg = wxSingleChoiceDialog(frame, 'Test Single Choice', 'The Caption', ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight'], wxDEFAULT_DIALOG_STYLE|wxOK|wxCANCEL) if dlg.ShowModal() == wxID_OK: log.WriteText('You selected: %s\n' % dlg.GetStringSelection()) dlg.Destroy() | 31,978 |
def OnLeftEvent(self, event): self.click = 'LEFT' self.shiftkey = event.ShiftDown() self.ctrlkey = event.ControlDown() self.ProcessClick(event) | def OnLeftEvent(self, event): self.click = 'LEFT' self.ProcessClick(event) | 31,979 |
def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) | def __init__(self, parent, log): self.log = log wx.Panel.__init__(self, parent, -1) | 31,980 |
def __init__(self, parent, id=-1, size=wx.DefaultSize): | def __init__(self, parent, id=-1, size=wx.DefaultSize): | 31,981 |
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,982 |
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,983 |
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,984 |
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,985 |
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,986 |
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,987 |
def display(self, calltip): """Receiver for Shell.calltip signal.""" self.SetValue(calltip) | def display(self, calltip): """Receiver for Shell.calltip signal.""" self.SetValue(calltip) | 31,988 |
def __init__(self, canvas = None): ShapeEvtHandler.__init__(self) self._eventHandler = self self.SetShape(self) self._id = 0 self._formatted = False self._canvas = canvas self._xpos = 0.0 self._ypos = 0.0 self._pen = wx.Pen(wx.BLACK, 1, wx.SOLID) self._brush = wx.WHITE_BRUSH self._font = wx.Font(10, wx.SWISS, wx.NORMA... | def __init__(self, canvas = None): ShapeEvtHandler.__init__(self) self._eventHandler = self self.SetShape(self) self._id = 0 self._formatted = False self._canvas = canvas self._xpos = 0.0 self._ypos = 0.0 self._pen = BlackForegroundPen self._brush = wx.WHITE_BRUSH self._font = wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMA... | 31,989 |
def __init__(self, canvas = None): ShapeEvtHandler.__init__(self) self._eventHandler = self self.SetShape(self) self._id = 0 self._formatted = False self._canvas = canvas self._xpos = 0.0 self._ypos = 0.0 self._pen = wx.Pen(wx.BLACK, 1, wx.SOLID) self._brush = wx.WHITE_BRUSH self._font = wx.Font(10, wx.SWISS, wx.NORMA... | def __init__(self, canvas = None): ShapeEvtHandler.__init__(self) self._eventHandler = self self.SetShape(self) self._id = 0 self._formatted = False self._canvas = canvas self._xpos = 0.0 self._ypos = 0.0 self._pen = wx.Pen(wx.BLACK, 1, wx.SOLID) self._brush = wx.WHITE_BRUSH self._font = NormalFont self._textColour = ... | 31,990 |
def __init__(self, canvas = None): ShapeEvtHandler.__init__(self) self._eventHandler = self self.SetShape(self) self._id = 0 self._formatted = False self._canvas = canvas self._xpos = 0.0 self._ypos = 0.0 self._pen = wx.Pen(wx.BLACK, 1, wx.SOLID) self._brush = wx.WHITE_BRUSH self._font = wx.Font(10, wx.SWISS, wx.NORMA... | def __init__(self, canvas = None): ShapeEvtHandler.__init__(self) self._eventHandler = self self.SetShape(self) self._id = 0 self._formatted = False self._canvas = canvas self._xpos = 0.0 self._ypos = 0.0 self._pen = wx.Pen(wx.BLACK, 1, wx.SOLID) self._brush = wx.WHITE_BRUSH self._font = wx.Font(10, wx.SWISS, wx.NORMA... | 31,991 |
def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path) | def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path) | 31,992 |
def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path) | def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path) | 31,993 |
def resizeLastColumn(self, minWidth): """ Resize the last column appropriately. | def resizeLastColumn(self, minWidth): """ Resize the last column appropriately. | 31,994 |
def OnOvrSize(evt, ovr=self.ovr): ovr.SetSize(evt.GetSize()) | def OnOvrSize(evt, ovr=self.ovr): ovr.SetSize(evt.GetSize()) | 31,995 |
def OnChildFocus(self, evt): # If the child window that gets the focus is not visible, # this handler will try to scroll enough to see it. evt.Skip() child = evt.GetWindow() | def OnChildFocus(self, evt): # If the child window that gets the focus is not visible, # this handler will try to scroll enough to see it. evt.Skip() child = evt.GetWindow() | 31,996 |
def OnChildFocus(self, evt): # If the child window that gets the focus is not visible, # this handler will try to scroll enough to see it. evt.Skip() child = evt.GetWindow() | def OnChildFocus(self, evt): # If the child window that gets the focus is not visible, # this handler will try to scroll enough to see it. evt.Skip() child = evt.GetWindow() | 31,997 |
def IsAcceptedKey(self, evt): """ Return True to allow the given key to start editing: the base class version only checks that the event has no modifiers. F2 is special and will always start the editor. """ self.log.write("MyCellEditor: IsAcceptedKey: %d\n" % (evt.GetKeyCode())) | def IsAcceptedKey(self, evt): """ Return True to allow the given key to start editing: the base class version only checks that the event has no modifiers. F2 is special and will always start the editor. """ self.log.write("MyCellEditor: IsAcceptedKey: %d\n" % (evt.GetKeyCode())) | 31,998 |
def createDialog( self, parent, id, pos, size, style ): """Setup the graphic representation of the dialog""" wx.Panel.__init__ (self, parent, id, pos, size, style) self.SetMinSize(size) # play nice with sizers | def createDialog( self, parent, id, pos, size, style ): """Setup the graphic representation of the dialog""" wx.Panel.__init__ (self, parent, id, pos, size, style) self.SetMinSize(size) # play nice with sizers | 31,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.