Metadata-Version: 2.1
Name: tkcefview
Version: 2022.1.4
Summary: pywebview inspired tkinter framed cefpython3
Home-page: https://github.com/eseunghwan/tkcefview
Author: eseunghwan
Author-email: shlee0920@naver.com
License: MIT license
Keywords: webview,cef,tkinter
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: <3.8
Description-Content-Type: text/markdown
License-File: LICENSE


<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 >


