A Python package has a custom messagebox using Customtkinter and the Fredoka One font.
Project description
Python Custom MessageBox using Customtkinter
Description:
This Python package has a custom messagebox using Customtkinter and the Fredoka One font.
What's included?
- Fredoka One font
- 5 custom messageboxes
- A messagebox with an OK button
- A messagebox with OK/Cancel buttons and a scroll bar
- A messagebox with Yes/No buttons
- A messagebox with Yes/No/Cancel buttons
- A messagebox with a textbox and OK/Cancel buttons
Installation:
pip install tkcustomessagebox
After running pip, make sure your Fredoka One font it is in the current working directory, or download it from https://fonts.google.com/selection.
After downloading, extract the file and choose Fredoka-Bold.ttf
Move Fredoka-Bold.ttf (Fredoka-Bold.ttf is the individual filename) only the file to the current working directory you host your project.
If you don't download the font, a FontError will occur.
Messagebox sizing options (in centermsgboxwin function):
| Function Parameter Name | Definition |
|---|---|
win = CTkToplevel |
The master which is defaulted to CTkToplevel. |
width = int |
The width of the custom messagebox. (defaulted to 1000). |
height = int |
The height of the custom messagebox. (defaulted to 500). |
Messagebox customization options (in function parameter):
| Function Parameter Name | Definition |
|---|---|
msgboxtitle = str |
The title of your messagebox. |
titlemsg = str (included only in customMsgBoxWithScrBar function) |
The title message inside of the messagebox above the scroll bar. |
textmsg / textmsgquestion = str |
The text message inside of your messagebox. |
bg_color = str |
The background color of your messagebox. |
btn_fg_color = str |
The background color of your buttons (inside). |
btn_text_color = str |
The text color inside your buttons. |
text_color = str |
The text color of titlemsg and textmsg / textmsgquestion. |
error = bool (included only in CustomMsgBox function) |
If True, a Windows error sound will play; if False, the default beep sound will play. |
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tkcustomessagebox-2025.7.9.tar.gz.
File metadata
- Download URL: tkcustomessagebox-2025.7.9.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2404975a2ba3e8bef0e045b3f1279222790a411bcd8d1017cf92fbf7db0d67ab
|
|
| MD5 |
9b3dea972d5c136b4cab956ab4a6af15
|
|
| BLAKE2b-256 |
da34471094787a79e410da2ea05c6441831e86615f40935875651a382edd7a7e
|
File details
Details for the file tkcustomessagebox-2025.7.9-py3-none-any.whl.
File metadata
- Download URL: tkcustomessagebox-2025.7.9-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e5572b1dc97cb86a8ed37daf4dae6e0c60969def6ffd22af79ce255905b8ac5
|
|
| MD5 |
a8f4eb889b5329b00b7b00eede276561
|
|
| BLAKE2b-256 |
d5b0d868a7d3a471477241ed81abc90d1310785b2c2a3bf7243320029a478011
|