From e0f4c2085bbeea075ed718c4ccd5731482a7c7a4 Mon Sep 17 00:00:00 2001 From: korrykatti Date: Wed, 27 Mar 2024 09:26:10 +0530 Subject: [PATCH] i give up on embeding with ctk , tkinter is now my best friend --- README.md | 5 +++++ appfiles/comm/community.py | 13 +++++++++++++ requirements.txt | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 appfiles/comm/community.py diff --git a/README.md b/README.md index 22a01ff..6bbf6cd 100644 --- a/README.md +++ b/README.md @@ -13,3 +13,8 @@ then activate `myenv` virtual env depending on your os ,for linux it is ```sourc https://github.com/KorryKatti/Thunder/ also before running anything run ```pip install -r requirements.txt``` + + +arch linux + +yay -S python-gobject python-gobject-cairo gtk3 webkit2gtk diff --git a/appfiles/comm/community.py b/appfiles/comm/community.py new file mode 100644 index 0000000..e770bf8 --- /dev/null +++ b/appfiles/comm/community.py @@ -0,0 +1,13 @@ +# Import tkinter and webview libraries +from tkinter import * +import webview + +# define an instance of tkinter +tk = Tk() + +# size of the window where we show our website +tk.geometry("800x450") + +# Open website +webview.create_window('Geeks for Geeks', 'https://geeksforgeeks.org') +webview.start() diff --git a/requirements.txt b/requirements.txt index 0425cdc..e0fd2f9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,3 +13,6 @@ requests==2.31.0 soupsieve==2.5 tkinterhtml urllib3==2.2.1 +cefpython3 +pygtk +webkit