From db30736cf2ef321eb112765d0540b6295d5f523e Mon Sep 17 00:00:00 2001 From: elParaguayo Date: Mon, 30 Dec 2024 12:28:59 +0000 Subject: [PATCH] Refactor toolkit imports --- qtile_extras/popup/__init__.py | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/qtile_extras/popup/__init__.py b/qtile_extras/popup/__init__.py index e69de29b..a768c2f2 100644 --- a/qtile_extras/popup/__init__.py +++ b/qtile_extras/popup/__init__.py @@ -0,0 +1,47 @@ +# Copyright (c) 2024 elParaguayo +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to deal +# in the Software without restriction, including without limitation the rights +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +# SOFTWARE. +from qtile_extras.popup.menu import PopupMenu, PopupMenuItem, PopupMenuSeparator +from qtile_extras.popup.toolkit import ( + PopupAbsoluteLayout, + PopupCircularProgress, + PopupGridLayout, + PopupImage, + PopupRelativeLayout, + PopupSlider, + PopupText, + PopupWidget, +) + +__all__ = [ + # Basic toolkit layouts + "PopupAbsoluteLayout", + "PopupGridLayout", + "PopupRelativeLayout", + # Basic toolkit widgets + "PopupCircularProgress", + "PopupImage", + "PopupSlider", + "PopupText", + "PopupWidget", + # Menu toolkit + "PopupMenu", + "PopupMenuItem", + "PopupMenuSeparator", +]