bugged
stringlengths
4
228k
fixed
stringlengths
0
96.3M
__index_level_0__
int64
0
481k
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]
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]
31,800
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]
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]
31,801
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]
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]
31,802
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
def DrawNum(self, DC): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
31,803
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
31,804
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
31,805
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
31,806
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
def DrawNum(self): f = wx.Font(10, self.font, wx.NORMAL, self.bold) # initial font setting
31,807
def Center(self): bdw = self.x_mrg * 2 bdh = self.y_mrg + self.y_end + self.title_offset
def Center(self): bdw = self.x_mrg * 2 bdh = self.y_mrg + self.y_end + self.title_offset
31,808
def Center(self): bdw = self.x_mrg * 2 bdh = self.y_mrg + self.y_end + self.title_offset
def Center(self): bdw = self.x_mrg * 2 bdh = self.y_mrg + self.y_end + self.title_offset
31,809
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)
def DrawSel(self, DC): 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)
31,810
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)
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)
31,811
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)
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)
31,812
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)
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)
31,813
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)
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)
31,814
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,815
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,816
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,817
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,818
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,819
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,820
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,821
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,822
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
def DrawGrid(self): self.DC.SetPen(wx.Pen(wx.NamedColour(self.grid_color), 0))
31,823
def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size)
def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size)
31,824
def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size)
def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size)
31,825
def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size)
def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size)
31,826
def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size)
def __init__(self, parent, id, pos=wx.DefaultPosition, size=wx.DefaultSize): wx.Window.__init__(self, parent, id, pos, size)
31,827
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...
def TestDay(self, key): try: self.day = int(self.cal_days[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, sel...
31,828
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
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
31,829
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
def DoDrawing(self, DC): DC.BeginDrawing()
31,830
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
31,831
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
31,832
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
31,833
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
def DoDrawing(self, DC): DC = wx.PaintDC(self) DC.BeginDrawing()
31,834
def DrawRect(self, key, color = 'BLACK', width = 0): if key == None: return
def DrawRect(self, key, fgcolor = 'BLACK', width = 0): if key == None: return
31,835
def DrawRect(self, key, color = 'BLACK', width = 0): if key == None: return
def DrawRect(self, key, color = 'BLACK', width = 0): if key == None: return
31,836
def DrawRect(self, key, color = 'BLACK', width = 0): if key == None: return
def DrawRect(self, key, color = 'BLACK', width = 0): if key == None: return
31,837
def SelectDay(self, key): sel_size = 1 # clear large selection self.DrawRect(self.sel_key, self.back_color, sel_size)
def SelectDay(self, key): sel_size = 1 # clear large selection self.DrawRect(self.sel_key, self.back_color, sel_size)
31,838
def SelectDay(self, key): sel_size = 1 # clear large selection self.DrawRect(self.sel_key, self.back_color, sel_size)
def SelectDay(self, key): sel_size = 1 # clear large selection self.DrawRect(self.sel_key, self.back_color, sel_size)
31,839
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...
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...
31,840
def __init__(self, parent, ID, doodle): wx.Panel.__init__(self, parent, ID, style=wx.RAISED_BORDER)
def __init__(self, parent, ID, doodle): wx.Panel.__init__(self, parent, ID, style=wx.RAISED_BORDER)
31,841
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)
def __init__(self, parent): wx.Window.__init__(self, parent, -1, style=wx.SUNKEN_BORDER) self.SetBackgroundColour(wx.WHITE) self.SetSize( (45, 45) ) self.colour = self.thickness = None self.Bind(wx.EVT_PAINT, self.OnPaint)
31,842
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))
def OnSize(self, evt): if hasattr(self, 't'): sz = self.GetSize() w, h = self.t.GetTextExtent(self.t.GetLabel()) self.t.SetPosition(((sz.width-w)/2, (sz.height-h)/2))
31,843
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++' ...
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)s --cxx' % self.__dict__, 'r').read()[:-1] if not self.CCC: print "Warning: C++ compiler not specified (CCC). Assuming c++" ...
31,844
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++' ...
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++' ...
31,845
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
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
31,846
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)
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)
31,847
def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path)
def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path)
31,848
def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path)
def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path)
31,849
def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path)
def opj(*args): path = apply(os.path.join, args) return os.path.normpath(path)
31,850
def runTest(frame, nb, log): win = TestPanel(nb, log) return win
def runTest(frame, nb, log): win = TestPanel(nb, log) return win
31,851
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
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
31,852
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
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
31,853
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
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.OnChanged) EVT_COMBOBOX(textControl, ID, self.OnChanged) return textControl
31,854
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)
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)
31,855
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...
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.save = self.callCallback self.callCallback = callBack self.textControl.SetValue(value) self.callCallback = save # Hack...
31,856
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)
31,857
def OnShowDefault(self, event): name = os.path.join(os.path.split(sys.argv[0])[0], 'data/test.htm') self.html.LoadPage(name)
def OnShowDefault(self, event): name = os.path.join(self.cwd, 'data/test.htm') self.html.LoadPage(name)
31,858
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)
def OnWithWidgets(self, event): print self.cwd os.chdir(self.cwd) name = os.path.join(self.cwd, 'data/widgetTest.htm') self.html.LoadPage(name) #self.html.SetPage(_widgetTest)
31,859
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)
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)
31,860
def runTest(frame, nb, log): win = TestHtmlPanel(nb, frame, log) return win
def runTest(frame, nb, log): win = TestHtmlPanel(nb, frame, log) return win
31,861
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
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
31,862
def GetWindowEnabled(self): """Returns whether the associated window is enabled or not."""
def GetWindowEnabled(self): """Returns whether the associated window is enabled or not."""
31,863
def SetWindowEnabled(self, enable=True): """Sets whether the associated window is enabled or not."""
def SetWindowEnabled(self, enable=True): """Sets whether the associated window is enabled or not."""
31,864
def ToggleItemSelection(self, item): """Toggles the item selection."""
def ToggleItemSelection(self, item): """Toggles the item selection."""
31,865
def EnableItem(self, item, enable=True, torefresh=True): """Enables/disables an item."""
def EnableItem(self, item, enable=True, torefresh=True): """Enables/disables an item."""
31,866
def IsEnabled(self, item): """Returns whether an item is enabled or disabled."""
def IsEnabled(self, item): """Returns whether an item is enabled or disabled."""
31,867
def IsItemChecked(self, item): """Returns whether an item is checked or not."""
def IsItemChecked(self, item): """Returns whether an item is checked or not."""
31,868
def CheckItem(self, item, checked=True): """ Actually checks/uncheks an item, sending (eventually) the two events EVT_TREE_ITEM_CHECKING/EVT_TREE_ITEM_CHECKED. """
def CheckItem(self, item, checked=True): """ Actually checks/uncheks an item, sending (eventually) the two events EVT_TREE_ITEM_CHECKING/EVT_TREE_ITEM_CHECKED. """
31,869
def AutoToggleChild(self, item): """Transverses the tree and toggles the items. Meaningful only for check items."""
def AutoToggleChild(self, item): """Transverses the tree and toggles the items. Meaningful only for check items."""
31,870
def AutoCheckChild(self, item, checked): """Transverses the tree and checks/unchecks the items. Meaningful only for check items."""
def AutoCheckChild(self, item, checked): """Transverses the tree and checks/unchecks the items. Meaningful only for check items."""
31,871
def AutoCheckParent(self, item, checked): """Traverses up the tree and checks/unchecks parent items. Meaningful only for check items."""
def AutoCheckParent(self, item, checked): """Traverses up the tree and checks/unchecks parent items. Meaningful only for check items."""
31,872
def CheckChilds(self, item, checked=True): """Programatically check/uncheck item children. Does not generate EVT_TREE_CHECK* events."""
def CheckChilds(self, item, checked=True): """Programatically check/uncheck item children. Does not generate EVT_TREE_CHECK* events."""
31,873
def EditLabel(self, item): """Starts editing an item label."""
def EditLabel(self, item): """Starts editing an item label."""
31,874
def HasChildren(self, item): """Returns whether an item has children or not."""
def HasChildren(self, item): """Returns whether an item has children or not."""
31,875
def GetChildrenCount(self, item, recursively=True): """Gets the item children count."""
def GetChildrenCount(self, item, recursively=True): """Gets the item children count."""
31,876
def GetItemText(self, item): """Returns the item text."""
def GetItemText(self, item): """Returns the item text."""
31,877
def GetItemImage(self, item, which): """Returns the item image."""
def GetItemImage(self, item, which): """Returns the item image."""
31,878
def GetPyData(self, item): """Returns the data associated to an item."""
def GetPyData(self, item): """Returns the data associated to an item."""
31,879
def GetItemTextColour(self, item): """Returns the item text colour."""
def GetItemTextColour(self, item): """Returns the item text colour."""
31,880
def GetItemBackgroundColour(self, item): """Returns the item background colour."""
def GetItemBackgroundColour(self, item): """Returns the item background colour."""
31,881
def GetItemFont(self, item): """Returns the item font."""
def GetItemFont(self, item): """Returns the item font."""
31,882
def IsItemHyperText(self, item): """Returns whether an item is hypertext or not."""
def IsItemHyperText(self, item): """Returns whether an item is hypertext or not."""
31,883
def SetItemText(self, item, text): """Sets the item text."""
def SetItemText(self, item, text): """Sets the item text."""
31,884
def SetItemImage(self, item, image, which=TreeItemIcon_Normal): """Sets the item image, depending on the item state."""
def SetItemImage(self, item, image, which=TreeItemIcon_Normal): """Sets the item image, depending on the item state."""
31,885
def SetPyData(self, item, data): """Sets the data associated to an item."""
def SetPyData(self, item, data): """Sets the data associated to an item."""
31,886
def SetItemHasChildren(self, item, has=True): """Forces the appearance of the button next to the item.""" if not item: raise "\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. "
31,887
def SetItemBold(self, item, bold=True): """Sets the item font bold/unbold."""
def SetItemBold(self, item, bold=True): """Sets the item font bold/unbold."""
31,888
def SetItemItalic(self, item, italic=True): """Sets the item font italic/non-italic."""
def SetItemItalic(self, item, italic=True): """Sets the item font italic/non-italic."""
31,889
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. """
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. """
31,890
def SetItemTextColour(self, item, col): """Sets the item text colour."""
def SetItemTextColour(self, item, col): """Sets the item text colour."""
31,891
def SetItemBackgroundColour(self, item, col): """Sets the item background colour."""
def SetItemBackgroundColour(self, item, col): """Sets the item background colour."""
31,892
def SetItemHyperText(self, item, hyper=True): """Sets whether the item is hypertext or not."""
def SetItemHyperText(self, item, hyper=True): """Sets whether the item is hypertext or not."""
31,893
def SetItemFont(self, item, font): """Sets the item font."""
def SetItemFont(self, item, font): """Sets the item font."""
31,894
def SetItemVisited(self, item, visited=True): """Sets whether an hypertext item was visited."""
def SetItemVisited(self, item, visited=True): """Sets whether an hypertext item was visited."""
31,895
def GetItemVisited(self, item): """Returns whether an hypertext item was visited."""
def GetItemVisited(self, item): """Returns whether an hypertext item was visited."""
31,896
def GetItemWindow(self, item): """Returns the window associated to the item (if any)."""
def GetItemWindow(self, item): """Returns the window associated to the item (if any)."""
31,897
def GetItemWindowEnabled(self, item): """Returns whether the window associated to the item is enabled."""
def GetItemWindowEnabled(self, item): """Returns whether the window associated to the item is enabled."""
31,898
def SetItemWindowEnabled(self, item, enable=True): """Enables/disables the window associated to the item."""
def SetItemWindowEnabled(self, item, enable=True): """Enables/disables the window associated to the item."""
31,899