Skip to content

Commit

Permalink
Added information about args and kwargs of constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Aug 14, 2024
1 parent 18dcb1a commit d5980f4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/ScrollableContainers/_qt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 2 additions & 1 deletion src/ScrollableContainers/_qt6.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 2 additions & 1 deletion src/ScrollableContainers/_tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
7 changes: 4 additions & 3 deletions src/ScrollableContainers/_wx.py
Original file line number Diff line number Diff line change
@@ -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):
Expand Down

0 comments on commit d5980f4

Please sign in to comment.