{"id":25005490,"url":"https://github.com/proxlight/browser","last_synced_at":"2025-03-29T23:15:47.852Z","repository":{"id":249502543,"uuid":"831695484","full_name":"Proxlight/Browser","owner":"Proxlight","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-22T11:15:53.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T00:41:22.268Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Proxlight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-21T10:59:50.000Z","updated_at":"2024-07-22T11:15:56.000Z","dependencies_parsed_at":"2025-02-05T00:40:28.126Z","dependency_job_id":"e5921bcf-1319-47ca-9e29-c9e79de1aff5","html_url":"https://github.com/Proxlight/Browser","commit_stats":null,"previous_names":["proxlight/browser"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxlight%2FBrowser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxlight%2FBrowser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxlight%2FBrowser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Proxlight%2FBrowser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Proxlight","download_url":"https://codeload.github.com/Proxlight/Browser/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246254147,"owners_count":20747949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-05T00:40:23.794Z","updated_at":"2025-03-29T23:15:47.830Z","avatar_url":"https://github.com/Proxlight.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CustomTkinter GUI Browser\n\nA simple yet beautiful GUI browser built using Python and customtkinter. This browser includes a navigation bar for entering URLs, back and forward buttons, and a display area for the web pages.\n\n## Features\n\n- **CustomTkinter UI**: A modern, customizable look and feel.\n- **Navigation**: Includes back, forward, and URL entry functionalities.\n- **HTML Rendering**: Displays web content using `tkhtmlview`.\n\n## Requirements\n\n- Python 3.6 or higher\n- `customtkinter`\n- `tkhtmlview`\n\n## Installation\n\n1. Clone the repository:\n\n    ```bash\n    git clone https://github.com/yourusername/customtkinter-browser.git\n    cd customtkinter-browser\n    ```\n\n2. Install the required packages:\n\n    ```bash\n    pip install customtkinter tkhtmlview\n    ```\n\n## Usage\n\nRun the following command to start the browser:\n\n```bash\npython browser.py\n```\n\n## Code Overview\n\n### Importing Libraries\n\nWe start by importing the necessary libraries.\n\n```python\nimport tkinter as tk\nfrom tkinter import ttk\nimport customtkinter as ctk\nfrom tkhtmlview import HTMLLabel\n```\n\n### Setting Up the Main Window\n\nInitialize the main application window.\n\n```python\nroot = ctk.CTk()\nroot.title(\"CustomTkinter Browser\")\nroot.geometry(\"800x600\")\n```\n\n### Navigation Functions\n\nDefine functions to handle URL navigation, back, and forward actions.\n\n```python\ndef navigate():\n    url = url_entry.get()\n    if not url.startswith(\"http://\") and not url.startswith(\"https://\"):\n        url = \"http://\" + url\n    web_label.set_html('\u003ch1\u003eLoading...\u003c/h1\u003e')\n    web_label.set_url(url)\n\ndef go_back():\n    try:\n        web_label.web.navigate_back()\n    except Exception as e:\n        print(f\"Error: {e}\")\n\ndef go_forward():\n    try:\n        web_label.web.navigate_forward()\n    except Exception as e:\n        print(f\"Error: {e}\")\n```\n\n### Building the User Interface\n\nCreate the entry widget for the URL, navigation buttons, and the HTML label for displaying web content.\n\n```python\nurl_entry = ctk.CTkEntry(root, width=600, placeholder_text=\"Enter URL here\")\nurl_entry.pack(pady=10)\n\nnav_frame = ctk.CTkFrame(root)\nnav_frame.pack(pady=10)\n\nback_button = ctk.CTkButton(nav_frame, text=\"Back\", command=go_back)\nback_button.pack(side=tk.LEFT, padx=10)\n\nforward_button = ctk.CTkButton(nav_frame, text=\"Forward\", command=go_forward)\nforward_button.pack(side=tk.LEFT, padx=10)\n\ngo_button = ctk.CTkButton(nav_frame, text=\"Go\", command=navigate)\ngo_button.pack(side=tk.LEFT, padx=10)\n\nweb_label = HTMLLabel(root, html='\u003ch1\u003eWelcome to CustomTkinter Browser!\u003c/h1\u003e')\nweb_label.pack(fill=tk.BOTH, expand=True)\n```\n\n### Running the Application\n\nStart the main event loop to run the application.\n\n```python\nroot.mainloop()\n```\n\n## Contributing\n\nWe welcome contributions! Please fork this repository and submit pull requests.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Author\n\n- **Pratyush Mishra** - Proxlight (https://github.com/Proxlight)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproxlight%2Fbrowser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproxlight%2Fbrowser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproxlight%2Fbrowser/lists"}