This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
########################################################################### | |
## Python code generated with wxFormBuilder (version May 29 2018) | |
## http://www.wxformbuilder.org/ | |
## | |
## PLEASE DO *NOT* EDIT THIS FILE! | |
########################################################################### | |
import wx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<wxFormBuilder_Project> | |
<FileVersion major="1" minor="13" /> | |
<object class="Project" expanded="1"> | |
<property name="class_decoration"></property> | |
<property name="code_generation">Python</property> | |
<property name="disconnect_events">1</property> | |
<property name="disconnect_mode">source_name</property> | |
<property name="disconnect_php_events">0</property> | |
<property name="disconnect_python_events">0</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
########################################################################### | |
## Python code generated with wxFormBuilder (version Nov 6 2017) | |
## http://www.wxformbuilder.org/ | |
## | |
## PLEASE DO *NOT* EDIT THIS FILE! | |
########################################################################### | |
import wx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import configparser | |
import os, sys | |
path = os.path.dirname( sys.argv[0] ) | |
INI = path + "/INI.conf" | |
conf = configparser.SafeConfigParser() | |
conf.read(INI) # 設定ファイルの読み込み | |
# デフォルト設定を記述 conf["セクション名"] = {"キー":"値"} | |
conf["DEFAULT"] = {"host":"localhost", | |
"port":"23", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
<wxFormBuilder_Project> | |
<FileVersion major="1" minor="13" /> | |
<object class="Project" expanded="1"> | |
<property name="class_decoration"></property> | |
<property name="code_generation">Python</property> | |
<property name="disconnect_events">1</property> | |
<property name="disconnect_mode">source_name</property> | |
<property name="disconnect_php_events">0</property> | |
<property name="disconnect_python_events">0</property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
########################################################################### | |
## Python code generated with wxFormBuilder (version Nov 6 2017) | |
## http://www.wxformbuilder.org/ | |
## | |
## PLEASE DO *NOT* EDIT THIS FILE! | |
########################################################################### | |
import wx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import serial | |
# COMポート20でボーレート9600、パリティビットなしで設定 | |
ser = serial.Serial("COM20", baudrate=9600 ,parity=serial.PARITY_NONE) | |
# ノイズデータがある場合があるのでバッファをクリアする | |
ser.reset_input_buffer() | |
# シリアル通信もバイナリ形式で送る | |
ser.write(b"hello world") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Echo server program | |
import socket | |
HOST = '' # Symbolic name meaning all available interfaces | |
PORT = 50007 # Arbitrary non-privileged port | |
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: | |
s.bind((HOST, PORT)) | |
s.listen(1) | |
conn, addr = s.accept() | |
with conn: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import os, sys | |
import wx | |
import cv2 | |
import cvframe | |
import datetime | |
import configparser | |
import numpy as np | |
from threading import Event, Thread | |
import winsound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys | |
import wx | |
import cv2 | |
import cvframe | |
import datetime | |
import configparser | |
import numpy as np | |
from threading import Event, Thread | |
import winsound | |
import re |
NewerOlder