PyWin32 데모 폴더에서 win32gui_dialog.py 샘플은 클래식 윈도우 컨트롤을 사용합니다. Windows Vista 주제별 단추도 PyWin32를 사용하여 표시 할 수 있습니까? 그렇다면 어떻게해야합니까? 차이가 있다면 ActivePython 3.1을 사용하고 있습니다.PyWin32 : Windows 클래식 테마
샘플 :
PyWin32 http://imagespark.net/files/old.png
PyWin32 데모 폴더에서 win32gui_dialog.py 샘플은 클래식 윈도우 컨트롤을 사용합니다. Windows Vista 주제별 단추도 PyWin32를 사용하여 표시 할 수 있습니까? 그렇다면 어떻게해야합니까? 차이가 있다면 ActivePython 3.1을 사용하고 있습니다.PyWin32 : Windows 클래식 테마
샘플 :
PyWin32 http://imagespark.net/files/old.png
짧은 답변 : 일제히 YES.
이전에 수행 한 것을 보았 기 때문에 가능하다고 알고 있습니다. 그러나 그것이 어떻게 행해지는지에 관해 나는 완전히 확신하지 않는다.
최소한, IronPython을 사용하고 Windows의 내장 .NET 프레임 워크를 사용할 수 있습니다.
ComCtl32.dll의 올바른 버전을 지정하는 side-by-side 매니페스트를 Python 인터프리터에 추가해야합니다. 다행히 인터프리터 실행 파일 자체를 변경할 필요가 없습니다.
python.exe
을 포함하는 디렉토리에 python.exe.manifest
이라는 파일을 만듭니다.<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity processorArchitecture="x86" version="5.1.0.0" type="win32" name="python.exe"/> <description>Python</description> <dependency> <dependentAssembly> <assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" publicKeyToken="6595b64144ccf1df" language="*" processorArchitecture="x86"/> </dependentAssembly> </dependency> </assembly>
당신은 너무 pythonw.exe.manifest
에 python.exe.manifest
를 복사 할 수 있습니다.
모듈 'win32gui
'대신 'winxpgui
'모듈을 사용해 보셨습니까?
'winvistagui
'또는 'win7gui
'모듈이 있는지 확실하지 않지만 'winxpgui
'모듈이 존재하며 작동하지 않을 수 있습니다. 매니페스트가 포함되어 있습니다.
winxp를 시도했지만 작동하지 않았습니다. – Reshure
관련 관심 분야 : 새 'ttk'모듈은 Windows Vista/7 용 거의 기본 테마를 제공합니다 - http://docs.python.org/dev/library/ttk.html ... 스크린 샷 : http : //tkdocs.com/tutorial –