angel725
V2EX  ›  问与答

怎么在 mfc 里加入 Python ?

  •  
  •   angel725 · Oct 5, 2018 · 3682 views
    This topic created in 2792 days ago, the information mentioned may be changed or developed.
    python 程序想加个 gui。想试试 mfc 编译后没有别的那乱

    网上搜了一些方法,照着试了试。但都没成功。

    不知道该怎么弄了
    Supplement 1  ·  Oct 6, 2018
    pyqt5 用 pyinstaller 打包后,有很多依赖。文件夹里很乱。
    mfc 会干净些
    6 replies    2018-10-06 18:59:04 +08:00
    scalaer
        1
    scalaer  
       Oct 5, 2018
    python 不是有 gui 库? kivy
    coderluan
        2
    coderluan  
       Oct 6, 2018
    就不该这么弄,没任何必要和好处...... pyqt 了解一下。
    sgissb1
        3
    sgissb1  
       Oct 6, 2018
    没试过,但是见过。把 python 打包成 dll,用 c++去调就好。
    ysc3839
        4
    ysc3839  
       Oct 6, 2018 via Android
    把 Python 嵌入 C++ 程序的话,可以试试 pybind11。
    https://github.com/pybind/pybind11
    felixlong
        5
    felixlong  
       Oct 6, 2018 via Android
    pythonwin 了解一下
    cjw1115
        6
    cjw1115  
       Oct 6, 2018
    CreateProcess (python.exe,xxx.py) ?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   983 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 22:17 · PVG 06:17 · LAX 15:17 · JFK 18:17
    ♥ Do have faith in what you're doing.