Module: dynamite.utils
A set of generic functions to manipulate layouts.
Awesome layouts provide multiple parameters
Static module functions
dynamite.utils.resize_widget (self, self, delta) | Add or remove pixels in different directions. |
Static module functions
- dynamite.utils.resize_widget (self, self, delta)
-
Add or remove pixels in different directions.
Widgets wishing to implement resizing must listen to the
request.is_accepted
signal. This signal has the originating requestor as the first argument and a request object as the second. The widget must check if the request is already granted usingif request.is_accepted then return end
to avoid a single request to be granted multiple time. Widgets are allowed to modify thedelta
property of the request object without having to accept the request. To accept the request, the widget must callrequest:accept(self)
.Parameters:
- self widget The client placeholder or widget to resize.
- self widget The client placeholder or widget to resize.
- delta table The amount to resize in each direction.