A package containing more widgets for customtkinter
Project description
MoreCustomTkinterWidgets
By Fastattack, 2024
[!NOTE] The package is cross-platform, but the Message class will only be able to create sounds if the winsound module is installed (only available on windows)
Introduction
This module contains more, easy to use, customtkinter widgets.
This file will present you the best ones.
See ^1 for the mentions.
How to install
To install the package, you should use pip. Install the package with the following command: pip install MoreCustomTkinterWidgets
Widgets
SmoothFrame
This widget is a normal frame but with one upgrade: animations !
If you want to move the frame from one grid cell to another or one placing coordinates to another, you can use smooth_grid or smooth_place to move the frame to the given spot in a given time.
Inside the frame, you can still put other widgets
FileExplorer
This class is used to navigate and select files directly in the interface (not a TopLevel).
It also comes with a class to ask for a file in a TopLevel (FileDialog).
The FileDialog class comes with prebuilt functions to ask for files more easily: askdir, askfile
AnimatedImage
This class is used like CTkImage
but allows to run an animation if an image sequence (FLI/FLC, GIF) was given.
You can start the animation, and it will run until you call the method to stop it, or you can run it for a given time.
Separator
This widget is used just like the separator in classic tkinter: it allows to separate other widgets more clearly (draws a line to separate widgets).
BetterCTkImage
This class is used like CTkImage, but you can round the images corners !
You can configure the radius of corner rounding by using BetterCTkImage.configure()
and the image will update automatically everywhere it is used.
Selector
This class is used to select values in a list.
You give a list of values to the widget, and it creates a scrollable frame containing multiple checkboxes. When you want to retrieve the entries, you just call the get_selections method.
Askdialog and Askvalue
Those two classes are TopLevels used to ask values (string / integer / float / boolean) to the user.
They come with functions to use them more easily: askstring, askinteger, askfloat, askyesno
Message
This class is used to display messages (TopLevel) to inform the user about errors / what is happening in the app.
It comes with prebuilt functions to use it more easily: showinfo, showwarning, showerror
These functions existed in normal tkinter but didn't go in customtkinter.
Used modules: customtkinter, Pillow
Used services for README statistics: [shields.io](https://img.shields.io), [tokei.rs](https://github.com/XAMPPRocky/tokei), [pepy.tech](https://github.com/psincraian/pepy)
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
Built Distribution
File details
Details for the file morecustomtkinterwidgets-4.0.1.tar.gz
.
File metadata
- Download URL: morecustomtkinterwidgets-4.0.1.tar.gz
- Upload date:
- Size: 79.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dedf28ec4da397963a44fe977408ce67c85db586f0ffae5968ed436b9a697b02 |
|
MD5 | 09ad00178e3c97a1694003ad5afdf9d2 |
|
BLAKE2b-256 | 2f6aff9127637a7157b6fec65401c88b69720933ed42cdc14e491f463a97dc86 |
File details
Details for the file MoreCustomTkinterWidgets-4.0.1-py3-none-any.whl
.
File metadata
- Download URL: MoreCustomTkinterWidgets-4.0.1-py3-none-any.whl
- Upload date:
- Size: 82.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e747fbf0c4cde4ff6bed53e939a8ca41d9b2078f870d6fbe6443a5eef88cae5d |
|
MD5 | d4f0fdb4055137745ce89af99dcbe9fe |
|
BLAKE2b-256 | cd03cbc32ac796b08fb31912e902af0784f64cdc6e70ec66ef489b78e06b4cf2 |