/tkmacosx

Tkmacosx is a Python library extension to Tkinter module for masOS.

Primary LanguagePythonApache License 2.0Apache-2.0

tkmacosx

This module provides some modified widgets of Tkinter which works better on macOS and some more useful functions and classes as well. For example Button of tkmacosx which looks and feels exaclty like a native tkinter button can change its background and foreground colors. Read more about tkmacos in detail in tkmacosx

Installation

Use the package manager pip to install tkmacosx.

pip install tkmacosx

Usage

from tkinter import *
from tkmacosx import SFrame, Button

root = Tk()
frame = SFrame(root, bg='pink')
frame.pack()

for i in range(50):
    b = Button(frame, text='Button %s'%i, borderless=1)
    b.pack()

root.mainloop()

Demonstration

python -m tkmacosx

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method of this repository before making a change.

Please make sure to update tests as appropriate.

License

Apache