[Bio] / PyGUI / AGGetPubDialog.py Repository:
ViewVC logotype

Diff of /PyGUI/AGGetPubDialog.py

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

revision 1.4, Mon Jul 12 17:12:43 2004 UTC revision 1.5, Wed Jul 14 20:22:13 2004 UTC
# Line 28  Line 28 
28          self.agServerPageGrid = wxGrid(agServerPagePanel, -1)          self.agServerPageGrid = wxGrid(agServerPagePanel, -1)
29          self.agServerPageGrid.CreateGrid(0, 6)          self.agServerPageGrid.CreateGrid(0, 6)
30          self.agServerPageGrid.SetColLabelValue(0,"Add")          self.agServerPageGrid.SetColLabelValue(0,"Add")
         self.agServerPageGrid.AutoSizeColumn(0)  
31          self.agServerPageGrid.SetColLabelValue(1,"Name")          self.agServerPageGrid.SetColLabelValue(1,"Name")
32          self.agServerPageGrid.SetColLabelValue(2,"Type")          self.agServerPageGrid.SetColLabelValue(2,"Type")
         self.agServerPageGrid.AutoSizeColumn(2)  
33          self.agServerPageGrid.SetColLabelValue(3,"Id")          self.agServerPageGrid.SetColLabelValue(3,"Id")
         self.agServerPageGrid.AutoSizeColumn(3)  
34          self.agServerPageGrid.SetColLabelValue(4,"Host")          self.agServerPageGrid.SetColLabelValue(4,"Host")
35          self.agServerPageGrid.SetColLabelValue(5,"Port")          self.agServerPageGrid.SetColLabelValue(5,"Port")
36            self.agServerPageGrid.AutoSizeColumn(0)
37            self.agServerPageGrid.AutoSizeColumn(1)
38            self.agServerPageGrid.AutoSizeColumn(2)
39            self.agServerPageGrid.AutoSizeColumn(3)
40            self.agServerPageGrid.AutoSizeColumn(4)
41            self.agServerPageGrid.AutoSizeColumn(5)
42    
43    
44          self.agServerPageGrid.SetColFormatBool(0)          self.agServerPageGrid.SetColFormatBool(0)
45          #self.agServerPageGrid.SetColFormatBool(1)          #self.agServerPageGrid.SetColFormatBool(1)
# Line 81  Line 85 
85    
86          i = 0          i = 0
87          for server in servers:          for server in servers:
88                print "getServersFromAG: ", server
89              self.agServerPageGrid.AppendRows(numRows=1)              self.agServerPageGrid.AppendRows(numRows=1)
90              self.agServerPageGrid.SetCellValue(i, 0, '0')              self.agServerPageGrid.SetCellValue(i, 0, '0')
91              for j in range(1, 4):              for j in range(1, 4):
# Line 92  Line 97 
97              self.agServerPageGrid.FitInside()              self.agServerPageGrid.FitInside()
98              i = i + 1              i = i + 1
99    
100            self.agServerPageGrid.AutoSize()
101    
102          return          return
103    
104      #------------------------------------------------------------------------      #------------------------------------------------------------------------

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3