/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/tree.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/tree.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 417 by jonathan, Wed Feb 19 16:53:22 2003 UTC revision 443 by jonathan, Thu Feb 27 15:55:42 2003 UTC
# Line 14  from types import StringType, UnicodeTyp Line 14  from types import StringType, UnicodeTyp
14  from wxPython.wx import *  from wxPython.wx import *
15    
16  from Thuban import _  from Thuban import _
17    from Thuban.UI.common import *
18    
19  from Thuban.Model.color import Color  from Thuban.Model.color import Color
20    
# Line 130  class SessionTreeCtrl(wxTreeCtrl): Line 131  class SessionTreeCtrl(wxTreeCtrl):
131                      treeitem = self.AppendItem(parent, "(%s)" % item[0])                      treeitem = self.AppendItem(parent, "(%s)" % item[0])
132    
133                      bmp = wxEmptyBitmap(BMP_SIZE, BMP_SIZE)                      bmp = wxEmptyBitmap(BMP_SIZE, BMP_SIZE)
134                      brush = wxBrush(wxColour(item[1].red * 255,                      brush = wxBrush(Color2wxColour(item[1]), wxSOLID)
                                              item[1].green * 255,  
                                              item[1].blue * 255),  
                                     wxSOLID)  
135                      dc = wxMemoryDC()                      dc = wxMemoryDC()
136                      dc.SelectObject(bmp)                      dc.SelectObject(bmp)
137                      dc.SetBrush(brush)                      dc.SetBrush(brush)

Legend:
Removed from v.417  
changed lines
  Added in v.443

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26