Skip to main content

Samsung-themed widgets for CustomTkinter

Project description

1. Set up your environment

pip install customtkinter

or

pip install customtkinter --break-system-packages

2. Basic imports and setup

import customtkinter as ctk from samsung_widgets import SamsungToggle, SamsungSlider, SamsungEntry, SamsungButton

ctk.set_appearance_mode("light") # Light mode ctk.set_default_color_theme("blue") # Samsung-like blue accents

root = ctk.CTk() root.geometry("400x500") root.title("Samsung Widgets Demo")

3. Add a SamsungEntry(Text Input)

entry = SamsungEntry(root, placeholder="Enter your name...") entry.pack(pady=20)

def show_entry_text(): print("Text in entry:", entry.get())

button_entry = SamsungButton(root, text="Show Text", command=show_entry_text) button_entry.pack(pady=10)

4. Add a SamsungToggle

def toggle_action(state): print("Toggle state:", state)

toggle = SamsungToggle(root, command=toggle_action) toggle.pack(pady=20)

5. Add a SamsungSlider

def slider_action(value): print("Slider value:", int(value))

slider = SamsungSlider(root, from_=0, to=100, command=slider_action, initial=50) slider.pack(pady=20)

6. Add a SamsungButton

def button_click(): print("Button clicked!")

button = SamsungButton(root, text="Click Me", command=button_click) button.pack(pady=20)

7. Runthe application

root.mainloop()

Tips

entry.get() # Text input toggle.state # True/False slider.value # Current slider value

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

samsung_widgets-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

samsung_widgets-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file samsung_widgets-0.1.0.tar.gz.

File metadata

  • Download URL: samsung_widgets-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.2

File hashes

Hashes for samsung_widgets-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9c211729d25155ccbb89fec8285bc77042a03b89b9badcd7b103f30673e83def
MD5 4c35039b3a11e3803df1b2ffbaf996bd
BLAKE2b-256 0a565457d6371373e94131741d901f0c2f9e8b147ec2352653f1f64a236e6465

See more details on using hashes here.

File details

Details for the file samsung_widgets-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for samsung_widgets-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2fc459d9a43bdb7554c2dda5fa1e44b6b9025af344c7b898555cf53099e8bf01
MD5 051ff4ecd8b2db40eb5b48659ce72736
BLAKE2b-256 c75db47d241365256c02fa8cd1af404a389343efbe933baa6148d3ae2fddfc47

See more details on using hashes here.

Supported by

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