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

Uploaded Python 3

File details

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

File metadata

  • Download URL: samsung_widgets-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 86743efcee9bffbb6d9583c2544e28daeeb34f3d2cf1520223f8d48621cb928e
MD5 f8e91fe918b8e55314c19a420657d8c4
BLAKE2b-256 076abe0264704d001b9c14298f01f4db2accdabbd05407975d2429466caa906c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for samsung_widgets-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5d4c4ac306475d37b7b30328c8a3274d6f440ea6a8cda4e5f912ca49a478796a
MD5 243a7f838b4d00407f3deeea2ab12eb3
BLAKE2b-256 531da8e330cd86c05bc9fbb1da9e4d37c5f267c91262464cb5f6ba4f15ede59c

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