webserver.py----------------------------------------------------------------------------------- from BaseHTTPServer import BaseHTTPRequestHandler,HTTPServer,socket import sys,os PORT_NUMBER = 8080 def getMacAddress(): if sys.platform=='win32': for line in os.popen("ipconfig /all"): print(line.lstrip())#물리적 주소 or Physical address if line.lstrip().startswith('물'): mac = line.split(':')[1].strip()...
파이썬에서 마우스를 컨트롤(클릭, 이동)하고 싶으면.. pywin32를 이용하면 되겠다. >>import win32api, win32con def click(x,y): win32api.SetCursorPos((x,y)) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0) win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0) >>click(100,100) 자동 클릭 같은거 맹글때 유용하겠네요. 원본자료 : http://stackoverflow.com/questions/1181464/controlling-mouse-with-python
Eclipse Python PyQt4 py2exe를 이용하여 Gui 프로그램을 작성하다 발견.. 개발중에 바로 실행하면 모든 이미지가 잘 나온다.. 그런데 py2exe로 wrapping 해서 실행하면 아래와 같이 깨짐.. setup.py data_files항목에 아래를 추가하면 정상 표출된다. (결국 dll이 동작안해서 그렇다. 기본적으로 png는 지원된다.) ('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qgif4.dll']), ('imageformats', ['C:\Python27\Lib\site-packages\PyQt4\plugins\imageformats\qico4.dll']), ('imageformats'..
- Total
- Today
- Yesterday
- 소프트웨어대회
- 자유한국당
- 타임스탬프
- WSS
- stamp
- 파이썬
- qwebview
- PyQt
- signtool
- 코드스쿨
- 리눅스
- 사용법
- 안드로이드 화면 밝기 조절
- 온라인저지
- 서버주소
- Android
- setup.py
- ORACLE 프로시져생성
- 더불어 민주당
- 디지털서명
- IT-PMP
- .svn
- websocket
- 파이썬프레임워크
- Python
- 프로젝트관리전문가
- 명령어
- 관련사이트
- 프로그래밍대회
- SW대회
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |