https://github.com/legopitstop/responsivetkinter
This is a simple library that allows you to create responsive widgets in your tkinter window.
https://github.com/legopitstop/responsivetkinter
pypi python pythonpackage resizeable tagsresponsive tkinter
Last synced: 10 months ago
JSON representation
This is a simple library that allows you to create responsive widgets in your tkinter window.
- Host: GitHub
- URL: https://github.com/legopitstop/responsivetkinter
- Owner: legopitstop
- License: mit
- Created: 2022-01-22T23:44:12.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T03:52:45.000Z (over 1 year ago)
- Last Synced: 2024-10-29T22:54:01.613Z (about 1 year ago)
- Topics: pypi, python, pythonpackage, resizeable, tagsresponsive, tkinter
- Language: Python
- Homepage: https://pypi.org/project/ResponsiveTkinter/
- Size: 458 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# ResponsiveTkinter - 1.0.2
## What is this
This is a simple library that allows you to create responsive widgets in your tkinter window.
## What does "responsive" mean?
Responsive is a development approach that creates dynamic changes to the appearance of a widget, depending on the window size and orientation of the device being used to view it. ... In responsive design, window widgets reshuffle as the window size grows or shrinks.
## Install
`pip install ResponsiveTkinter`
## Examples
When the window has been resized it will modify the grid placement.
```python
from tkinter import Frame, Tk
from ResponsiveTkinter import Responsive
root=Tk()
root.title('Window Title')
root.geometry('900x900')
left = Frame(root,width=300,height=300,bg='blue')
left.grid(row=0,column=0)
main = Frame(root,width=300,height=300,bg='gray')
main.grid(row=1,column=0)
right = Frame(root,width=300,height=300,bg='green')
right.grid(row=2,column=0)
# Make widgets responsive
R = Responsive(root,901) # Windows width must be more than 900 for it to work.
R.grid(main,row=0,column=1) # Change pos in the grid
R.grid(right,row=0,column=2)
root.mainloop()
```

## License
MIT License