Added additional rows, commented out checkbox code
This commit is contained in:
		@@ -11,9 +11,27 @@ class ServerPanel(wx.Panel):
 | 
			
		||||
            self, size=(-1, 100), 
 | 
			
		||||
            style=wx.LC_REPORT | wx.BORDER_SUNKEN
 | 
			
		||||
        )
 | 
			
		||||
        self.list_ctrl.InsertColumn(0, 'Server name', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(1, 'Port number', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(2, 'Status', width=200)
 | 
			
		||||
        self.list_ctrl.InsertColumn(0, 'PID', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(1, 'Local Address', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(2, 'Timestamp', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(3, 'Proto', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(4, 'Recv-Q', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(5, 'Send-Q', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(6, 'Foreign Address', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(7, 'Block', width=60)
 | 
			
		||||
        self.list_ctrl.InsertColumn(8, 'State', width=140)
 | 
			
		||||
        self.list_ctrl.InsertColumn(9, 'Duration', width=140)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        ## To add checkboxes for whether or not something is blocked
 | 
			
		||||
        ##idx = 0
 | 
			
		||||
        ##for i in varNameForBlock:
 | 
			
		||||
 | 
			
		||||
        ##    index = self.list.InsertItem(idx, i[0])
 | 
			
		||||
        ##    self.list.SetItem(index, 1, i[1])
 | 
			
		||||
        ##    self.list.SetItem(index, 2, i[2])
 | 
			
		||||
        ##    idx += 1
 | 
			
		||||
 | 
			
		||||
        main_sizer.Add(self.list_ctrl, 0, wx.ALL | wx.EXPAND, 5)        
 | 
			
		||||
        start_button = wx.Button(self, label='Start')
 | 
			
		||||
        start_button.Bind(wx.EVT_BUTTON, self.on_edit)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user