Skip to content

Commit

Permalink
blah bkah
Browse files Browse the repository at this point in the history
  • Loading branch information
KorryKatti committed Mar 26, 2024
1 parent 6149dbb commit 5b75f07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import venv
import requests
from PIL import Image
import webview
from io import BytesIO
import markdown
from tkinterhtml import HtmlFrame
Expand Down Expand Up @@ -235,8 +236,15 @@ def handle_app_click(app_id):


# CallBack function for commenu
def commenu_callback():
pass
def commenu_callback(choice):
if choice == "Community":
# Create a GUI window to view the HTML content
webview.create_window('example', 'http://example.com')
webview.start()
elif choice == "Image Board":
pass # Placeholder for Image Board option logic
elif choice == "Thunder Halls":
pass # Placeholder for Thunder Halls option logic

# CallBack function for devmenu
def devmenu_callback():
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ charset-normalizer==3.3.2
customtkinter==5.2.2
darkdetect==0.8.0
idna==3.6
pywebview
Markdown==3.6
packaging==24.0
pillow==10.2.0
Expand Down

0 comments on commit 5b75f07

Please sign in to comment.