Skip to content

Latest commit

 

History

History
57 lines (30 loc) · 1.26 KB

README.md

File metadata and controls

57 lines (30 loc) · 1.26 KB

Rounded Tk

Rounded Tk is a Python library that allows you to easily create rounded windows and widgets with Python Tkinter.

Rounded Tk Logo

🧐 Features

  • Modern and beautiful rounded widgets
  • Easiest way to implement hover actions

🛠️ Install

To use it, you need to copy the RoundedTk.py file into your project. Then, add the following import statement in your Python code:

from RoundedTk import *

🧑🏻‍💻 Usage

This library works with Tkinter and other user-interface libraries, such as ttkbootstrap. I rrecommend using ttkbootstrap, and in my examples, I will use it.

Create a rounded Window (Windows Only):

from RoundedTk import *
import ttkbootstrap as ttk

root = RoundedWindow(ttk.Window(), percent=10)


root.mainloop()

In fact, RoundedWindow is just a tk.Canvas widget, sso it doesn't have properties like root.title() or others, However, you can use root.root.title().

the same example but with tkinter:

from RoundedTk import *
import tkinter as tk

root = RoundedWindow(tk.Tk(), percent=10)


root.mainloop()