Skip to content

Commit 26b374c

Browse files
committed
update
1 parent 758c16c commit 26b374c

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ Download the node.dll add to your project.
3030
Create a simple Window
3131
```bash
3232
from MBPython import miniblink
33-
wke=miniblink.MiniBlink
34-
mb=wke.init()
33+
mbpython=miniblink.Miniblink
34+
mb=mbpython.init('node.dll')
35+
wke=mbpython(mb)
3536
window=wke.window
36-
webview=window.wkeCreateWebWindow(0,0,0,860,760)
37+
webview=window.wkeCreateWebWindow(0,0,0,0,860,760)
3738
window.wkeShowWindow(webview)
3839
window.wkeRunMessageLoop()
3940
```

documents/Api-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@
109109
| Parameter | Type | description
110110
| --- | --- | --- |
111111
| _type | int |0:normal window,1:transparent window,3:embedded window |
112+
| hwnd | int |embedded other window's handle |
112113
| x | int | x axis |
113114
| y | int | y axis |
114115
| width | int | window's width |
115116
| height | int | window's height |
116-
| hwnd | int |embedded other window's handle |
117117
| __Return__ | int | webview |
118118

119119
### wkeShowWindow

documents/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ is being embedded. When creating the browser, the "url" parameter is
3333
specified, which causes the browser to initially navigate to Baidu website. Let's analyze the code from that example:
3434

3535
1. `from MBPython import miniblink` - Import the miniblink module
36-
2. `wke.init()` - Initialize Miniblink. This function must be called
36+
2. `wke.init('node.dll')` - Initialize Miniblink. This function must be called
3737
somewhere in the beginning of your code. It must be called before
3838
any application window is created. It must be called only once
3939
during app's lifetime.
40-
3. `window.wkeCreateWebWindow(0,0,0,860,760)` - Create
40+
3. `window.wkeCreateWebWindow(0,0,0,0,860,760)` - Create
4141
a browser, this function returns a Browser object.
4242
4. `window.wkeRunMessageLoop()` - Run Miniblink message loop. Message loop is a programming construct that waits for and
4343
dispatches events or messages in a program. All desktop GUI

0 commit comments

Comments
 (0)