スタートボタンが入力されると、ユーザーが他のものを選択できないように、コンボボックスをロックしたいと思います。
これは、インターフェイスで監視プロセスを実行しているためです。コンボボックスにはインターフェイス名のリストがあります。モニターを開始したら、停止するまでユーザーに他のインターフェイスカードを選択させたくありません。
とにかくそれをすることはありますか?
selectedInterface = self.interfaces_cblist.GetValue()
self.selectInterfaceStr = str(selectedInterface)
if len(selectedInterface) == 0:
noSelect_error = wx.MessageDialog(None,"Please select an interface","",wx.OK|wx.ICON_ERROR)
noSelect_error.ShowModal()
else:
monitorStarted = wx.MessageDialog(None,"Monitor on %s started"%self.selectInterfaceStr,"",wx.OK|wx.ICON_ERROR)
monitorStarted.ShowModal()
self.monitorInterface_button.Disable()
self.abortValue = 1;
self.camDetect = multiprocessing.Process(target=self.camtableDetection,args=(self.selectInterfaceStr,))
self.dhcpDetect = multiprocessing.Process(target=self.dhcpexhaustion,args=(self.selectInterfaceStr,))
self.camDetect.start()
self.dhcpDetect.start()