pywebview inspired tkinter framed cefpython3
Project description
tkcefview
pywebview inspired tkinter framed cefpython3
Installation
<# from master branch(git) #>
pip3 install git+https://github.com/eseunghwan/tkcefview.git
<# from pypi #>
pip3 install tkcefview
Basic Usage
import tkcefview as tc
tc.initialize()
tc.create_window("http://www.google.com")
tc.start()
Debug Mode
import tkcefview as tc
tc.initialize()
tc.create_window("[{my_html_file}](http://www.google.com)")
tc.start(debug = True)
Javascript API
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tkcefview-2021.12.25.tar.gz
(123.3 kB
view details)
Built Distribution
File details
Details for the file tkcefview-2021.12.25.tar.gz
.
File metadata
- Download URL: tkcefview-2021.12.25.tar.gz
- Upload date:
- Size: 123.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 196ef7d6334e242de71d164755a333cd2ddc4944a807689b9129610b324d5bc5 |
|
MD5 | 750d1a1deaa86b3a8031631d1df10b53 |
|
BLAKE2b-256 | 6355473ba1cfbd7e5d05644c4448e7dcce92c812670bef64466d875ceabf96b5 |
File details
Details for the file tkcefview-2021.12.25-py3-none-any.whl
.
File metadata
- Download URL: tkcefview-2021.12.25-py3-none-any.whl
- Upload date:
- Size: 123.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25c77357ba763faf3b0917445c18149e2666bf81c5835a78a6832850d69fce4f |
|
MD5 | f984fb026496efb50bd37a8b74998ea4 |
|
BLAKE2b-256 | 6b57e2718572d49dbb30161ffddf817aae9c74c3ea9d1a45a33372d741c7776c |