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

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

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

revision 34 by bh, Thu Sep 6 15:32:56 2001 UTC revision 173 by bh, Wed May 15 13:29:34 2002 UTC
# Line 1  Line 1 
1  # Copyright (c) 2001 by Intevation GmbH  # Copyright (c) 2001, 2002 by Intevation GmbH
2  # Authors:  # Authors:
3  # Bernhard Herzog <[email protected]>  # Bernhard Herzog <[email protected]>
4  #  #
# Line 106  class TableGrid(wxGrid, Publisher): Line 106  class TableGrid(wxGrid, Publisher):
106    
107          # The second parameter means that the grid is to take ownership          # The second parameter means that the grid is to take ownership
108          # of the table and will destroy it when done. Otherwise you          # of the table and will destroy it when done. Otherwise you
109          # would need to keep a reference to it and call it's Destroy          # would need to keep a reference to it and call its Destroy
110          # method later.          # method later.
111          self.SetTable(self.table, true)          self.SetTable(self.table, true)
112    
113          #self.SetMargins(0,0)          #self.SetMargins(0,0)
114          self.AutoSizeColumns(false)  
115            # AutoSizeColumns would allow us to make the grid have optimal
116            # column widths automatically but it would cause a traversal of
117            # the entire table which for large .dbf files can take a very
118            # long time.
119            #self.AutoSizeColumns(false)
120    
121          self.SetSelectionMode(wxGrid.wxGridSelectRows)          self.SetSelectionMode(wxGrid.wxGridSelectRows)
122                    

Legend:
Removed from v.34  
changed lines
  Added in v.173

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26