codekingpro/portable-devtools
114k
1# Urwid container widget classes2# Copyright (C) 2004-2012 Ian Ward3#4# This library is free software; you can redistribute it and/or5# modify it under the terms of the GNU Lesser General Public6# License as published by the Free Software Foundation; either7# version 2.1 of the License, or (at your option) any later version.8#9# This library is distributed in the hope that it will be useful,10# but WITHOUT ANY WARRANTY; without even the implied warranty of11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU12# Lesser General Public License for more details.13#14# You should have received a copy of the GNU Lesser General Public15# License along with this library; if not, write to the Free Software16# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA17#18# Urwid web site: https://urwid.org/19 20 21from __future__ import annotations22 23import warnings24 25from urwid.widget import (26 Columns,27 ColumnsError,28 Frame,29 FrameError,30 GridFlow,31 GridFlowError,32 Overlay,33 OverlayError,34 Pile,35 PileError,36 WidgetContainerMixin,37)38 39__all__ = (40 "Columns",41 "ColumnsError",42 "Frame",43 "FrameError",44 "GridFlow",45 "GridFlowError",46 "Overlay",47 "OverlayError",48 "Pile",49 "PileError",50 "WidgetContainerMixin",51)52 53warnings.warn(54 f"{__name__!r} is not expected to be imported directly. "55 'Please use public access from "urwid" package. '56 f"Module {__name__!r} is deprecated and will be removed in the version 4.0.",57 DeprecationWarning,58 stacklevel=3,59)60 