semvec/pypi-packages huggingface dataset:
tkcefview 2022.1.4
pywebview inspired tkinter framed cefpython3
License: MIT license
Requires Python: <3.8
Keywords: webview,cef,tkinter


<hr>
<p align="center">
<img src="https://github.com/eseunghwan/tkcefview/blob/master/tkcefview/assets/tkcefview.png?raw=true" width=150 /><br>
<font size="7">tkcefview</font>
</p>
<hr>
<p align="center"><font size="5">pywebview inspired tkinter framed cefpython3</font></p>

<br><br><br>
## Installation
```powershell
<# from master branch(git) #>
pip3 install git+https://github.com/eseunghwan/tkcefview.git
<# from pypi #>
pip3 install tkcefview
```
<img src="https://github.com/eseunghwan/tkcefview/blob/master/tests/installation.png?raw=true" width=600 >

<br><br>

## Basic Usage
```python
import tkcefview as tc

tc.initialize()
tc.create_window("http://www.google.com")
tc.start()
```
<img src="https://github.com/eseunghwan/tkcefview/blob/master/tests/base_test_img.png?raw=true" width=500 >

<br><br>

## Debug Mode
```python
import tkcefview as tc

tc.initialize()
tc.create_window("[{my_html_file}](http://www.google.com)")
tc.start(debug = True)
```
<img src="https://github.com/eseunghwan/tkcefview/blob/master/tests/debug_test_img.png?raw=true" width=500 >

<br><br>

## Javascript API
```python
import tkcefview as tc

class MyAPI(tc.BrowserAPI):
    # properties, methods, and so on
    count = 0

    def count_up(self):
        self.count += 1
        self.update_count()

    def count_down(self):
        if self.count > 0:
            self.count -= 1
            self.update_count()

    def update_count(self):
        self.execute_function("update_count", self.count)

tc.initialize()
tc.create_window("{my_html_file}", js_api = MyAPI)
tc.start()
```
<img src="https://github.com/eseunghwan/tkcefview/blob/master/tests/jsapi_test_img.png?raw=true" width=500 >