Widget

class praw.models.Widget(reddit, _data)

Base class to represent a Widget.

Parameters:
__init__(reddit, _data)

Initialize a Widget instance.

Parameters:
Return type:

None

mod()

Get an instance of WidgetModeration for this widget.

Note

Using any of the methods of WidgetModeration will likely make the data in the SubredditWidgets that this widget belongs to outdated. To remedy this, call refresh().

Return type:

WidgetModeration

classmethod parse(data, reddit)

Return an instance of cls from data.

Parameters:
Return type:

PRAWBase