|
1 | 1 | # MBPython |
| 2 | +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. |
2 | 3 |
|
3 | | -MBPython是免费版miniblink的Python封装, 龙泉寺扫地僧开发的miniblink, 地址: |
4 | | -https://github.com/weolar/miniblink49 |
| 4 | +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. |
| 5 | + |
| 6 | +### Latest release |
| 7 | + |
| 8 | +OS | Py3 | 32bit | 64bit | Requirements |
| 9 | +--- | --- | --- | --- | --- |
| 10 | +Windows | 3.6+ | Yes | Yes | Windows 7+ |
| 11 | + |
| 12 | +### Installation |
| 13 | + |
| 14 | +```bash |
| 15 | +pip install --user MBPython |
| 16 | +``` |
| 17 | + |
| 18 | +### How to use |
| 19 | +Must create a new file named config.py like this demo →→→ https://github.com/lochen88/MBPython/blob/master/tests/config.py |
| 20 | +created |
| 21 | +```bash |
| 22 | +from MBPython import miniblink |
| 23 | +wke=miniblink.MiniBlink |
| 24 | +mb=wke.init() |
| 25 | +window=wke.window |
| 26 | +webview=window.wkeCreateWebWindow(0,0,0,860,760) |
| 27 | +window.wkeShowWindow(webview) |
| 28 | +window.wkeRunMessageLoop() |
| 29 | +``` |
| 30 | +### PyInstaller |
| 31 | + |
| 32 | +```bash |
| 33 | +pyinstall xxx.py --noconsole |
| 34 | +``` |
| 35 | + |
| 36 | +### Examples |
| 37 | + |
| 38 | +See the [tests](#https://github.com/lochen88/MBPython/tree/master/tests) |
| 39 | + |
| 40 | +### Documents |
| 41 | + |
| 42 | +See the [documents](#https://github.com/lochen88/MBPython/tree/master/documents) |
| 43 | + |
| 44 | +### What about CEF? |
| 45 | + |
| 46 | +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. |
| 47 | + |
| 48 | +### Resources |
| 49 | + |
| 50 | +<table border="0"> |
| 51 | + <tr> |
| 52 | + <td width="50%" valign="top"> |
| 53 | + <p align="center"> |
| 54 | + <a href="tencent://message/?uin=1191826896&Site=Sambow&Menu=yes"> |
| 55 | + <img src="https://s1.ax1x.com/2020/10/15/0onOBV.jpg"> |
| 56 | + </a> |
| 57 | + </p> |
| 58 | + if you have any questions,you can contact me,and i will try my best to help you |
| 59 | + </td> |
| 60 | + <td width="50%" valign="top"> |
| 61 | + <p align="center"> |
| 62 | + <img src="https://s1.ax1x.com/2020/10/15/0onIhQ.jpg"> |
| 63 | + </p> |
| 64 | + If you would like to support general MBPython development efforts by making a donation then please scan to pay by the alipay |
| 65 | + </td> |
| 66 | + </tr> |
| 67 | +</table> |
| 68 | + |
| 69 | +* [Project Website](https://github.com/lochen88/MBPython) |
| 70 | +* [Issue Tracker](https://github.com/lochen88/MBPython/issues) |
| 71 | +* [Official Website](https://weolar.github.io/miniblink/) |
| 72 | +* [QQ Group-198671899](https://qm.qq.com/cgi-bin/qm/qr?k=JipVq9gRdpPf4dqjPK9bkL99u-_BLwZz&jump_from=webapi) |
5 | 73 |
|
6 | | -免费版不支持多线程调用 |
7 | 74 |
|
8 | | -更多信息查看miniblink全新官网:https://weolar.github.io/miniblink/ |
|
0 commit comments