bugged stringlengths 4 228k | fixed stringlengths 0 96.3M | __index_level_0__ int64 0 481k |
|---|---|---|
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,900 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,901 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,902 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,903 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,904 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,905 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,906 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,907 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,908 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,909 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,910 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,911 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,912 |
def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | def _init_ctrls(self, prnt): # generated method, don't edit wxDialog.__init__(self, id=wxID_FINDREPLACEDLG, name='FindReplaceDlg', parent=prnt, pos=wxPoint(399, 399), size=wxSize(372, 300), style=wxDEFAULT_DIALOG_STYLE, title='Find/Replace') self._init_utils() self.SetAutoLayout(true) self.SetClientSize(wxSize(364, 273... | 28,913 |
def __init__(self, clipboard, config, parent, bookmarks): ExplorerNodes.CategoryNode.__init__(self, 'Filesystem', ('explorer', 'file'), clipboard, config, parent) self.bookmarks = bookmarks | def __init__(self, clipboard, config, parent, bookmarks): ExplorerNodes.CategoryNode.__init__(self, 'Filesystem', ('explorer', 'file'), clipboard, config, parent) self.bookmarks = bookmarks | 28,914 |
def setupFlexSizer(self): self.boxSizer1.Remove(0) self.flex =wx.FlexGridSizer(cols=self.numCols, hgap=0, rows=self.numRows, vgap=0) self.boxSizer1.Insert(0, self.flex, 1, border=0, flag=wx.GROW | wx.ALL) | def setupFlexSizer(self): self.boxSizer1.Remove(0) self.flex =wx.FlexGridSizer(cols=self.numCols, hgap=0, rows=self.numRows, vgap=0) self.boxSizer1.Insert(0, self.flex, 1, border=0, flag=wx.GROW | wx.ALL) | 28,915 |
def setupFlexSizer(self): self.boxSizer1.Remove(0) self.flex =wx.FlexGridSizer(cols=self.numCols, hgap=0, rows=self.numRows, vgap=0) self.boxSizer1.Insert(0, self.flex, 1, border=0, flag=wx.GROW | wx.ALL) | def setupFlexSizer(self): self.boxSizer1.Remove(0) self.flex =wx.FlexGridSizer(cols=self.numCols, hgap=0, rows=self.numRows, vgap=0) self.boxSizer1.Insert(0, self.flex, 1, border=0, flag=wx.GROW | wx.ALL) | 28,916 |
def setupFlexSizer(self): self.boxSizer1.Remove(0) self.flex =wx.FlexGridSizer(cols=self.numCols, hgap=0, rows=self.numRows, vgap=0) self.boxSizer1.Insert(0, self.flex, 1, border=0, flag=wx.GROW | wx.ALL) | def setupFlexSizer(self): self.boxSizer1.Remove(0) self.flex =wx.FlexGridSizer(cols=self.numCols, hgap=0, rows=self.numRows, vgap=0) self.boxSizer1.Insert(0, self.flex, 1, border=0, flag=wx.GROW | wx.ALL) | 28,917 |
def refreshCtrl(self): if self.destroying: return | def refreshCtrl(self): if self.destroying: return | 28,918 |
def OnCloseWindow(self, event): self.destroying = true if self.selection: self.selection.destroy() self.selection = None elif self.multiSelection: for sel in self.multiSelection: sel.destroy() self.multiSelection = None | def OnCloseWindow(self, event): self.destroying = true if self.selection: self.selection.destroy() self.selection = None elif self.multiSelection: for sel in self.multiSelection: sel.destroy() self.multiSelection = None | 28,919 |
def OnControlDelete(self, event): print 'OnControlDelete' ctrls = [] if self.selection: ctrls = [self.selection.name] elif self.multiSelection: ctrls = map(lambda sel: sel.name, self.multiSelection) #map(self.deleteCtrl, ctrls) for ctrlName in ctrls: self.deleteCtrl(ctrlName) | def OnControlDelete(self, event): ctrls = [] if self.selection: ctrls = [self.selection.name] elif self.multiSelection: ctrls = map(lambda sel: sel.name, self.multiSelection) #map(self.deleteCtrl, ctrls) for ctrlName in ctrls: self.deleteCtrl(ctrlName) | 28,920 |
def run(self, cmd, Parser = ErrorStack.StdErrErrorParser, caption='Execute module', root='Error', autoClose = false): import ProcessProgressDlg dlg = ProcessProgressDlg.ProcessProgressDlg(None, cmd, caption, autoClose) try: dlg.ShowModal() serr = ErrorStack.buildErrorList(dlg.errors, Parser) if len(serr): return self.c... | def run(self, cmd, Parser=ErrorStack.StdErrErrorParser, caption='Execute module', root='Error', autoClose=false): import ProcessProgressDlg dlg = ProcessProgressDlg.ProcessProgressDlg(None, cmd, caption, autoClose) try: dlg.ShowModal() serr = ErrorStack.buildErrorList(dlg.errors, Parser) if len(serr): return self.check... | 28,921 |
def run(self, cmd, Parser = ErrorStack.StdErrErrorParser, caption='Execute module', root='Error', autoClose = false): import ProcessProgressDlg dlg = ProcessProgressDlg.ProcessProgressDlg(None, cmd, caption, autoClose) try: dlg.ShowModal() serr = ErrorStack.buildErrorList(dlg.errors, Parser) if len(serr): return self.c... | def run(self, cmd, Parser = ErrorStack.StdErrErrorParser, caption='Execute module', root='Error', autoClose = false): import ProcessProgressDlg dlg = ProcessProgressDlg.ProcessProgressDlg(None, cmd, caption, autoClose=autoClose) try: dlg.ShowModal() serr = ErrorStack.buildErrorList(dlg.errors, Parser) if len(serr): ret... | 28,922 |
def evtName(self): return '%s%s%d' % (self.name, self.propName, self.index) | def evtName(self): return '%s%s%d' % (self.name, self.propName, self.index) | 28,923 |
def __init__(self, wId): BaseHTMLStyledTextCtrlMix.__init__(self, wId) | def __init__(self, wId): BaseHTMLStyledTextCtrlMix.__init__(self, wId) | 28,924 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,925 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,926 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,927 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,928 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,929 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,930 |
def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | def __init__(self, parent, model): a1 = (('-', None, '', ()), ('Comment', self.OnComment, '-', keyDefs['Comment']), ('Uncomment', self.OnUnComment, '-', keyDefs['Uncomment']), ('Indent', self.OnIndent, '-', keyDefs['Indent']), ('Dedent', self.OnDedent, '-', keyDefs['Dedent']), ('-', None, '-', ()), ('Run to cursor', se... | 28,931 |
def processComment(self, textLst): return map(lambda l: '##%s'%l, textLst) | def processComment(self, textLst, idntBlock): return map(lambda l: '##%s'%l, textLst) | 28,932 |
def processUncomment(self, textLst): for idx in range(len(textLst)): if len(textLst[idx]) >= 2 and textLst[idx][:2] == '##': textLst[idx] = textLst[idx][2:] return textLst | def processUncomment(self, textLst, idntBlock): for idx in range(len(textLst)): if len(textLst[idx]) >= 2 and textLst[idx][:2] == '##': textLst[idx] = textLst[idx][2:] return textLst | 28,933 |
def processIndent(self, textLst): return map(lambda l: '%s%s'%(indentLevel*' ', l), textLst) | def processIndent(self, textLst): return map(lambda l: '%s%s'%(indentLevel*' ', l), textLst) | 28,934 |
def processDedent(self, textLst): for idx in range(len(textLst)): if len(textLst[idx]) >= indentLevel and \ textLst[idx][:indentLevel] == indentLevel*' ': textLst[idx] = textLst[idx][indentLevel:] return textLst | def processDedent(self, textLst): for idx in range(len(textLst)): if len(textLst[idx]) >= indentLevel and \ textLst[idx][:indentLevel] == idntBlock: textLst[idx] = textLst[idx][indentLevel:] return textLst | 28,935 |
def getTipValue(self, word, lnNo): """ Overwritten Mixin method, returns string to display as tool tip """ module = self.model.getModule() objPth = string.split(word, '.') safesplit = methodparse.safesplitfields | def getTipValue(self, word, lnNo): """ Overwritten Mixin method, returns string to display as tool tip """ module = self.model.getModule() objPth = string.split(word, '.') safesplit = methodparse.safesplitfields | 28,936 |
def getCodeNamespace(self, module, block): names = [] names.extend(module.imports.keys()) names.extend(module.class_order) names.extend(module.function_order) names.extend(module.global_order) names.extend(__builtins__.keys()) if block: names.extend(block.localnames()) | def getCodeNamespace(self, module, block): names = [] names.extend(module.imports.keys()) names.extend(module.class_order) names.extend(module.function_order) names.extend(module.global_order) names.extend(__builtins__.keys()) if block: names.extend(block.localnames()) | 28,937 |
def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module | 28,938 |
def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module | 28,939 |
def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module | def BrowseClick(self, word, line, lineNo, start, style): """ Overridden from BrowseStyledTextCtrlMix, jumps to declaration or opens module | 28,940 |
def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) debugger = self.model.editor.debugger if Preferences.useDebugger == 'new': start, length = BrowseStyledTextCtrlMix.underlineWord( self, start, length) debugger = self.model.editor.debugger if debugger: wor... | def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) debugger = self.model.editor.debugger if Preferences.useDebugger == 'new': start, length = BrowseStyledTextCtrlMix.underlineWord( self, start, length) debugger = self.model.editor.debugger if debugger: wor... | 28,941 |
def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) debugger = self.model.editor.debugger if Preferences.useDebugger == 'new': start, length = BrowseStyledTextCtrlMix.underlineWord( self, start, length) debugger = self.model.editor.debugger if debugger: wor... | def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) debugger = self.model.editor.debugger if Preferences.useDebugger == 'new': start, length = BrowseStyledTextCtrlMix.underlineWord( self, start, length) debugger = self.model.editor.debugger if debugger: wor... | 28,942 |
def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) debugger = self.model.editor.debugger if Preferences.useDebugger == 'new': start, length = BrowseStyledTextCtrlMix.underlineWord( self, start, length) debugger = self.model.editor.debugger if debugger: wor... | def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) debugger = self.model.editor.debugger if Preferences.useDebugger == 'new': start, length = BrowseStyledTextCtrlMix.underlineWord( self, start, length) debugger = self.model.editor.debugger if debugger: wor... | 28,943 |
def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) debugger = self.model.editor.debugger if Preferences.useDebugger == 'new': start, length = BrowseStyledTextCtrlMix.underlineWord( self, start, length) debugger = self.model.editor.debugger if debugger: wor... | def underlineWord(self, start, length): start, length = BrowseStyledTextCtrlMix.underlineWord(self, start, length) debugger = self.model.editor.debugger if Preferences.useDebugger == 'new': start, length = BrowseStyledTextCtrlMix.underlineWord( self, start, length) debugger = self.model.editor.debugger if debugger: wor... | 28,944 |
def deleteBreakPoint(self, lineNo): if Preferences.useDebugger == 'new': self.breaks.deleteBreakpoints(lineNo) debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. filename = self.model.filename #string.lower(self.model.filename) debugger.deleteBreakpoints(filename, lineNo) self.Ma... | def deleteBreakPoint(self, lineNo): if Preferences.useDebugger == 'new': self.breaks.deleteBreakpoints(lineNo) debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. filename = self.model.assertLocalFile() #string.lower(self.model.filename) debugger.deleteBreakpoints(filename, lineNo... | 28,945 |
def deleteBreakPoint(self, lineNo): if Preferences.useDebugger == 'new': self.breaks.deleteBreakpoints(lineNo) debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. filename = self.model.filename #string.lower(self.model.filename) debugger.deleteBreakpoints(filename, lineNo) self.Ma... | def deleteBreakPoint(self, lineNo): if Preferences.useDebugger == 'new': self.breaks.deleteBreakpoints(lineNo) debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. filename = self.model.filename #string.lower(self.model.filename) debugger.deleteBreakpoints(filename, lineNo) self.Ma... | 28,946 |
def addBreakPoint(self, lineNo, temp=0, notify_debugger=1): if Preferences.useDebugger == 'new': self.breaks.addBreakpoint(lineNo, temp) if notify_debugger: debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. filename = self.model.filename debugger.setBreakpoint(filename, lineNo, ... | def addBreakPoint(self, lineNo, temp=0, notify_debugger=1): if Preferences.useDebugger == 'new': self.breaks.addBreakpoint(lineNo, temp) if notify_debugger: debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. debugger.setBreakpoint(filename, lineNo, temp) if temp: mrk = tmpBrkPtM... | 28,947 |
def addBreakPoint(self, lineNo, temp=0, notify_debugger=1): if Preferences.useDebugger == 'new': self.breaks.addBreakpoint(lineNo, temp) if notify_debugger: debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. filename = self.model.filename debugger.setBreakpoint(filename, lineNo, ... | def addBreakPoint(self, lineNo, temp=0, notify_debugger=1): if Preferences.useDebugger == 'new': self.breaks.addBreakpoint(lineNo, temp) if notify_debugger: debugger = self.model.editor.debugger if debugger: # Try to apply to the running debugger. filename = self.model.filename debugger.setBreakpoint(filename, lineNo, ... | 28,948 |
def checkChangesAndSyntax(self, lineNo = None): """ Called before moving away from a line """ if not Preferences.checkSyntax: return if lineNo is None: lineNo = self.GetCurrentLine() if not Preferences.onlyCheckIfLineModified or \ lineNo == self.damagedLine: slb, sle = ( self.GetStyleAt(self.PositionFromLine(lineNo)), ... | def checkChangesAndSyntax(self, lineNo=None): """ Called before moving away from a line """ if not Preferences.checkSyntax: return if lineNo is None: lineNo = self.GetCurrentLine() if not Preferences.onlyCheckIfLineModified or \ lineNo == self.damagedLine: slb, sle = ( self.GetStyleAt(self.PositionFromLine(lineNo)), se... | 28,949 |
def checkSyntax(self, prevlines, lineNo, getPrevLine, compprefix = '', indent = '', contLinesOffset = 0, lineStartStyle = 0, lineEndStyle = 0): # XXX Should also check syntax before saving. # XXX Multiline without brackets not caught # XXX Should check indent errors (multilines make this tricky) | def checkSyntax(self, prevlines, lineNo, getPrevLine, compprefix='', indent='', contLinesOffset=0, lineStartStyle=0, lineEndStyle=0): # XXX Should also check syntax before saving. # XXX Multiline without brackets not caught # XXX Should check indent errors (multilines make this tricky) | 28,950 |
def OnMarginClick(self, event): if event.GetMargin() == 1: lineClicked = self.LineFromPosition(event.GetPosition()) + 1 if Preferences.useDebugger == 'old': if self.breaks.has_key(lineClicked): self.deleteBreakPoint(lineClicked) else: self.addBreakPoint(lineClicked) elif Preferences.useDebugger == 'new': if self.breaks... | def OnMarginClick(self, event): if event.GetMargin() == symbolMrg: lineClicked = self.LineFromPosition(event.GetPosition()) + 1 if Preferences.useDebugger == 'old': if self.breaks.has_key(lineClicked): self.deleteBreakPoint(lineClicked) else: self.addBreakPoint(lineClicked) elif Preferences.useDebugger == 'new': if sel... | 28,951 |
def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | 28,952 |
def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | def OnKeyDown(self, event): if self.CallTipActive(): self.callTipCheck() | 28,953 |
def OnFixPaste(self, event): self.Undo() self.AddText(event.newtext) | defdef OnTranslate(self, event): import TranslateDlg dlg = TranslateDlg.create(None, self.GetSelectedText()) try: if dlg.ShowModal() == wxOK and len(dlg.translated) > 1: self.ReplaceSelection(dlg.translated[1]) finally: dlg.Destroy() OnFixPaste(self,def OnTranslate(self, event): import TranslateDlg dlg = TranslateDlg.c... | 28,954 |
def openParent(self, editor): tree = editor.explorer.tree svnParentItemParent = tree.GetItemParent(tree.GetItemParent(tree.GetSelection())) | def openParent(self, editor): tree = editor.explorer.tree svnParentItemParent = tree.GetItemParent(tree.GetItemParent(tree.GetSelection())) | 28,955 |
def writeDependencies(self, output, ctrlName, depLinks, definedCtrls, stripFrmId=''): """ Write out dependent properties if all the ctrls they reference have been created. """ if depLinks.has_key(ctrlName): for prop, otherRefs in depLinks[ctrlName]: for oRf in otherRefs: if oRf not in definedCtrls: break else: output.a... | def writeDependencies(self, output, ctrlName, depLinks, definedCtrls, stripFrmId=''): """ Write out dependent properties if all the ctrls they reference have been created. """ if depLinks.has_key(ctrlName): for prop, otherRefs in depLinks[ctrlName]: for oRf in otherRefs: if oRf not in definedCtrls: if not hasattr(self... | 28,956 |
def __init__(self, name, designer, parent, ctrlClass): raise 'Not Implemented' | def __init__(self, name, designer, parent, ctrlClass): raise 'Not Implemented' | 28,957 |
def getDisplayProp(self): return eval(self.textConstrLst[self.index].params[self.displayProp], self.designer.model.specialAttrs) | def getDisplayProp(self): return eval(self.textConstrLst[self.index].params[self.displayProp], self.designer.model.specialAttrs) | 28,958 |
def wxProxyPanel(parent, Win, *args, **kwargs): """ Function which put's a panel in between two controls. Mainly for better repainting under GTK. Based on a pattern by Kevin Gill. """ panel = wxPanel(parent, -1, style=wxTAB_TRAVERSAL | wxCLIP_CHILDREN) if type(Win) is types.ClassType or type(Win) is types.TypeType: w... | def wxProxyPanel(parent, Win, *args, **kwargs): """ Function which put's a panel in between two controls. Mainly for better repainting under GTK. Based on a pattern by Kevin Gill. """ panel = wxPanel(parent, -1, style=wxTAB_TRAVERSAL | wxCLIP_CHILDREN) if type(Win) is types.ClassType or type(Win) is types.TypeType: w... | 28,959 |
def SetDescription(self, desc, maxticks = None): self.Update( newmsg = desc ) | def SetDescription(self, desc, maxticks = None): self.Update( newmsg = desc ) | 28,960 |
def safesplitfields(params, delim): """ Returns a list of parameters split on delim but not if delim are within containers (), {}, [], '', "" Also skip '', "" content """ locparams = params list = [] i = 0 nestlevel = 0 singlequotelevel = 0 doublequotelevel = 0 if not params: return [''] while i < len(locparams): c... | def safesplitfields(params, delim, returnBlanks = 0, containBegin=containBegin, containEnd=containEnd): """ Returns a list of parameters split on delim but not if delim are within containers (), {}, [], '', "" Also skip '', "" content """ locparams = params list = [] i = 0 nestlevel = 0 singlequotelevel = 0 doublequo... | 28,961 |
def safesplitfields(params, delim): """ Returns a list of parameters split on delim but not if delim are within containers (), {}, [], '', "" Also skip '', "" content """ locparams = params list = [] i = 0 nestlevel = 0 singlequotelevel = 0 doublequotelevel = 0 if not params: return [''] while i < len(locparams): c... | def safesplitfields(params, delim): """ Returns a list of parameters split on delim but not if delim are within containers (), {}, [], '', "" Also skip '', "" content """ locparams = params list = [] i = 0 nestlevel = 0 singlequotelevel = 0 doublequotelevel = 0 if returnBlanks and not string.strip(params): return [p... | 28,962 |
def parseMixedBody(parseClasses, lines): """ Return a dictionary with keys representing classes that 'understood' the line and values a list of found instances of the found class """ cat = {} for parseClass in parseClasses: cat[parseClass] = [] for line in lines: ln = string.strip(line) if (ln == 'pass') or (ln == '')... | def parseMixedBody(parseClasses, lines): """ Return a dictionary with keys representing classes that 'understood' the line and values a list of found instances of the found class """ cat = {} for parseClass in parseClasses: cat[parseClass] = [] for line in lines: ln = string.strip(line) if (ln == 'pass') or (ln == '')... | 28,963 |
def KVParamsAsText(self, params): kvlist = [] for key in params.keys(): kvlist.append(key+' = '+params[key]) return string.join(kvlist, ', ') | def KVParamsAsText(self, params): kvlist = [] sortedkeys = params.keys() sortedkeys.sort() for key in sortedkeys: kvlist.append(key+param_splitter+params[key]) return string.join(kvlist, ', ') | 28,964 |
def push(self, line): | def push(self, line): | 28,965 |
def showtraceback(self): | def showtraceback(self): | 28,966 |
def showTip(frame, forceShow=0): """ Displays tip of the day. Driven from and updates config file """ try: conf = createAndReadConfig('Explorer') except IOError: conf = None showTip, index = (1, 0) else: showTip = conf.getint('tips', 'showonstartup') index = conf.getint('tips', 'tipindex') if showTip or forceShow: tp... | def showTip(frame, forceShow=0): """ Displays tip of the day. Driven from and updates config file """ try: conf = createAndReadConfig('Explorer') except IOError: conf = None showTip, index = (1, 0) else: showTip = conf.getboolean('tips', 'showonstartup') index = conf.getint('tips', 'tipindex') if showTip or forceShow... | 28,967 |
def showTip(frame, forceShow=0): """ Displays tip of the day. Driven from and updates config file """ try: conf = createAndReadConfig('Explorer') except IOError: conf = None showTip, index = (1, 0) else: showTip = conf.getint('tips', 'showonstartup') index = conf.getint('tips', 'tipindex') if showTip or forceShow: tp... | def showTip(frame, forceShow=0): """ Displays tip of the day. Driven from and updates config file """ try: conf = createAndReadConfig('Explorer') except IOError: conf = None showTip, index = (1, 0) else: showTip = conf.getint('tips', 'showonstartup') index = conf.getint('tips', 'tipindex') if showTip or forceShow: tp... | 28,968 |
def wxProxyPanel(parent, Win, *args, **kwargs): """ Function which put's a panel in between two controls. Mainly for better repainting under GTK. Based on a pattern by Kevin Gill. """ panel = wx.Panel(parent, -1, style=wx.TAB_TRAVERSAL | wx.CLIP_CHILDREN) if type(Win) is types.ClassType or type(Win) is types.TypeType... | def wxProxyPanel(parent, Win, *args, **kwargs): """ Function which put's a panel in between two controls. Mainly for better repainting under GTK. Based on a pattern by Kevin Gill. """ panel = wx.Panel(parent, -1, style=wx.TAB_TRAVERSAL | wx.CLIP_CHILDREN) if type(Win) is types.ClassType or type(Win) is types.TypeType... | 28,969 |
def get_current_frame(): try: raise 'get_exc_info' except: return sys.exc_info()[2].tb_frame.f_back | def get_current_frame(): try: Exception, 'get_exc_info' except: return sys.exc_info()[2].tb_frame.f_back | 28,970 |
def stringToControl(s): try: wx.USE_UNICODE, UnicodeError except (AttributeError, NameError): return s if wx.USE_UNICODE: try: return unicode(s) except UnicodeError, err: try: spec = coding_spec(s) return s.decode(spec) except UnicodeError, err: raise Exception, 'Unable to decode unicode string, please change '\ 'the ... | def stringToControl(s, safe=False): try: wx.USE_UNICODE, UnicodeError except (AttributeError, NameError): return s if wx.USE_UNICODE: try: return unicode(s) except UnicodeError, err: try: spec = coding_spec(s) return s.decode(spec) except UnicodeError, err: raise Exception, 'Unable to decode unicode string, please cha... | 28,971 |
def stringToControl(s): try: wx.USE_UNICODE, UnicodeError except (AttributeError, NameError): return s if wx.USE_UNICODE: try: return unicode(s) except UnicodeError, err: try: spec = coding_spec(s) return s.decode(spec) except UnicodeError, err: raise Exception, 'Unable to decode unicode string, please change '\ 'the ... | def stringToControl(s): try: wx.USE_UNICODE, UnicodeError except (AttributeError, NameError): return s if wx.USE_UNICODE: try: if safe: return s.decode(sys.getdefaultencoding(), 'ignore') else: return unicode(s) except UnicodeError, err: try: spec = coding_spec(s) return s.decode(spec) except UnicodeError, err: raise ... | 28,972 |
def run(self, args = '', execStart=None, execFinish=None): """ Excecute the current saved image of the application. """ if self.savedAs: filename = self.assertLocalFile() | def run(self, args = '', execStart=None, execFinish=None): """ Excecute the current saved image of the application. """ if self.savedAs: filename = self.assertLocalFile() | 28,973 |
def writeGlobalDict(self, name, dct): start, end = self.findGlobalDict(name) self.data = self.data[:start]+pprint.pformat(dct)+self.data[end:] | def writeGlobalDict(self, name, dct): start, end = self.findGlobalDict(name) self.data = self.data[:start]+pprint.pformat(dct)+self.data[end:] | 28,974 |
def get_current_frame(): try: 1 + '' # raise an exception except: return sys.exc_info()[2].tb_frame | def get_current_frame(): try: 1 + '' # raise an exception except: return sys.exc_info()[2].tb_frame | 28,975 |
def get_current_frame(): try: 1 + '' # raise an exception except: return sys.exc_info()[2].tb_frame | def get_current_frame(): try: 1 + '' # raise an exception except: return sys.exc_info()[2].tb_frame | 28,976 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 28,977 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 28,978 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 28,979 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 28,980 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 28,981 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 28,982 |
def OnInit(self): wxInitAllImageHandlers() | def OnInit(self): wxInitAllImageHandlers() | 28,983 |
def main(): app = BoaApp(0) app.quit = false while not app.quit: app.MainLoop() | def main(): try: app = BoaApp(0) except Exception, error: wxMessageBox(str(error), 'Error on startup') raise app.quit = false while not app.quit: app.MainLoop() | 28,984 |
def main(): app = BoaApp(0) app.quit = false while not app.quit: app.MainLoop() | def main(): app = BoaApp(0) app.quit = false while not app.quit: app.MainLoop() | 28,985 |
def ver_tot(ma, mi, re): return ma*200+mi*20+re | def ver_tot(ma, mi, re): return ma*200+mi*20+re | 28,986 |
def _init_coll_notebook1_Pages(self, parent): # generated method, don't edit | def _init_coll_notebook1_Pages(self, parent): # generated method, don't edit | 28,987 |
def OnDebuggerStopped(self, event): """Called when a debugger process stops.""" show_dialog = 0 if self.running: show_dialog = 1 self.killDebugger() if self._closing: # Close the window. self.destroy() self.Destroy() elif show_dialog: wxMessageBox('The debugger process stopped prematurely.', 'Debugger stopped', wxOK | ... | def OnDebuggerStopped(self, event): """Called when a debugger process stops.""" show_dialog = 0 if self.running: show_dialog = 1 self.killDebugger() if self._closing: # Close the window. self.destroy() self.Destroy() elif show_dialog: wxMessageBox('The debugger process stopped prematurely.', 'Debugger stopped', wxOK | ... | 28,988 |
def OnDebuggerOk(self, event): if self._destroyed: return | def OnDebuggerOk(self, event): if self._destroyed: return | 28,989 |
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | 28,990 |
def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | def __init__(self, editor, filename=None, slave_mode=1): wxFrame.__init__(self, editor, -1, 'Debugger', style=wxDEFAULT_FRAME_STYLE|wxCLIP_CHILDREN|Preferences.childFrameStyle) | 28,991 |
def receiveVarValue(self, val): if val: self.editor.statusBar.setHint(val) | def receiveVarValue(self, val): if val: self.editor.statusBar.setHint(val) | 28,992 |
def cleanup(self): del self.images | def cleanup(self): del self.images | 28,993 |
def load(self, name): name = path.normpath(name) if self.useCache: if not self.images.has_key(name): self.images[name] = self.createImage(path.join(self.rootpath, name), path.splitext(name)[1]) #print '%s:%s'%(self.images[name].this, name) return self.images[name] else: return self.createImage(path.join(self.rootpath, ... | defload(self,name):name=path.normpath(name)ifself.useCache:ifnotself.images.has_key(name):self.images[name]=self.createImage(path.join(self.rootpath,name),path.splitext(name)[1])#print'%s:%s'%(self.images[name].this,name)returnself.images[name]else:returnself.createImage(path.join(self.rootpath,name),path.splitext(name... | 28,994 |
def addArchive(self, defaultArchive): import zipfile, tempfile zf = zipfile.ZipFile(path.join(self.rootpath, defaultArchive)) self.archives[defaultArchive] = map(lambda fl: fl.filename, zf.filelist) | def addArchive(self, defaultArchive): import zipfile zf = zipfile.ZipFile(path.join(self.rootpath, defaultArchive)) self.archives[defaultArchive] = map(lambda fl: fl.filename, zf.filelist) | 28,995 |
def addArchive(self, defaultArchive): import zipfile, tempfile zf = zipfile.ZipFile(path.join(self.rootpath, defaultArchive)) self.archives[defaultArchive] = map(lambda fl: fl.filename, zf.filelist) | def addArchive(self, defaultArchive): import zipfile, tempfile zf = zipfile.ZipFile(path.join(self.rootpath, defaultArchive)) self.archives[defaultArchive] = map(lambda fl: fl.filename, zf.filelist) | 28,996 |
def setPage(self): self.html.SetPage(about_html % (Utils.toPyPath('Images/Shared/Boa.jpg'), __version__.version, progress_text % (self.progressId, self.gaugePId), '')) | defsetPage(self):self.html.SetPage(about_html%(Utils.toPyPath('Images/Shared/Boa.jpg'),__version__.version,progress_text%(self.progressId,self.gaugePId),'')) | 28,997 |
def OnUpdateProgress(self, event): self._live = event.tpe == 'importing' and self._live if self.gauge: cnt = event.cnt if event.tpe == 'opening': cnt = cnt * self.fileOpeningFactor + self.moduleTotal self.gauge.SetValue(cnt) | def OnUpdateProgress(self, event): self._live = event.tpe == 'importing' and self._live if self.gauge: cnt = event.cnt if event.tpe == 'opening': cnt = cnt * self.fileOpeningFactor + self.moduleTotal self.gauge.SetValue(cnt) | 28,998 |
def copyToFS(self, fsFolderNode): fn = os.path.join(fsFolderNode.resourcepath, self.name) | def copyToFS(self, fsFolderNode): fn = os.path.join(fsFolderNode.resourcepath, self.name) | 28,999 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.