Giter Club home page Giter Club logo

Comments (8)

r0x0r avatar r0x0r commented on May 18, 2024 1

Pythonnet does not require pywin32 or comtypes. However, if you freeze it both pywin32 and pythonnet libraries will be bundled provided you have them installed.
There is no difference from a developer point of view, which implementation you use, unless you are gonna target a really old Windows version that does not have .net included. Both use MSHTML in the end. The original motivation for the net implementation was Edge support, but as it turned out Edge is supported only in UWP apps. One can hope that Microsoft will backport Edge support to winforms. Comtypes compatibility problems with Python 3.5 until recently, so getting rid of this dependency was another factor for an alternative implementation
The net version is quite recent and is not tested properly. The application icon is missing or freezing with pyinstaller does not work out of the box, for instance. However, given how much easier is development is with .net comparing to win32, I am going to focus on the former. For example currently I have no plans for implementing load_html function for win32
The net implementation uses Windows Forms, not WPF by the way. I see no point in WPF support. UWP would be nice, but it is not possible at the moment.

To summarize all this, you can target either one, but the development of pywebview will be focused around .net in the future. I would love to hear about your experience with the net implementation.

from pywebview.

den-run-ai avatar den-run-ai commented on May 18, 2024

pythonnet can also target WPF

from pywebview.

AstraLuma avatar AstraLuma commented on May 18, 2024

Does that make a difference, given that all it does is load MSHTML?

from pywebview.

AstraLuma avatar AstraLuma commented on May 18, 2024

Oh, then there's another bug: winforms.py imports a few things from win32.py and (indirectly) makes use of both pywin32 and comtypes. This does not look fixed on master.

from pywebview.

r0x0r avatar r0x0r commented on May 18, 2024

True, winforms.py imports a few things from win32.py and win_gen.py, but
they are no dependant on pywin32 or comtypes. What indirect use do you mean?

On 29 Oct 2016 12:53 a.m., "Jamie Bliss" [email protected] wrote:

Oh, then there's another bug: winforms.py imports a few things from win32.py
and (indirectly) makes use of both pywin32 and comtypes. This does not look
fixed on master.


You are receiving this because you commented.

Reply to this email directly, view it on GitHub
#60 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABelWSWdH9NzCdmVnY590JWQvwO3w-sqks5q4m7ogaJpZM4Kju0x
.

from pywebview.

r0x0r avatar r0x0r commented on May 18, 2024

My bad, I see the bug now. I will refactor the code and get rid of unnecessary dependencies.

from pywebview.

r0x0r avatar r0x0r commented on May 18, 2024

Fixed in master. Winforms should not have any pywin32 or comtypes dependencies now.

from pywebview.

r0x0r avatar r0x0r commented on May 18, 2024

Fixed in 1.3

from pywebview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.