https://github.com/lufte/tiling-layout
tiling-layout is a QtLayout that allows to split widgets in a vim-like fashion
https://github.com/lufte/tiling-layout
layout pyqt5 qt qt5 split tile tiling-layout vim
Last synced: 3 months ago
JSON representation
tiling-layout is a QtLayout that allows to split widgets in a vim-like fashion
- Host: GitHub
- URL: https://github.com/lufte/tiling-layout
- Owner: lufte
- License: gpl-3.0
- Created: 2018-02-16T16:19:59.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-24T23:10:22.000Z (over 7 years ago)
- Last Synced: 2025-04-09T08:44:09.013Z (10 months ago)
- Topics: layout, pyqt5, qt, qt5, split, tile, tiling-layout, vim
- Language: Python
- Homepage:
- Size: 608 KB
- Stars: 14
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tiling-layout
**tiling-layout** is a QtLayout that allows to split widgets in a vim-like fashion.

## Usage
**tiling-layout** is currently written in Python3 and depends on PyQt5.
You will be able to use it in a Qt application only if it's written in Python as well.
Currently there is no other form of distribution than the source files in this repository.
To use the layout simply import the `QTilingLayout` class and create an instance with the inital widget to be shown.
### Available methods:
* `hsplit` to split a widget horizontally.
* `vsplit` to split a widget vertically.
* `remove_widget` to remove a widget from the layout.
* `get_(left|top|right|bottom)_neighbour` to get the next widget in the requested direction that has the most cells in contact.
Refer to the source file for detailed documentation on each method.
## Contributing
I welcome all contributions, specially ideas on how to distribute this as a library (do I port it to C++? do I make a python package?).