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. Add a SamsungCheckBox()

def checkbox_action(state): print("Checked:", state)

checkbox = SamsungCheckBox(root, text="Enable Wi-Fi", command=checkbox_action) checkbox.pack(pady=20)

8. Add a SamsungLable()

label = SamsungLabel(root, text="Samsung UI Label", size=16) label.pack(pady=10)

9. 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.2.0.tar.gz (3.2 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.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samsung_widgets-0.2.0.tar.gz
  • Upload date:
  • Size: 3.2 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.2.0.tar.gz
Algorithm Hash digest
SHA256 638c696fc8ce58114c4d58e15959c756c1404815febdc704db16fbac096c958c
MD5 a9750369e5289f0034520e367e204ac5
BLAKE2b-256 973c92047e16d4484e8720ef5018d7bab79cc59ec662afc813292311faf3a8e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for samsung_widgets-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b9f9690713da7e3cd1fe895ef0dbe53e76b12924b66118bd84c983db628c435
MD5 52f205d31980224ee35d2fdc3f790953
BLAKE2b-256 9947ce51d1b012c2455c86865e6c6a20881f74516e89d245b24f02da67718c9b

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