def _recv_start(self):
    logger = LogController.LogController()
    self.monitor_start()
    proto = RecvParams.proto.get()
    ip = RecvParams.ip.get()
    port = RecvParams.port.get()
    if (proto == 0):
        logger.insert('TCPパケット受信を開始します({}:{})'.format(ip, port))
        self.recv_tcp_start()
    elif (proto == 1):
        logger.insert('UDPパケット受信を開始します({}:{})'.format(ip, port))
        self.recv_udp_start()
    MonitorParams.recv_btn.set('受信停止')
    for widget in self.widgets.values():
        widget.state(['disabled'])
    self.stat = 1
def _recv_start(self):
    logger = LogController.LogController()
    self.monitor_start()
    proto = RecvParams.proto.get()
    ip = RecvParams.ip.get()
    port = RecvParams.port.get()
    if (proto == 0):
        logger.insert('TCPパケット受信を開始します({}:{})'.format(ip, port))
        self.recv_tcp_start()
    elif (proto == 1):
        logger.insert('UDPパケット受信を開始します({}:{})'.format(ip, port))
        self.recv_udp_start()
    MonitorParams.recv_btn.set('受信停止')
    for widget in self.widgets.values():
        widget.state(['disabled'])
    self.stat = 1