← Winnitude! Search  ·  Reader Mode (1738 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 52 LINKS

GitHub - lochen88/MBPython: MBPython is an open source project founded by lochen to provide Python bindings for the miniblink. python miniblink

Repository navigation

MBPython
Public

About

MBPython is an open source project founded by lochen to provide Python bindings for the miniblink. python miniblink

Topics

cef miniblink python-gui python-html python-miniblink

Resources

Readme Activity

Stars

62 stars

Watchers

2 watching

Forks

12 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


73 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
MBPython MBPython    
dist dist    
documents documents    
front_end front_end    
plugins plugins    
tests tests    
README.md README.md    
poetry.lock poetry.lock    
pyproject.toml pyproject.toml    

Repository files navigation

MBPython

Miniblink is a lighter browser widget base on chromium, just one file, faster browser kernel of blink to integrate HTML UI in your app.

MBPython is an open source project founded by lochen to provide python bindings for the Miniblink. Examples of embedding Miniblink browser are available for many popular GUI toolkits including: wxPython, PyQt, PySide, Kivy, Panda3D, PyGTK, PyGObject, PyGame/PyOpenGL and PyWin32.

By using C interface, you can create a browser just some line code. There are many use cases for MBPython. You can embed a web browser control based on MBPython with great HTML 5 support. You can use it to create a HTML 5 based GUI in an application, this can act as a replacement for standard GUI toolkits like wxWidgets, Qt or GTK. You can render web content off-screen in application that use custom drawing frameworks. You can use it for automated testing of existing applications. You can use it for web scraping or as a web crawler, or other kind of internet bots.

Latest release

OS Py3 32bit 64bit Requirements
Windows 3.6+ Yes Yes Windows 7+

Installation

pip install --user MBPython

How to use

Download the node.dll add to your project.

The free version can only be called on the UI thread.

Create a simple Window

from MBPython import miniblink
mbpython=miniblink.Miniblink
mb=mbpython.init('node.dll')
wke=mbpython(mb)
window=wke.window
webview=window.wkeCreateWebWindow(0,0,0,0,860,760)
window.wkeShowWindow(webview)
window.wkeRunMessageLoop()

PyInstaller

pyinstall xxx.py --noconsole

Examples

See the tests folder

Tutorial

See the documents folder

What about CEF?

In short: I do not like CEF, it is too big, comes with too many dependency resolution library, and I think we can make a better and more intuitive one. Here are a few things that I don't like.

Resources

if you have any questions,you can contact me,and i will try my best to help you If you would like to support general MBPython development efforts by making a donation then please scan to pay by the alipay

About

MBPython is an open source project founded by lochen to provide Python bindings for the miniblink. python miniblink

Topics

cef miniblink python-gui python-html python-miniblink

Resources

Readme Activity

Stars

62 stars

Watchers

2 watching

Forks

12 forks Report repository

Used by

Contributors

Languages