From d5980f478ad1659ccca40e057b03851bfdf5eef2 Mon Sep 17 00:00:00 2001 From: Vishal Pankaj Chandratreya <19171016+tfpf@users.noreply.github.com> Date: Wed, 14 Aug 2024 19:59:29 +0530 Subject: [PATCH] Added information about `args` and `kwargs` of constructors --- src/ScrollableContainers/_qt5.py | 3 ++- src/ScrollableContainers/_qt6.py | 3 ++- src/ScrollableContainers/_tk.py | 3 ++- src/ScrollableContainers/_wx.py | 7 ++++--- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/ScrollableContainers/_qt5.py b/src/ScrollableContainers/_qt5.py index 6fe38df..2cfe5ea 100644 --- a/src/ScrollableContainers/_qt5.py +++ b/src/ScrollableContainers/_qt5.py @@ -7,7 +7,8 @@ class ScrollableAreaQt5(QScrollArea): """ Container with horizontal and vertical scrolling capabilities. Widgets must - be added to its `area` attribute. + be added to its ``area`` attribute. Constructor arguments are passed to the + parent constructor. """ def __init__(self, *args, **kwargs): diff --git a/src/ScrollableContainers/_qt6.py b/src/ScrollableContainers/_qt6.py index f862b78..fc599ce 100644 --- a/src/ScrollableContainers/_qt6.py +++ b/src/ScrollableContainers/_qt6.py @@ -7,7 +7,8 @@ class ScrollableAreaQt6(QScrollArea): """ Container with horizontal and vertical scrolling capabilities. Widgets must - be added to its `area` attribute. + be added to its ``area`` attribute. Constructor arguments are passed to the + parent constructor. """ def __init__(self, *args, **kwargs): diff --git a/src/ScrollableContainers/_tk.py b/src/ScrollableContainers/_tk.py index ac38597..a4b2d93 100644 --- a/src/ScrollableContainers/_tk.py +++ b/src/ScrollableContainers/_tk.py @@ -10,7 +10,8 @@ class ScrollableFrameTk(ttk.Frame): """ Container with horizontal and vertical scrolling capabilities. Widgets must - be added to its `frame` attribute. + be added to its ``frame`` attribute. Constructor arguments are passed to + the parent constructor. """ def __init__(self, *args, **kwargs): diff --git a/src/ScrollableContainers/_wx.py b/src/ScrollableContainers/_wx.py index c1998cd..b3e1b2c 100644 --- a/src/ScrollableContainers/_wx.py +++ b/src/ScrollableContainers/_wx.py @@ -1,13 +1,14 @@ __all__ = ["ScrollablePanelWx"] import wx -from wx.lib import scrolledpanel +from wx.lib.scrolledpanel import ScrolledPanel -class ScrollablePanelWx(scrolledpanel.ScrolledPanel): +class ScrollablePanelWx(ScrolledPanel): """ Container with horizontal and vertical scrolling capabilities. Widgets must - be added to its `panel` attribute. + be added to its ``panel`` attribute. Constructor arguments are passed to + the parent constructor. """ def __init__(self, *args, **kwargs):