Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1023 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 1023 Bytes

tiling-layout

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

alt demo

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