rem stringlengths 1 322k | add stringlengths 0 2.05M | context stringlengths 4 228k | meta stringlengths 156 215 |
|---|---|---|---|
brush = wx.Brush(wx.NamedColour(self.week_color), wx.SOLID) self.DC.SetBrush(brush) self.DC.DrawRectangle((self.gridx[0], self.gridy[0]), (rect_w+1, height)) | brush = wx.Brush(MakeColor(self.colors[COLOR_HEADER_BACKGROUND]), wx.SOLID) DC.SetBrush(brush) | 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 |
dw,dh = self.DC.GetTextExtent(day) | dw,dh = DC.GetTextExtent(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.DrawRectangle((self.gridx[cnt_x], self.gridy[0]), (width+1, height)) self.DC.DrawText(day, (x+diffx, y+diffy)) | pointXY = (x, y) pointWH = (width, height) if self.hide_grid == False: pen = wx.Pen(MakeColor(self.GetColor(COLOR_GRID_LINES)), 1, wx.SOLID) else: pen = wx.Pen(MakeColor(self.GetColor(COLOR_BACKGROUND)), 1, wx.SOLID) DC.SetPen(pen) DC.DrawRectangle( pointXY, pointWH) old_pen = DC.GetPen() pen = wx.Pen(MakeColor(self.... | 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 |
def DrawNum(self): | def DrawNum(self, DC): | def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting | 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) if tw < self.dl_w and th < self.dl_h: | DC.SetFont(f) tw,th = DC.GetTextExtent(test_day) if tw < self.cellW and th < self.cellH: | def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.SetFont(f) | DC.SetFont(f) | def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
for val in self.cal: | for val in self.cal_days: | def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
try: num_val = int(val) num_color = self.cal_sel[num_val][0] except: num_color = self.day_font_color self.DC.SetTextForeground(wx.NamedColour(num_color)) self.DC.SetFont(f) tw,th = self.DC.GetTextExtent(val) if self.num_align_horz == wx.ALIGN_CENTRE: adj_h = (self.dl_w - tw)/2 elif self.num_align_horz == wx.ALIGN_RI... | self.DrawDayText(x, y, val, f, DC) | def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
bdw = self.x_mrg * 2 bdh = self.y_mrg + self.y_end + self.title_offset self.dl_w = int((self.sizew-bdw)/7) self.dl_h = int((self.sizeh-bdh)/7) | borderW = self.x_mrg * 2 borderH = self.y_mrg + self.y_end + self.title_offset self.cellW = int((self.sizew-borderW)/7) self.cellH = int((self.sizeh-borderH)/7) self.restW = ((self.sizew - borderW)%7 ) - 1 | def Center(self): bdw = self.x_mrg * 2 bdh = self.y_mrg + self.y_end + self.title_offset | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.dl_th = int(self.dl_h*self.cal_week_scale) self.cwidth = self.dl_w * 7 self.cheight = self.dl_h * 6 + self.dl_th | self.weekHdrCellH = int(self.cellH*self.cal_week_scale) self.cellH = int((self.sizeh-borderH-self.weekHdrCellH)/6) self.restH = ((self.sizeh-borderH-self.weekHdrCellH)%6 ) - 1 self.calW = self.cellW * 7 self.calH = self.cellH * 6 + self.weekHdrCellH | def Center(self): bdw = self.x_mrg * 2 bdh = self.y_mrg + self.y_end + self.title_offset | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def DrawSel(self): | def DrawSel(self, DC): | def DrawSel(self): for key in self.cal_sel.keys(): sel_color = self.cal_sel[key][1] brush = wx.Brush(wx.NamedColour(sel_color), wx.SOLID) self.DC.SetBrush(brush) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
brush = wx.Brush(wx.NamedColour(sel_color), wx.SOLID) self.DC.SetBrush(brush) | brush = wx.Brush(MakeColor(sel_color), wx.SOLID) DC.SetBrush(brush) | def DrawSel(self): for key in self.cal_sel.keys(): sel_color = self.cal_sel[key][1] brush = wx.Brush(wx.NamedColour(sel_color), wx.SOLID) self.DC.SetBrush(brush) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | DC.SetPen(wx.Pen(MakeColor(self.colors[COLOR_GRID_LINES]), 0)) | def DrawSel(self): for key in self.cal_sel.keys(): sel_color = self.cal_sel[key][1] brush = wx.Brush(wx.NamedColour(sel_color), wx.SOLID) self.DC.SetBrush(brush) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.SetPen(wx.Pen(wx.NamedColour(self.back_color), 0)) | DC.SetPen(wx.Pen(MakeColor(self.colors[COLOR_BACKGROUND]), 0)) | def DrawSel(self): for key in self.cal_sel.keys(): sel_color = self.cal_sel[key][1] brush = wx.Brush(wx.NamedColour(sel_color), wx.SOLID) self.DC.SetBrush(brush) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.DrawRectangle((rect.x, rect.y), (rect.width+1, rect.height+1)) | DC.DrawRectangle((rect.x, rect.y), (rect.width, rect.height)) | def DrawSel(self): for key in self.cal_sel.keys(): sel_color = self.cal_sel[key][1] brush = wx.Brush(wx.NamedColour(sel_color), wx.SOLID) self.DC.SetBrush(brush) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | def DrawGrid(self, DC): DC.SetPen(wx.Pen(MakeColor(self.colors[COLOR_GRID_LINES]), 0)) | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | ||
y2 = y1 + self.cheight | y2 = y1 + self.calH + self.restH | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.DrawLine((x1, y1), (x1, y2)) | DC.DrawLine((x1, y1), (x1, y2)) | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
x1 = x1 + self.dl_w | x1 = x1 + self.cellW | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
x2 = x1 + self.cwidth | x2 = x1 + self.calW + self.restW | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DC.DrawLine((x1, y1), (x2, y1)) | DC.DrawLine((x1, y1), (x2, y1)) | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
y1 = y1 + self.dl_th | y1 = y1 + self.weekHdrCellH | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
y1 = y1 + self.dl_h | y1 = y1 + self.cellH def GetColor(self, name): return MakeColor(self.colors[name]) def SetColor(self, name, value): self.colors[name] = MakeColor(value) | def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0)) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.grid_color = 'BLACK' self.back_color = 'WHITE' | self.cal = None | def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.sel_color = 'RED' | def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | |
self.week_color = 'LIGHT GREY' self.week_font_color = 'BLACK' | self.outer_border = True self.num_align_horz = wx.ALIGN_CENTRE self.num_align_vert = wx.ALIGN_CENTRE self.colors = DefaultColors() self.set_x_mrg = 1 self.set_y_mrg = 1 self.set_y_end = 1 | def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.SetBackgroundColour(self.back_color) | self.SetBackgroundColour(MakeColor(self.colors[COLOR_BACKGROUND])) | def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.day = int(self.cal[key]) | self.day = int(self.cal_days[key]) | def TestDay(self, key): try: self.day = int(self.cal[key]) except: return None if self.day == "": return None else: # Changed 12/1/03 by jmg (see above) to support 2.5 event binding evt = wx.PyCommandEvent(wxEVT_COMMAND_PYCALENDAR_DAY_CLICKED, self.GetId()) evt.click, evt.day, evt.month, evt.year = self.click, self.day... | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.week_font_color = font_color self.week_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 SetTextAlign(self, vert, horz): self.num_align_horz = horz self.num_align_vert = vert | 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 |
DC = wx.PaintDC(self) | def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | |
self.cal = cal = CalDraw(self) cal.grid_color = self.grid_color cal.back_color = self.back_color | try: cal = self.caldraw except: self.caldraw = CalDraw(self) cal = self.caldraw | def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
cal.grid_color = self.grid_color | def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | |
cal.week_font_color = self.week_font_color cal.week_color = self.week_color | def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py | |
self.cal = cal.GetCal() | self.cal_days = cal.GetCal() | def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing() | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
def DrawRect(self, key, color = 'BLACK', width = 0): | def DrawRect(self, key, fgcolor = 'BLACK', width = 0): | def DrawRect(self, key, color = 'BLACK', width = 0): if key == None: return | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
DC.SetPen(wx.Pen(wx.NamedColour(color), width)) | try: DC.SetPen(wx.Pen(MakeColor(fgcolor), width)) except: DC.SetPen(wx.Pen(MakeColor(self.GetColor(COLOR_GRID_LINES)), width)) | def DrawRect(self, key, color = 'BLACK', width = 0): if key == None: return | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
DC.DrawRectangle((rect.x, rect.y), (rect.width+1, rect.height+1)) | DC.DrawRectangle((rect.x, rect.y), (rect.width, rect.height)) | def DrawRect(self, key, color = 'BLACK', width = 0): if key == None: return | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DrawRect(self.sel_key, self.back_color, sel_size) | self.DrawRect(self.sel_key, self.GetColor(COLOR_BACKGROUND), sel_size) | def SelectDay(self, key): sel_size = 1 # clear large selection self.DrawRect(self.sel_key, self.back_color, sel_size) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
self.DrawRect(self.sel_key, self.grid_color) self.DrawRect(key, self.sel_color, sel_size) | self.DrawRect(self.sel_key, self.GetColor(COLOR_GRID_LINES), sel_size) self.DrawRect(key, self.GetColor(COLOR_HIGHLIGHT_BACKGROUND), sel_size) | def SelectDay(self, key): sel_size = 1 # clear large selection self.DrawRect(self.sel_key, self.back_color, sel_size) | b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/b25cb7db43121f1f6899b7ebfcd6ccc3806dd0f6/calendar.py |
value.append((dlg.list.GetString(i), dlg.list.IsChecked(i))) | value.append((dlg.list.GetString(i), int(dlg.list.IsChecked(i)))) | def OnButtonEdit(self, evt): if self.textModified: # text has newer value try: self.value = eval(self.text.GetValue()) except SyntaxError: wxLogError('Syntax error in parameter value: ' + self.GetName()) self.value = [] dlg = ContentCheckListDialog(self, self.value) if dlg.ShowModal() == wxID_OK: value = [] f... | efa5f7095fbdca6026a4fb5cf1be3d6eb0df8893 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/efa5f7095fbdca6026a4fb5cf1be3d6eb0df8893/params.py |
wx.Panel.__init__(self, parent, ID, style=wx.RAISED_BORDER) | wx.Panel.__init__(self, parent, ID, style=wx.RAISED_BORDER, size=(20,20)) | def __init__(self, parent, ID, doodle): wx.Panel.__init__(self, parent, ID, style=wx.RAISED_BORDER) | dc4b282d2fcc9bb793264da6bc53b030336c41c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/dc4b282d2fcc9bb793264da6bc53b030336c41c6/superdoodle.py |
self.SetSize( (-1, 45) ) | self.SetSize( (45, 45) ) | def __init__(self, parent): wx.Window.__init__(self, parent, -1, style=wx.SUNKEN_BORDER) self.SetBackgroundColour(wx.WHITE) self.SetSize( (-1, 45) ) self.colour = self.thickness = None self.Bind(wx.EVT_PAINT, self.OnPaint) | dc4b282d2fcc9bb793264da6bc53b030336c41c6 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/dc4b282d2fcc9bb793264da6bc53b030336c41c6/superdoodle.py |
print w, h | def OnSize(self, evt): if hasattr(self, 't'): sz = self.GetSize() w, h = self.t.GetTextExtent(self.t.GetLabel()) print w, h self.t.SetPosition(((sz.width-w)/2, (sz.height-h)/2)) | 2abd8d78a69cbe726f957de91929feeeac21cfb0 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/2abd8d78a69cbe726f957de91929feeeac21cfb0/XmlResourceSubclass.py | |
self.CCC = os.popen('$(WXCONFIG) --cxx', 'r').read()[:-1] | self.CCC = os.popen('%(WXCONFIG)s --cxx' % self.__dict__, 'r').read()[:-1] | def doFixups(self): # This is called after the config files have been evaluated # so we can do some sanity checking... if sys.platform != 'win32': if not self.CCC: self.CCC = os.popen('$(WXCONFIG) --cxx', 'r').read()[:-1] if not self.CCC: print "Warning: C++ compiler not specified (CCC). Assuming c++" self.CCC = 'c++' ... | 352f281a242bba9357d00180aa9f4141f40cf5f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/352f281a242bba9357d00180aa9f4141f40cf5f4/build.py |
self.CCC = os.popen('$(WXCONFIG) --cc', 'r').read()[:-1] | self.CCC = os.popen('%(WXCONFIG)s --cc' % self.__dict__, 'r').read()[:-1] | def doFixups(self): # This is called after the config files have been evaluated # so we can do some sanity checking... if sys.platform != 'win32': if not self.CCC: self.CCC = os.popen('$(WXCONFIG) --cxx', 'r').read()[:-1] if not self.CCC: print "Warning: C++ compiler not specified (CCC). Assuming c++" self.CCC = 'c++' ... | 352f281a242bba9357d00180aa9f4141f40cf5f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/352f281a242bba9357d00180aa9f4141f40cf5f4/build.py |
WXCONFIG=wx-config | WXCONFIG=%(WXCONFIG)s | def processArgs(self, args): try: for st in args: pair = string.split(st, '=') name = pair[0] value = pair[1] self.__dict__[name] = value except: print "Error parsing command-line: %s" % st return 0 | 352f281a242bba9357d00180aa9f4141f40cf5f4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/352f281a242bba9357d00180aa9f4141f40cf5f4/build.py |
def DrawOutLine(self, dc, x1, y1, x2, y2): | def DrawOutline(self, dc, x1, y1, x2, y2): | def DrawOutLine(self, dc, x1, y1, x2, y2): """Draw an outline rectangle on the current device context.""" dc.SetPen(wx.Pen(wx.Color(0, 0, 0), 1, wx.DOT)) dc.SetBrush(wx.TRANSPARENT_BRUSH) | 60509cc126c4e41c6a6c47949fa0c47e34d2bb27 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/60509cc126c4e41c6a6c47949fa0c47e34d2bb27/_diagram.py |
gl_libs = os.popen(WX_CONFIG + ' --gl-libs', 'r').read()[:-1] gl_libs = string.split(gl_libs) | gl_config = os.popen(WX_CONFIG + ' --gl-libs', 'r').read()[:-1] gl_lflags = string.split(gl_config) + lflags gl_libs = libs | def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path) | f32afe1c2c8a663d5b1fe6816c6999100ac832cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/f32afe1c2c8a663d5b1fe6816c6999100ac832cf/setup.py |
gl_libs = ['opengl32', 'glu32'] | gl_libs = libs + ['opengl32', 'glu32'] gl_lflags = lflags | def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path) | f32afe1c2c8a663d5b1fe6816c6999100ac832cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/f32afe1c2c8a663d5b1fe6816c6999100ac832cf/setup.py |
libraries = libs, extra_compile_args = cflags, extra_link_args = gl_libs + lflags, | libraries = gl_libs, extra_compile_args = cflags, extra_link_args = gl_lflags, | def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path) | f32afe1c2c8a663d5b1fe6816c6999100ac832cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/f32afe1c2c8a663d5b1fe6816c6999100ac832cf/setup.py |
types, and will properly blend that chennel when drawing a | types, and will properly blend that channel when drawing a | def runTest(frame, nb, log): win = TestPanel(nb, log) return win | 6a8fa617f1c2d7b4a324425be16d5af7293ed97d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/6a8fa617f1c2d7b4a324425be16d5af7293ed97d/ImageAlpha.py |
'media', 'odbc', 'dbgrid', 'xrc'] | 'media', 'odbc', 'qa', 'dbgrid', 'xrc'] | def mk_wxid(id): """Creates wxWidgets library identifier from bakefile target ID that follows this convention: DLLs end with 'dll', static libraries end with 'lib'. If withPrefix=1, then _wxid is returned instead of wxid.""" if id.endswith('dll') or id.endswith('lib'): wxid = id[:-3] else: wxid = id return wxid | 61639efb6658a7a02dd8b0072c6e0bb4826ef654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/61639efb6658a7a02dd8b0072c6e0bb4826ef654/wxwin.py |
LIBS_GUI = ['core', 'adv', 'html', 'gl', 'dbgrid', 'xrc', 'media'] | LIBS_GUI = ['core', 'adv', 'html', 'gl', 'qa', 'dbgrid', 'xrc', 'media'] | def mk_wxid(id): """Creates wxWidgets library identifier from bakefile target ID that follows this convention: DLLs end with 'dll', static libraries end with 'lib'. If withPrefix=1, then _wxid is returned instead of wxid.""" if id.endswith('dll') or id.endswith('lib'): wxid = id[:-3] else: wxid = id return wxid | 61639efb6658a7a02dd8b0072c6e0bb4826ef654 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/61639efb6658a7a02dd8b0072c6e0bb4826ef654/wxwin.py |
EVT_TEXT(textControl, ID, self.changeCallback) EVT_COMBOBOX(textControl, ID, self.changeCallback) | EVT_TEXT(textControl, ID, self.OnChanged) EVT_COMBOBOX(textControl, ID, self.OnChanged) | def createTextControl( self): """Create the text control""" ID = wxNewId() textControl = wxTextCtrl(self, ID) textControl.SetToolTipString( self.toolTip ) if self.changeCallback: EVT_TEXT(textControl, ID, self.changeCallback) EVT_COMBOBOX(textControl, ID, self.changeCallback) return textControl | c3357374af44fdcae9d326e62ab5a39d9517102d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/c3357374af44fdcae9d326e62ab5a39d9517102d/filebrowsebutton.py |
self.textControl.SetValue (value) | save = self.callCallback self.callCallback = callBack self.textControl.SetValue(value) self.callCallback = save | def SetValue (self, value, callBack=1): """ Convenient setting of text control value """ # Removed the return from here because SetValue doesn't return anything. self.textControl.SetValue (value) | c3357374af44fdcae9d326e62ab5a39d9517102d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/c3357374af44fdcae9d326e62ab5a39d9517102d/filebrowsebutton.py |
self.textControl.SetValue (value) | save = self.callCallback self.callCallback = callBack self.textControl.SetValue(value) self.callCallback = save | def SetValue (self, value, callBack=1): """ Convenient setting of text control value, works around limitation of wxComboBox """ # Removed the return from here because SetValue doesn't return anything. self.textControl.SetValue (value) # Hack to call an event handler class LocalEvent: def __init__(self, string): self._s... | c3357374af44fdcae9d326e62ab5a39d9517102d /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/c3357374af44fdcae9d326e62ab5a39d9517102d/filebrowsebutton.py |
def __del__(self,htmlc=htmlc): if self.thisown == 1 : htmlc.delete_wxHtmlPrintout(self) | def __del__(self,htmlc=htmlc): if self.thisown == 1 : htmlc.delete_wxHtmlPrintout(self) | ad48a30eec981b8f5a3d4fa0321f746b2f66a2d4 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ad48a30eec981b8f5a3d4fa0321f746b2f66a2d4/html.py | |
name = os.path.join(os.path.split(sys.argv[0])[0], 'data/test.htm') | name = os.path.join(self.cwd, 'data/test.htm') | def OnShowDefault(self, event): name = os.path.join(os.path.split(sys.argv[0])[0], 'data/test.htm') self.html.LoadPage(name) | ae920857a74f858f98d0d68f55f6a77de0d8f2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ae920857a74f858f98d0d68f55f6a77de0d8f2cf/wxHtmlWindow.py |
os.chdir(os.path.split(sys.argv[0])[0]) name = os.path.join(os.path.split(sys.argv[0])[0], 'data/widgetTest.htm') | print self.cwd os.chdir(self.cwd) name = os.path.join(self.cwd, 'data/widgetTest.htm') | def OnWithWidgets(self, event): os.chdir(os.path.split(sys.argv[0])[0]) name = os.path.join(os.path.split(sys.argv[0])[0], 'data/widgetTest.htm') self.html.LoadPage(name) #self.html.SetPage(_widgetTest) | ae920857a74f858f98d0d68f55f6a77de0d8f2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ae920857a74f858f98d0d68f55f6a77de0d8f2cf/wxHtmlWindow.py |
def OnWithWidgets(self, event): os.chdir(os.path.split(sys.argv[0])[0]) name = os.path.join(os.path.split(sys.argv[0])[0], 'data/widgetTest.htm') self.html.LoadPage(name) #self.html.SetPage(_widgetTest) | ae920857a74f858f98d0d68f55f6a77de0d8f2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ae920857a74f858f98d0d68f55f6a77de0d8f2cf/wxHtmlWindow.py | ||
_widgetTest = '''\ <html><body> The widgets on this page were created dynamically on the fly by a custom wxTagHandler found in wxPython.lib.wxpTag. <hr> <center> <wxp class="wxButton" width="50%"> <param name="label" value="It works!"> <param name="id" value="wxID_OK"> </wxp> </center> <hr> after </body></html> '''... | def runTest(frame, nb, log): win = TestHtmlPanel(nb, frame, log) return win | ae920857a74f858f98d0d68f55f6a77de0d8f2cf /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/ae920857a74f858f98d0d68f55f6a77de0d8f2cf/wxHtmlWindow.py | |
raise "\n ERROR: You Must Create An Image List To Use Images!" | raise Exception("\n ERROR: You Must Create An Image List To Use Images!") | def __init__(self, owner, item=None): """ Default class constructor. For internal use: do not call it in your code! """ self._owner = owner self._itemEdited = item self._startValue = item.GetText() self._finished = False self._aboutToFinish = False | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: This Item Has No Window Associated" | raise Exception("\nERROR: This Item Has No Window Associated") | def GetWindowEnabled(self): """Returns whether the associated window is enabled or not.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: This Item Has No Window Associated" | raise Exception("\nERROR: This Item Has No Window Associated") | def SetWindowEnabled(self, enable=True): """Sets whether the associated window is enabled or not.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def ToggleItemSelection(self, item): """Toggles the item selection.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def EnableItem(self, item, enable=True, torefresh=True): """Enables/disables an item.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def IsEnabled(self, item): """Returns whether an item is enabled or disabled.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def IsItemChecked(self, item): """Returns whether an item is checked or not.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def CheckItem(self, item, checked=True): """ Actually checks/uncheks an item, sending (eventually) the two events EVT_TREE_ITEM_CHECKING/EVT_TREE_ITEM_CHECKED. """ | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def AutoToggleChild(self, item): """Transverses the tree and toggles the items. Meaningful only for check items.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def AutoCheckChild(self, item, checked): """Transverses the tree and checks/unchecks the items. Meaningful only for check items.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def AutoCheckParent(self, item, checked): """Traverses up the tree and checks/unchecks parent items. Meaningful only for check items.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def CheckChilds(self, item, checked=True): """Programatically check/uncheck item children. Does not generate EVT_TREE_CHECK* events.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def EditLabel(self, item): """Starts editing an item label.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def HasChildren(self, item): """Returns whether an item has children or not.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def GetChildrenCount(self, item, recursively=True): """Gets the item children count.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def GetItemText(self, item): """Returns the item text.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def GetItemImage(self, item, which): """Returns the item image.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def GetPyData(self, item): """Returns the data associated to an item.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def GetItemTextColour(self, item): """Returns the item text colour.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def GetItemBackgroundColour(self, item): """Returns the item background colour.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def GetItemFont(self, item): """Returns the item font.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def IsItemHyperText(self, item): """Returns whether an item is hypertext or not.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemText(self, item, text): """Sets the item text.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemImage(self, item, image, which=TreeItemIcon_Normal): """Sets the item image, depending on the item state.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetPyData(self, item, data): """Sets the data associated to an item.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemHasChildren(self, item, has=True): """Forces the appearance of the button next to the item.""" if not item: raise "\nERROR: Invalid Tree Item. " | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemBold(self, item, bold=True): """Sets the item font bold/unbold.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemItalic(self, item, italic=True): """Sets the item font italic/non-italic.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemDropHighlight(self, item, highlight=True): """ Gives the item the visual feedback for drag and drop operations. This is useful when something is dragged from outside the CustomTreeCtrl. """ | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemTextColour(self, item, col): """Sets the item text colour.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemBackgroundColour(self, item, col): """Sets the item background colour.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemHyperText(self, item, hyper=True): """Sets whether the item is hypertext or not.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemFont(self, item, font): """Sets the item font.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def SetItemVisited(self, item, visited=True): """Sets whether an hypertext item was visited.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Tree Item. " | raise Exception("\nERROR: Invalid Tree Item. ") | def GetItemVisited(self, item): """Returns whether an hypertext item was visited.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Item" | raise Exception("\nERROR: Invalid Item") | def GetItemWindow(self, item): """Returns the window associated to the item (if any).""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Item" | raise Exception("\nERROR: Invalid Item") | def GetItemWindowEnabled(self, item): """Returns whether the window associated to the item is enabled.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
raise "\nERROR: Invalid Item" | raise Exception("\nERROR: Invalid Item") | def SetItemWindowEnabled(self, item, enable=True): """Enables/disables the window associated to the item.""" | e1463b9df091ad0e9d76292564d4389882b28de1 /local1/tlutelli/issta_data/temp/all_python//python/2006_temp/2006/12725/e1463b9df091ad0e9d76292564d4389882b28de1/customtreectrl.py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.