An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# tiling-layout

**tiling-layout** is a QtLayout that allows to split widgets in a vim-like fashion.

![alt demo](demo.gif?raw=true)

## 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?).