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.3.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.3.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samsung_widgets-0.3.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.3.0.tar.gz
Algorithm Hash digest
SHA256 590908e140ac5edaf0b7f534055e93630b1ca1e973326691e6187217175c81a2
MD5 ab124f520f77dd08d35e9013dc9312ff
BLAKE2b-256 a81ad66f001195b8ef006349202f5c07c8f8411ac68b89dd7b5001cda4d91179

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for samsung_widgets-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 58afdeef11232722568fc6216419786a3d3c1628be285d8a3a473481f5cab782
MD5 b79ea9e2a76c65d95d59e2309fb1b8d2
BLAKE2b-256 043c17329a285a84c4f3b8ee896f5e34ce1c991dd18bfe6cebf64b5c50fc9cb9

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