def OnListEvent(self, id, code):
		if code == win32con.LBN_SELCHANGE or code == win32con.LBN_SELCANCEL:
			pos = self.listCtrl.GetCurSel()
			if 0 >= pos:
				data = self.data[self.listCtrl.GetItemData(pos)][2]
				canstart = (self.data[self.listCtrl.GetItemData(pos)][1] == win32service.SERVICE_STOPPED)
			else:
				data = 0
				canstart = 0
			self.GetDlgItem(self.IDC_START).EnableWindow(canstart)
			self.GetDlgItem(self.IDC_STOP).EnableWindow(data & win32service.SERVICE_ACCEPT_STOP)
			self.GetDlgItem(self.IDC_PAUSE).EnableWindow(data & win32service.SERVICE_ACCEPT_PAUSE_CONTINUE)
			self.GetDlgItem(self.IDC_CONTINUE).EnableWindow(data & win32service.SERVICE_ACCEPT_PAUSE_CONTINUE)
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/win32/scripts/ControlService.py/ServiceDlg.OnListEvent/swapped operands of `>=`