editors/ConfTreeNodeEditor.py
changeset 1737 a39c2918c015
parent 1736 7e61baa047f0
child 1739 ec153828ded2
equal deleted inserted replaced
1736:7e61baa047f0 1737:a39c2918c015
    98             dw = dy = self.labelDelta
    98             dw = dy = self.labelDelta
    99 
    99 
   100         pos_x = (width-bw)/2+dw      # adjust for bitmap and text to centre
   100         pos_x = (width-bw)/2+dw      # adjust for bitmap and text to centre
   101         pos_y = (height-bh-th)/2+dy
   101         pos_y = (height-bh-th)/2+dy
   102         if bmp !=None:
   102         if bmp !=None:
   103             dc.DrawBitmap(bmp, pos_x, pos_y, hasMask) # draw bitmap if available
   103             dc.DrawBitmap(bmp, pos_x, pos_y, hasMask)  # draw bitmap if available
   104             pos_x = (width-tw)/2+dw      # adjust for bitmap and text to centre
   104             pos_x = (width-tw)/2+dw      # adjust for bitmap and text to centre
   105             pos_y += bh + 2
   105             pos_y += bh + 2
   106 
   106 
   107         dc.DrawText(label, pos_x, pos_y)      # draw the text
   107         dc.DrawText(label, pos_x, pos_y)      # draw the text
   108 
   108