rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
dc.DrawLine(root, neck) | dc.DrawLine(root[0], root[1], neck[0], neck[1]) | def OnDrawBranchesAttachment(self, dc, attachment, erase = False): count = self.GetAttachmentLineCount(attachment) if count == 0: return | 303aff5ed8e0f79dc4e22b7c506a60ca4f7d5225 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/303aff5ed8e0f79dc4e22b7c506a60ca4f7d5225/_basic.py |
dc.DrawLine(shoulder1, shoulder2) | dc.DrawLine(shoulder1[0], shoulder1[1], shoulder2[0], shoulder2[1]) | def OnDrawBranchesAttachment(self, dc, attachment, erase = False): count = self.GetAttachmentLineCount(attachment) if count == 0: return | 303aff5ed8e0f79dc4e22b7c506a60ca4f7d5225 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/303aff5ed8e0f79dc4e22b7c506a60ca4f7d5225/_basic.py |
dc.DrawLine(stemPt, pt) | dc.DrawLine(stemPt[0], stemPt[1], pt[0], pt[1]) | def OnDrawBranchesAttachment(self, dc, attachment, erase = False): count = self.GetAttachmentLineCount(attachment) if count == 0: return | 303aff5ed8e0f79dc4e22b7c506a60ca4f7d5225 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/303aff5ed8e0f79dc4e22b7c506a60ca4f7d5225/_basic.py |
self.nodeStack = [self.AddRoot("Root")] | self._root = self.AddRoot("Root") self.nodeStack = [self._root] | def __init__(self, parent, ID): wx.TreeCtrl.__init__(self, parent, ID) self.nodeStack = [self.AddRoot("Root")] | d531898b100dd9eb62ac37e1f10e0537d5747c18 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/d531898b100dd9eb62ac37e1f10e0537d5747c18/XMLtreeview.py |
p.SetSizer(self.sizer) | def __init__(self, parent, title, sizerFunc): wx.Frame.__init__(self, parent, -1, title) | f30589a9ea2a3883c2294dc3dbdcd7fc227b5445 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/f30589a9ea2a3883c2294dc3dbdcd7fc227b5445/Sizers.py | |
dc.SetTextForeground(self.GetForegroundColour()) else: dc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT)) | dc.SetTextForeground(self.GetForegroundColour()) else: dc.SetTextForeground(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT)) | 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 | 7a0a389e1910d16d39b638a2257d19fca5ec1f15 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/7a0a389e1910d16d39b638a2257d19fca5ec1f15/stattext.py |
self.GetSelections(self)[:1] | return self.selection | def GetSelection(self): self.GetSelections(self)[:1] | a24d7726e6b5c1b727d97603a3b5e80fa27a9dd2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/a24d7726e6b5c1b727d97603a3b5e80fa27a9dd2/tree.py |
'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x0e\x08\x06\ \x00\x00\x00&/\x9c\x8a\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\x00\ \x00\x80IDATx\x9c\xad\x921\n\xc0 \x0cEcqp\xccA;x\x1c\x8f\xe31<\x82C\x87\x8c\ \x19\x84v\xb2X \xba\xfe "\xe0\xc4`\xb4\x115\x83\x88\xef[\xd5\x19\xc4+B\x08AL\xf2\xde\x8... | '\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\x10\x00\x00\x00\x10\x08\x06\ \x00\x00\x00\x1f\xf3\xffa\x00\x00\x00\x04sBIT\x08\x08\x08\x08|\x08d\x88\x00\ \x00\x000IDATx\x9ccddbf\xa0\x040Q\xa4{p\x1a\xf0\xff\xdf\xdf\xff\xc4\xd00\xc0\ H\xf5@D\xb7\x81\x90\xfc\xa8\x0bh\xe9\x82\x81K\x07t7\x00\x00\x1cB?\xcf\xcf\ \x93qi\x00\x... | def getToolSpacerData(): return \ | 714457aedae9de3cd27fcff9a1cd1bec76a3ea01 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/714457aedae9de3cd27fcff9a1cd1bec76a3ea01/images.py |
if debug: raise | def CreateTestWin(self, item): testWin = g.testWin # Create a window with this resource xxx = self.GetPyData(item).treeObject() | e98e70622703a1d12e47ad74d1264c421597a667 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e98e70622703a1d12e47ad74d1264c421597a667/tree.py | |
if self._pRightClickMenu: where, tabIdx = self.HitTest(event.GetPosition()) if where in [FNB_TAB, FNB_TAB_X]: if self._pagesInfoVec[tabIdx].GetEnabled(): self.SetSelection(tabIdx) if self._pRightClickMenu: self.PopupMenu(self._pRightClickMenu) else: event = FlatNotebookEvent(wxEVT_FLATNOTEBOOK_PAGE_CONTEXT_MEN... | where, tabIdx = self.HitTest(event.GetPosition()) if where in [FNB_TAB, FNB_TAB_X]: if self._pagesInfoVec[tabIdx].GetEnabled(): self.FireEvent(tabIdx) event = FlatNotebookEvent(wxEVT_FLATNOTEBOOK_PAGE_CONTEXT_MENU, self.GetParent().GetId()) event.SetSelection(tabIdx) event.SetOldSelection(self._iActivePage) event... | def OnRightDown(self, event): """ Handles the wx.EVT_RIGHT_DOWN events for L{PageContainer}. """ | 6231770f8935b3a2c5e27a32b9103287076d9191 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6231770f8935b3a2c5e27a32b9103287076d9191/flatnotebook.py |
if page == len(self._pagesInfoVec) - 1: if not self.CanFitToScreen(page): | if not self.CanFitToScreen(page): if self._nFrom > page: | def DoSetSelection(self, page): """ Does the actual selection of a page. """ | 6231770f8935b3a2c5e27a32b9103287076d9191 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6231770f8935b3a2c5e27a32b9103287076d9191/flatnotebook.py |
else: if not self.CanFitToScreen(page): self._nFrom = page | else: while self._nFrom < page: self._nFrom += 1 if self.CanFitToScreen(page): break | def DoSetSelection(self, page): """ Does the actual selection of a page. """ | 6231770f8935b3a2c5e27a32b9103287076d9191 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6231770f8935b3a2c5e27a32b9103287076d9191/flatnotebook.py |
if not self.HasFlag(FNB_VC8): rect = self.GetClientRect(); clientWidth = rect.width; tabHeight = render.CalcTabHeight(self) tabWidth = render.CalcTabWidth(self, page, tabHeight) posx = self._pParent._nPadding if self._nFrom >= 0: for i in xrange(self._nFrom, len(self._pagesInfoVec)): if self._pagesInfoVec[i].GetPos... | vTabInfo = render.NumberTabsCanFit(self) if page - self._nFrom >= len(vTabInfo): return False return True | def CanFitToScreen(self, page): """ Returns wheter a tab can fit in the left space in the screen or not. """ | 6231770f8935b3a2c5e27a32b9103287076d9191 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6231770f8935b3a2c5e27a32b9103287076d9191/flatnotebook.py |
def __init__(self, data=None, parent = None, kids = [], x = 0, y = 0): | def __init__(self, data=None, parent = None, kids = None, x = 0, y = 0): | def __init__(self, data=None, parent = None, kids = [], x = 0, y = 0): self.x = 0 self.y = 0 self.projx = 0 self.projy = 0 self.parent = parent self.kids = kids self.data = data self.expanded = false self.selected = false self.built = false self.scale = 0 | 3e60899273993070615df55ff895cc39346754b9 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/3e60899273993070615df55ff895cc39346754b9/mvctree.py |
lines.append('\t$(BAKEFILE) -f%s -o$@ %s' % (format, bake)) | lines.append('\t$(BAKEFILE) -f%s -o$@ %s %s' % (format, a, bake)) | def add(bake, makedirs, make, dep, format, args={}): a = '' if 'all' in args: a += ' %s' % args['all'] if format in args: a += ' %s' % args[format] if format != 'autoconf' and 'not_autoconf' in args: a += ' %s' % args['not_autoconf'] if format in makedirs: makedir = makedirs[format] else: makedir = makedirs['all'] tfil... | 5646c3f82d3f1b1ed8c2635f1ee86f81f715f896 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/5646c3f82d3f1b1ed8c2635f1ee86f81f715f896/regenMakefile.py |
H = (float(y3 - y2) / (x2 - x2)) | H = (float(y3 - y2) / (x3 - x2)) | def DrawArcToEllipse(x1, y1, width1, height1, x2, y2, x3, y3): a1 = width1 / 2.0 b1 = height1 / 2.0 # Check that x2 != x3 if abs(x2 - x3) < 0.05: x4 = x2 if y3 > y2: y4 = y1 - math.sqrt((b1 * b1 - (((x2 - x1) * (x2 - x1)) * (b1 * b1) / (a1 * a1)))) else: y4 = y1 + math.sqrt((b1 * b1 - (((x2 - x1) * (x2 - x1)) * (b1 * ... | ae5aafdc71da118d56fcd9f2d9252e94acb8d05c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ae5aafdc71da118d56fcd9f2d9252e94acb8d05c/_oglmisc.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_BEGIN_DRAG, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_DRAG, func) | def EVT_TREE_BEGIN_DRAG(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_BEGIN_DRAG, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_BEGIN_RDRAG, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_RDRAG, func) | def EVT_TREE_BEGIN_RDRAG(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_BEGIN_RDRAG, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, func) | def EVT_TREE_BEGIN_LABEL_EDIT(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_END_LABEL_EDIT, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_END_LABEL_EDIT, func) | def EVT_TREE_END_LABEL_EDIT(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_END_LABEL_EDIT, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_GET_INFO, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_GET_INFO, func) | def EVT_TREE_GET_INFO(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_GET_INFO, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_SET_INFO, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_SET_INFO, func) | def EVT_TREE_SET_INFO(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_SET_INFO, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_EXPANDED, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDED, func) | def EVT_TREE_ITEM_EXPANDED(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_EXPANDED, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_EXPANDING, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_EXPANDING, func) | def EVT_TREE_ITEM_EXPANDING(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_EXPANDING, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func) | def EVT_TREE_ITEM_COLLAPSED(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_COLLAPSED, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_COLLAPSING, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_ITEM_COLLAPSING, func) | def EVT_TREE_ITEM_COLLAPSING(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_ITEM_COLLAPSING, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_SEL_CHANGED, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGED, func) | def EVT_TREE_SEL_CHANGED(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_SEL_CHANGED, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_SEL_CHANGING, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_SEL_CHANGING, func) | def EVT_TREE_SEL_CHANGING(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_SEL_CHANGING, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_KEY_DOWN, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_KEY_DOWN, func) | def EVT_TREE_KEY_DOWN(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_KEY_DOWN, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
win.Connect(id, -1. wxEVT_COMMAND_TREE_DELETE_ITEM, func) | win.Connect(id, -1, wxEVT_COMMAND_TREE_DELETE_ITEM, func) | def EVT_TREE_DELETE_ITEM(win, id, func): win.Connect(id, -1. wxEVT_COMMAND_TREE_DELETE_ITEM, func) | 4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4d1d77e8f6fd8cfd530f5e180cbff70a1ac737e0/_extras.py |
""" A mixin class that handles enables any text in any column of a | """ A mixin class that enables any text in any column of a | def OnLCSMDoPopup(self, event): self.PopupMenu(event.menu, event.pos) self.afterPopupMenu(event.menu) | 6d3c4b2aee2a64ba3245f2cec9751e4608a9bc3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6d3c4b2aee2a64ba3245f2cec9751e4608a9bc3c/listctrl.py |
class TestListCtrl(wx.ListCtrl, TextEdit): | class TestListCtrl(wx.ListCtrl, TextEditMixin): | def OnLCSMDoPopup(self, event): self.PopupMenu(event.menu, event.pos) self.afterPopupMenu(event.menu) | 6d3c4b2aee2a64ba3245f2cec9751e4608a9bc3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6d3c4b2aee2a64ba3245f2cec9751e4608a9bc3c/listctrl.py |
TextEdit.__init__(self) | TextEditMixin.__init__(self) | def __init__(self, parent, ID, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0): wx.ListCtrl.__init__(self, parent, ID, pos, size, style) TextEdit.__init__(self) | 6d3c4b2aee2a64ba3245f2cec9751e4608a9bc3c /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6d3c4b2aee2a64ba3245f2cec9751e4608a9bc3c/listctrl.py |
self.floatframe.SetSize(wxSize(barsize[0], barsize[1] + self.titleheight)) self.floatframe.SetClientSize(wxSize(barsize[0], barsize[1])) | self.floatframe.SetClientSize(wxSize(50,200)) | def Float(self, bool): "Floats or docks the toolbar programmatically." if bool: self.parentframe = wxPyTypeCast(self.GetParent(), 'wxFrame') clientsize = self.parentframe.GetClientSizeTuple() self.floatframe = wxMiniFrame(self.parentframe, -1, self.title, wxDefaultPosition, wxDefaultSize, wxTHICK_FRAME) self.Reparent(s... | 3017f78d673acd86b210bd8d3747d45bb46d5fcd /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/3017f78d673acd86b210bd8d3747d45bb46d5fcd/floatbar.py |
if wx.Platform == "__WXMAC__": dlg = wx.MessageDialog( frame, 'The ContextHelp sample does not currently work well on this platform.', 'Sorry', wx.OK | wx.ICON_INFORMATION ) dlg.ShowModal() dlg.Destroy() else: win = TestPanel(nb, log) return win | win = TestPanel(nb, log) return win | def runTest(frame, nb, log): if wx.Platform == "__WXMAC__": dlg = wx.MessageDialog( frame, 'The ContextHelp sample does not currently work well on this platform.', 'Sorry', wx.OK | wx.ICON_INFORMATION ) dlg.ShowModal() dlg.Destroy() else: win = TestPanel(nb, log) return win | 56ca5a419bf1fab33a0e9f11477e138377205e8b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/56ca5a419bf1fab33a0e9f11477e138377205e8b/ContextHelp.py |
if value not in [True,False]: raise TypeError, "Value should be True or False" | if value not in [True,False,'Horizontal','Vertical']: raise TypeError, "Value should be True, False, Horizontal or Vertical" | def SetEnableGrid(self, value): """Set True to enable grid.""" if value not in [True,False]: raise TypeError, "Value should be True or False" self._gridEnabled= value self.Redraw() | 2b9590d611ee348b941906117a78da68f3fddce2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2b9590d611ee348b941906117a78da68f3fddce2/plot.py |
yTickLength= width/2.0 +1 xTickLength= height/2.0 +1 | if self._gridEnabled == 'Horizontal': yTickLength= width/2.0 +1 xTickLength= 3 * self.printerScale elif self._gridEnabled == 'Vertical': yTickLength= 3 * self.printerScale xTickLength= height/2.0 +1 else: yTickLength= width/2.0 +1 xTickLength= height/2.0 +1 | def _drawAxes(self, dc, p1, p2, scale, shift, xticks, yticks): penWidth= self.printerScale # increases thickness for printing only dc.SetPen(wx.Pen(wx.NamedColour('BLACK'), penWidth)) # set length of tick marks--long ones make grid if self._gridEnabled: x,y,width,height= self._point2ClientCoord(p1,p2) yTickLen... | 2b9590d611ee348b941906117a78da68f3fddce2 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2b9590d611ee348b941906117a78da68f3fddce2/plot.py |
self.files = filelist | self.files = filelist | def __init__(self, parent, dir, mask): filelist = [] dirlist = [".."] self.dir = dir self.file = "" mask = mask.upper() pattern = self.MakeRegex(mask) | 04c4117bb7965a970b3ce6ec52b30db6e5350bb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/04c4117bb7965a970b3ce6ec52b30db6e5350bb0/imagebrowser.py |
def FindNodeObject(self, item): testWin = g.testWin # If top-level, return testWin (or panel its panel) if item == testWin.item: return testWin.panel itemParent = self.GetItemParent(item) xxx = self.GetPyData(item).treeObject() parentWin = self.FindNodeObject(itemParent) # Top-level sizer? return window's sizer if xxx.... | c00266964a70799a8e2637cff37a896004bd66b3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/c00266964a70799a8e2637cff37a896004bd66b3/tree.py | ||
btnSizer.Add((50,-1), proportion=2, flag=wx.EXPAND) | btnSizer.Add((50,-1), proportion=2, flag=wx.EXPAND) | def __init__(self, parent, log): wx.Panel.__init__(self, parent, -1) self.pdf = None | 70a4ef826ff45fbf06106ae3b6c3a1263eabfe73 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/70a4ef826ff45fbf06106ae3b6c3a1263eabfe73/ActiveX_FlashWindow.py |
return val def GetMaxLineWidth(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlContainerCell_GetMaxLineWidth,(self,) + _args, _kwargs) | def SetMinHeight(self, *_args, **_kwargs): val = apply(htmlc.wxHtmlContainerCell_SetMinHeight,(self,) + _args, _kwargs) return val | ef489f6a73a9afd25274897424177e06ce1971d3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ef489f6a73a9afd25274897424177e06ce1971d3/html.py | |
for item in _treeList: | for item in _treeList[:-1]: | def EmptyHandler(evt): pass | 0d8a01fdaa5dc8427a3801d08ce10b19518ed0e3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/0d8a01fdaa5dc8427a3801d08ce10b19518ed0e3/Main.py |
i_subdir = opj("include", "wx", "wxPython", "i_files") | i_subdir = opj("include", getExtraPath(), "wx", "wxPython", "i_files") | def getExtraPath(shortVer=True, addOpts=False): """Get the dirname that wxPython will be installed under.""" if shortVer: # short version, just Major.Minor ep = "wx-%d.%d" % (VER_MAJOR, VER_MINOR) # plus release if minor is odd if VER_MINOR % 2 == 1: ep += ".%d" % VER_RELEASE else: # long version, full version ep = ... | bbc916e23cee339de95a14f63c6b17f68802d0ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/bbc916e23cee339de95a14f63c6b17f68802d0ba/config.py |
import pprint | import pprint, shutil | def getExtraPath(shortVer=True, addOpts=False): """Get the dirname that wxPython will be installed under.""" if shortVer: # short version, just Major.Minor ep = "wx-%d.%d" % (VER_MAJOR, VER_MINOR) # plus release if minor is odd if VER_MINOR % 2 == 1: ep += ".%d" % VER_RELEASE else: # long version, full version ep = ... | bbc916e23cee339de95a14f63c6b17f68802d0ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/bbc916e23cee339de95a14f63c6b17f68802d0ba/config.py |
os.rename(temp, dest) | shutil.copyfile(temp, dest) | def run(self, destdir, modname, xmlfile, wxPythonDir="wxPython"): | bbc916e23cee339de95a14f63c6b17f68802d0ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/bbc916e23cee339de95a14f63c6b17f68802d0ba/config.py |
os.rename(temp, dest) | shutil.copyfile(temp, dest) | def run(self, destdir, modname, xmlfile, wxPythonDir="wxPython"): | bbc916e23cee339de95a14f63c6b17f68802d0ba /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/bbc916e23cee339de95a14f63c6b17f68802d0ba/config.py |
os.path.basename(bake.replace('/','\\')).replace('.bkl','.dsw'), | (bake[1+bake.rfind('/'):]).replace('.bkl','.dsw'), | def add(bake, makedirs, make, dep, format, args={}): global linesCur a = '' if 'all' in args: a += ' %s' % args['all'] if format in args: a += ' %s' % args[format] if format != 'autoconf' and 'not_autoconf' in args: a += ' %s' % args['not_autoconf'] if format in makedirs: makedir = makedirs[format] else: makedir = make... | 1bfeafbe2bdc24e20d3564bd90df662c04d83552 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1bfeafbe2bdc24e20d3564bd90df662c04d83552/regenMakefile.py |
def GetPositionFromLine(line): | def GetPositionFromLine(self, line): | def GetPositionFromLine(line): return self.XYToPosition(0,line) | b6176ab7222945e5a5e113c60b7280d3214c106e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b6176ab7222945e5a5e113c60b7280d3214c106e/Main.py |
pos = self.editor.GetPositionFromLine(line) self.editor.SetInsertionPoint(pos) self.editor.ShowPosition(pos) | pos = self.GetPositionFromLine(line) self.SetInsertionPoint(pos) self.ShowPosition(pos) | def GotoLine(self, line): pos = self.editor.GetPositionFromLine(line) self.editor.SetInsertionPoint(pos) self.editor.ShowPosition(pos) | b6176ab7222945e5a5e113c60b7280d3214c106e /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b6176ab7222945e5a5e113c60b7280d3214c106e/Main.py |
self.BrowserSettings = '\progra~1\Netscape\Communicator\Program\netscape.exe %s' | self.BrowserSettings = '\\progra~1\\Netscape\\Communicator\\Program\\netscape.exe %s' | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, id, title, wxPyDefaultPosition, wxSize(650, 250)) | 3a2629c0a2f77be2b486ca8def5c87c4c692b76d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/3a2629c0a2f77be2b486ca8def5c87c4c692b76d/wxSlash.py |
filename = os.path.join("SPAM", ft.GetExtensions()[0]) | ext = ft.GetExtensions()[0] if ext[0] == ".": ext = ext[1:] filename = "SPAM" + "." + ext | def Update(self, ft): #icon = ft.GetIcon() info = ft.GetIconInfo() if info is None: bmp = MyBitmapsFunc(0) ##print bmp.Ok(), bmp.GetWidth(), bmp.GetHeight() self.GetIconBmp().SetBitmap(bmp) self.GetIconFileTxt().SetValue("") self.GetIconIndexTxt().SetValue("") else: icon, file, idx = info #bmp = wxBitmapFromIcon(icon) ... | 4c3b4ed07f8d33e70baa4e66ca43dd0ab834578b /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/4c3b4ed07f8d33e70baa4e66ca43dd0ab834578b/wxMimeTypesManager.py |
listmix.ListCtrlAutoWidthMixin.__init__(self, 0, 3) | listmix.ListCtrlAutoWidthMixin.__init__(self) | def __init__(self, parent, ID, pos=wx.DefaultPosition, size=wx.DefaultSize, style=0): wx.ListCtrl.__init__(self, parent, ID, pos, size, style) | 0bee2fce884c75e37b2cadc076362f07c5f5779d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/0bee2fce884c75e37b2cadc076362f07c5f5779d/ListCtrl_edit.py |
splitted = l.strip().split() if splitted[0] != ' if len(splitted) < 3: continue name = splitted[1] value = splitted[2] | splitline = l.strip().split() if splitline[0] != ' if len(splitline) < 3: continue name = splitline[1] value = splitline[2] | def getVersion(): """Returns wxWidgets version as a tuple: (major,minor,release).""" global wxVersion if wxVersion == None: f = open(VERSION_FILE, 'rt') lines = f.readlines() f.close() major = minor = release = None for l in lines: if not l.startswith('#define'): continue splitted = l.strip().split() if splitted[0] != ... | 3103e8a97e834e9793f0eb149aa82a99fd64ef9a /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/3103e8a97e834e9793f0eb149aa82a99fd64ef9a/wxwin.py |
self.ShowTip(frame) self.Destroy() def ShowTip(self, frame): try: showTipText = open(opj("data/showTips")).read() showTip, index = eval(showTipText) except IOError: showTip, index = (1, 0) if showTip: tp = wxCreateFileTipProvider(opj("data/tips.txt"), index) showTip = wxShowTip(frame, tp) index = tp.GetCurrentTip() op... | evt.Skip() | def OnClose(self, evt): frame = wxPythonDemo(None, -1, "wxPython: (A Demonstration)") frame.Show(true) self.ShowTip(frame) self.Destroy() | ccf691a4ead55449f6093acaa4c21c166b06d3a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ccf691a4ead55449f6093acaa4c21c166b06d3a4/Main.py |
wxYield() | def OnInit(self): """ Create and show the splash screen. It will then create and show the main frame when it is time to do so. """ wxInitAllImageHandlers() splash = MySplashScreen() splash.Show() wxYield() return true | ccf691a4ead55449f6093acaa4c21c166b06d3a4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ccf691a4ead55449f6093acaa4c21c166b06d3a4/Main.py | |
''' | """ | def debug(msg): if DEBUG: print msg | 1a65218cc902962ad3f968c357396238dd73d7a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1a65218cc902962ad3f968c357396238dd73d7a3/vtk.py |
''' | """ | def debug(msg): if DEBUG: print msg | 1a65218cc902962ad3f968c357396238dd73d7a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1a65218cc902962ad3f968c357396238dd73d7a3/vtk.py |
""" | ''' | def PickActor(self,x,y): if self._CurrentRenderer: renderer = self._CurrentRenderer picker = self._Picker | 1a65218cc902962ad3f968c357396238dd73d7a3 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/1a65218cc902962ad3f968c357396238dd73d7a3/vtk.py |
if et == wx.EVT_COMMAND_FIND_REPLACE or et == wx.EVT_COMMAND_FIND_REPLACE_ALL: | if et in [wx.wxEVT_COMMAND_FIND_REPLACE, wx.wxEVT_COMMAND_FIND_REPLACE_ALL]: | def OnFind(self, evt): map = { wx.wxEVT_COMMAND_FIND : "FIND", wx.wxEVT_COMMAND_FIND_NEXT : "FIND_NEXT", wx.wxEVT_COMMAND_FIND_REPLACE : "REPLACE", wx.wxEVT_COMMAND_FIND_REPLACE_ALL : "REPLACE_ALL", } | edc88f7c03660c5f7c86019d1e7c11fdb582661d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/edc88f7c03660c5f7c86019d1e7c11fdb582661d/FindReplaceDialog.py |
self.WriteText('window handle: %s\n' % self.GetHandle()) | self.WriteText('window handle: %s\n' % self.GetHandle()) | def __init__(self, parent, id, title): wxFrame.__init__(self, parent, -1, title, size = (725, 550)) | 33a43c5e1ec71c840ea76f3609523bb0966641b0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/33a43c5e1ec71c840ea76f3609523bb0966641b0/Main.py |
rootObject=shellWin.interp.locals | rootObject=shellWin.interp.locals, rootIsNamespace=1 | def runTest(frame, nb, log): win = wxSplitterWindow(nb, -1, size=(640, 480)) shellWin = shell.Shell(win, -1, introText=intro) fillingWin = filling.Filling(win, -1, size=(640, 480), rootObject=shellWin.interp.locals ) win.SplitHorizontally(shellWin, fillingWin) return win | 0a1d59000c2162ccfa72c4c90ffb9669aba690b4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/0a1d59000c2162ccfa72c4c90ffb9669aba690b4/PyCrustWithFilling.py |
#ifdef __WXMSW__ | 63986ba653aa30be8bde24c21feabb8fc6067d03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/63986ba653aa30be8bde24c21feabb8fc6067d03/genlang.py | ||
%s | #ifdef __WXMSW__ | 63986ba653aa30be8bde24c21feabb8fc6067d03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/63986ba653aa30be8bde24c21feabb8fc6067d03/genlang.py | |
"""); for i in table: ican = '"%s"' % i[1] if ican == '"-"': ican = '""' ilang = i[2] if ilang == '-': ilang = '0' isublang = i[3] if isublang == '-': isublang = '0' f.write(' LNG(%-38s %-7s, %-15s, %-34s, %s)\n' % \ ((i[0]+','), ican, ilang, isublang, i[4])) | #ifdef __WXMSW__ | 63986ba653aa30be8bde24c21feabb8fc6067d03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/63986ba653aa30be8bde24c21feabb8fc6067d03/genlang.py | |
f.write("""}; | %s }; | #ifdef __WXMSW__ | 63986ba653aa30be8bde24c21feabb8fc6067d03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/63986ba653aa30be8bde24c21feabb8fc6067d03/genlang.py |
""") | """ % (ifdefs, lngtable)) | #undef LNG | 63986ba653aa30be8bde24c21feabb8fc6067d03 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/63986ba653aa30be8bde24c21feabb8fc6067d03/genlang.py |
print 'wxpTagHandler' | def __init__(self): print 'wxpTagHandler' wxHtmlWinTagHandler.__init__(self) self.ctx = None | 6a62357c175351b8e046cb5f0636a59b7c9baffb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6a62357c175351b8e046cb5f0636a59b7c9baffb/wxpTag.py | |
print 'wxpTagHandler.GetSupportedTags' | def GetSupportedTags(self): print 'wxpTagHandler.GetSupportedTags' return WXPTAG+','+PARAMTAG | 6a62357c175351b8e046cb5f0636a59b7c9baffb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6a62357c175351b8e046cb5f0636a59b7c9baffb/wxpTag.py | |
print 'wxpTagHandler.HandleTag' | def HandleTag(self, tag): print 'wxpTagHandler.HandleTag' name = tag.GetName() if name == WXPTAG: return self.HandleWxpTag(tag) elif name == PARAMTAG: return self.HandleParamTag(tag) else: raise ValueError, 'unknown tag: ' + name | 6a62357c175351b8e046cb5f0636a59b7c9baffb /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6a62357c175351b8e046cb5f0636a59b7c9baffb/wxpTag.py | |
self._setCallbackInfo(self, wxFontEnumerator) | self._setCallbackInfo(self, wxFontEnumerator, 0) | def __init__(self,*_args,**_kwargs): self.this = apply(misc2c.new_wxFontEnumerator,_args,_kwargs) self.thisown = 1 self._setCallbackInfo(self, wxFontEnumerator) | 8af26133d9906216890eecf33fd47186d9e5b76d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/8af26133d9906216890eecf33fd47186d9e5b76d/misc2.py |
self.grid_color = 'BLACK' self.back_color = 'WHITE' self.sel_color = 'RED' self.high_color = 'LIGHT BLUE' self.border_color = 'BLACK' self.week_color = 'LIGHT GREY' self.week_font_color = 'BLACK' self.day_font_color = 'BLACK' | self.colors = DefaultColors() | def DefParms(self): self.num_auto = True # auto scale of the cal number day size self.num_size = 12 # default size of calendar if no auto size self.max_num_size = 12 # maximum size for calendar number | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def SetWeekColor(self, font_color, week_color): self.week_font_color = font_color self.week_color = week_color | def SetWeekColor(self, font_color, week_color): self.colors[COLOR_HEADER_FONT] = MakeColor(font_color) self.colors[COLOR_HEADER_BACKGROUND] = MakeColor(week_color) self.colors[COLOR_3D_LIGHT] = MakeColor(week_color) self.colors[COLOR_3D_DARK] = MakeColor(week_color) | def SetWeekColor(self, font_color, week_color): # set font and background color for week title self.week_font_color = font_color self.week_color = week_color | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.set_y_mrg = 15 self.set_x_mrg = 10 self.set_y_end = 10 | self.set_y_mrg = 1 self.set_x_mrg = 1 self.set_y_end = 1 | def InitValues(self): # default dimensions of various elements of the calendar self.rg = {} self.cal_sel = {} self.set_cy_st = 0 # start position self.set_cx_st = 0 | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.set_x_st = xmarg self.set_y_st = ymarg | self.set_x_mrg = xmarg self.set_y_mrg = ymarg | def SetMarg(self, xmarg, ymarg): self.set_x_st = xmarg self.set_y_st = ymarg self.set_y_end = ymarg | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC = DC | def DrawCal(self, DC, sel_lst=[]): self.DC = DC self.InitScale() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | |
self.DrawBorder() | self.DrawBorder(DC) | def DrawCal(self, DC, sel_lst=[]): self.DC = DC self.InitScale() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DrawMonth() | self.DrawMonth(DC) | def DrawCal(self, DC, sel_lst=[]): self.DC = DC self.InitScale() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DrawGrid() | self.DrawGrid(DC) | def DrawCal(self, DC, sel_lst=[]): self.DC = DC self.InitScale() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def DrawCal(self, DC, sel_lst=[]): self.DC = DC self.InitScale() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | ||
self.DrawSel() self.DrawWeek() self.DrawNum() | self.DrawSel(DC) self.DrawWeek(DC) self.DrawNum(DC) | def DrawCal(self, DC, sel_lst=[]): self.DC = DC self.InitScale() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
cfont = self.sel_color | cfont = self.colors[COLOR_SELECTION_FONT] | def AddSelect(self, list, cfont=None, cbackgrd = None): if cfont is None: cfont = self.sel_color # font digit color | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
cbackgrd = self.high_color | cbackgrd = self.colors[COLOR_SELECTION_BACKGROUND] | def AddSelect(self, list, cfont=None, cbackgrd = None): if cfont is None: cfont = self.sel_color # font digit color | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def DrawBorder(self): brush = wx.Brush(wx.NamedColour(self.back_color), wx.SOLID) self.DC.SetBrush(brush) self.DC.SetPen(wx.Pen(wx.NamedColour(self.border_color), 1)) | def DrawBorder(self, DC): brush = wx.Brush(MakeColor(self.colors[COLOR_BACKGROUND]), wx.SOLID) DC.SetBrush(brush) DC.SetPen(wx.Pen(MakeColor(self.colors[COLOR_BORDER]), 1)) | def DrawBorder(self): brush = wx.Brush(wx.NamedColour(self.back_color), wx.SOLID) self.DC.SetBrush(brush) self.DC.SetPen(wx.Pen(wx.NamedColour(self.border_color), 1)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.DrawRectangleRect(rect) | DC.DrawRectangleRect(rect) | def DrawBorder(self): brush = wx.Brush(wx.NamedColour(self.back_color), wx.SOLID) self.DC.SetBrush(brush) self.DC.SetPen(wx.Pen(wx.NamedColour(self.border_color), 1)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def DrawNumVal(self): self.DrawNum() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | ||
self.cal = [] | self.cal_days = [] | def SetCal(self, year, month): self.InitValues() # reset initial values | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.cal.append('') | self.cal_days.append('') | def SetCal(self, year, month): self.InitValues() # reset initial values | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.cal.append(str(i)) | self.cal_days.append(str(i)) | def SetCal(self, year, month): self.InitValues() # reset initial values | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def SetWeekEnd(self, font_color='BLACK', backgrd = 'LIGHT GREY'): | def SetWeekEnd(self, font_color=None, backgrd = None): if font_color != None: self.SetColor(COLOR_WEEKEND_FONT, MakeColor(font_color)) if backgrd != None: self.SetColor(COLOR_WEEKEND_BACKGROUND, MakeColor(backgrd)) | def SetWeekEnd(self, font_color='BLACK', backgrd = 'LIGHT GREY'): date = 6 - int(self.dow) # start day of first saturday | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.cal_sel[date] = (font_color, backgrd) | self.cal_sel[date] = (self.GetColor(COLOR_WEEKEND_FONT), self.GetColor(COLOR_WEEKEND_BACKGROUND)) | def SetWeekEnd(self, font_color='BLACK', backgrd = 'LIGHT GREY'): date = 6 - int(self.dow) # start day of first saturday | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.cal_sel[date] = (font_color, backgrd) | self.cal_sel[date] = (self.GetColor(COLOR_WEEKEND_FONT), self.GetColor(COLOR_WEEKEND_BACKGROUND)) | def SetWeekEnd(self, font_color='BLACK', backgrd = 'LIGHT GREY'): date = 6 - int(self.dow) # start day of first saturday | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
rect = wx.Rect(x, y, self.dl_w, self.dl_h) | w = self.cellW h = self.cellH if x == self.gridx[-2]: w = w + self.restW rect = wx.Rect(x, y, w+1, h+1) | def GetRect(self): cnt = 0 for y in self.gridy[1:-1]: for x in self.gridx[:-1]: assert type(y) == int assert type(x) == int rect = wx.Rect(x, y, self.dl_w, self.dl_h) # create rect region self.rg[cnt] = rect cnt = cnt + 1 | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
return self.cal | return self.cal_days | def GetCal(self): return self.cal | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def DrawMonth(self): | def DrawMonth(self, DC): | def DrawMonth(self): month = Month[self.month] | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.SetFont(f) tw,th = self.DC.GetTextExtent(month) | DC.SetFont(f) tw,th = DC.GetTextExtent(month) | def DrawMonth(self): month = Month[self.month] | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.DrawText(month, (adjust, self.cy_st + th)) | DC.DrawText(month, (adjust, self.cy_st + th)) | def DrawMonth(self): month = Month[self.month] | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
tw,th = self.DC.GetTextExtent(year) | tw,th = DC.GetTextExtent(year) | def DrawMonth(self): month = Month[self.month] | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.SetFont(f) self.DC.DrawText(year, (self.cx_st + adjust, self.cy_st + th)) def DrawWeek(self): width = self.gridx[1]-self.gridx[0] height = self.gridy[1] - self.gridy[0] rect_w = self.gridx[7]-self.gridx[0] | DC.SetFont(f) DC.DrawText(year, (self.cx_st + adjust, self.cy_st + th)) def DrawWeek(self, DC): width = self.gridx[1] - self.gridx[0] + 1 height = self.gridy[1] - self.gridy[0] + 1 rect_w = self.gridx[-1] - self.gridx[0] | def DrawMonth(self): month = Month[self.month] | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.SetFont(f) tw,th = self.DC.GetTextExtent(test_day) | DC.SetFont(f) tw,th = DC.GetTextExtent(test_day) | def DrawWeek(self): # draw the week days width = self.gridx[1]-self.gridx[0] height = self.gridy[1] - self.gridy[0] rect_w = self.gridx[7]-self.gridx[0] | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.SetFont(f) self.DC.SetTextForeground(wx.NamedColour(self.week_font_color)) | DC.SetFont(f) DC.SetTextForeground(MakeColor(self.colors[COLOR_HEADER_FONT])) | def DrawWeek(self): # draw the week days width = self.gridx[1]-self.gridx[0] height = self.gridy[1] - self.gridy[0] rect_w = self.gridx[7]-self.gridx[0] | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.