Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tkcefview-2022.1.4.tar.gz (123.4 kB view hashes)

Uploaded Source

Built Distribution

tkcefview-2022.1.4-py3-none-any.whl (123.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page