Pretty tkinter widgets
Project description
AwesomeTkinter offers some pretty tkinter widgets
These widgets are just a pure tkinter widgets with custom styles.
current available widgets:
- radial progressbar (flat or 3d).
- scrollable frames,
- 3d buttons,
- 3d frames.
- Scrollable text widget
- radiobutton with better indicator/check mark quality.
- simple scrollbar "without arrow heads"
new widgets are coming soon
Screenshots:
Applications examples that uses AwesomeTkinter:
Installation:
python pip install awesometkinter
on windows
python3 pip install awesometkinter
on linux
for quick test:
import awesometkinter as atk
atk.main()
or from terminal:
python3 -m awesometkinter
or just
awesometkinter
this will display a test window
Requirements:
- minimum python version 3.6
- tkinter
- pillow
Limitations:
- tkinter theme should be 'default', 'alt', or 'classic' for things to work fine on windows, so after creating your root you should change theme like example below
Example:
import tkinter as tk
from tkinter import ttk
import awesometkinter as atk
# our root
root = tk.Tk()
root.config(background=atk.DEFAULT_COLOR)
# select tkinter theme required for things to be right on windows,
# only 'alt', 'default', or 'classic' can work fine on windows 10
s = ttk.Style()
s.theme_use('default')
# 3d frame
f1 = atk.Frame3d(root)
f1.pack(side='left', expand=True, fill='both', padx=3, pady=3)
# 3d progressbar
bar = atk.RadialProgressbar3d(f1, fg='cyan', size=120)
bar.pack(padx=20, pady=20)
bar.start()
# 3d button
atk.Button3d(f1, text='3D Button').pack(pady=10)
f2 = atk.Frame3d(root)
f2.pack(side='left', expand=True, fill='both', padx=3, pady=3)
# flat radial progressbar
bar = atk.RadialProgressbar(f2, fg='green')
bar.pack(padx=30, pady=30)
bar.start()
atk.Button3d(f2, text='Pressed Button').pack(pady=10)
root.mainloop()
also, you can use a lot of useful functions that manipulate images, e.g. to create a tkinter PhotoImage from a file but want to change its size and color:
img = atk.create_image(fp='path to my image file', color='red', size=(150, 100))
Documentations:
TBA
Author:
Mahmoud Elshahat
2020
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
AwesomeTkinter-2020.12.16.tar.gz
(25.1 kB
view hashes)
Built Distribution
Close
Hashes for AwesomeTkinter-2020.12.16.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5a98cf989455d57c66c2cb2848bc9c8aa2f3f37d4370476f0e7463448bef54f |
|
MD5 | b07dc4c482e9be3ab8ba7491f031f76f |
|
BLAKE2b-256 | 89f2714285ba7738c48a500224795479cd91000c1412d27e86b3db4943e4e53b |
Close
Hashes for AwesomeTkinter-2020.12.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d26407e5bbfe633ad833ed5300d48aa25e21e4a11069f7b7c4999d7478c9c15 |
|
MD5 | c0bc8316517ebc69c5462887be72ca69 |
|
BLAKE2b-256 | ed740459a2796af31b28dc9a7be1e23aa555ee31aea62f2993fd3cc71b1e4eb6 |