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.1.1.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.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: samsung_widgets-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 d364a3a2713cf9f0f10c8a182922179794c5e0c72a3e3c546f159897d8eecde0
MD5 59a7a485300c4cf82ca04c830a1ba976
BLAKE2b-256 e2c380738012251c34d1fe8fc0aebd87a4b778358aae81ca7c71965ab548d054

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for samsung_widgets-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eee575083195e5095d3dcb60ecd5bdc5e9d85763cfbe2e473a4ee35cf5dc0b0a
MD5 47a92be29029921a801f96975429b21c
BLAKE2b-256 9d780a9341ce9819f3fb30ddb1849b422589ef977675c8f8eb95b8258c32e479

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