def __init__(self, *args, **kwargs):
        super(MayaCaptureWidget, self).__init__(*args, **kwargs)

        self.textw = QtWidgets.QLineEdit()
        self.layout = QtWidgets.QVBoxLayout()
        self.layout.addWidget(self.textw)
        self.ui_mainLeft_gridLayout = QtWidgets.QGridLayout()
        self.decorate_ui()
        self.layout.addLayout(self.ui_mainLeft_gridLayout)
        self.setLayout(self.layout)
    def decorate_ui(self):
        self.ui.ps_thumb_horizontalLayout = QtWidgets.QGridLayout()
        self.ui.screenshot_pushButton = RegularThumbnail(width=480, height=270)
        self.ui.ui_thumbcamera_label = HoverButton(icon=refresh_icon)
        self.ui.ui_thumbcamera_label.setLayoutDirection(QtCore.Qt.RightToLeft)
        self.ui.ui_thumbcamera_label.setMinimumSize(480, 270)
        self.ui.ps_thumb_horizontalLayout.addWidget(
            self.ui.screenshot_pushButton, 0, 0)
        self.ui.ps_thumb_horizontalLayout.addWidget(
            self.ui.ui_thumbcamera_label, 0, 0)

        # Viewport Preset Selection and Handling
        self.ui.ps_preset_horizontalLayout = QtWidgets.QHBoxLayout()
        self.ui.ui_viewportpreset_comboBox = RegularComboBox()

        self.ui.ps_new_preset_pushButton = RegularToolButton()
        self.ui.ps_new_preset_pushButton.setIcon(add_icon)

        self.ui.ps_rename_preset_pushButton = RegularToolButton()
        self.ui.ps_rename_preset_pushButton.setIcon(edit_icon)

        self.ui.ps_delete_preset_pushButton = RegularToolButton()
        self.ui.ps_delete_preset_pushButton.setIcon(delete_icon)

        self.ui.ps_refresh_pushButton = RegularToolButton()
        self.ui.ps_refresh_pushButton.setIcon(refresh_icon)

        self.ui.ps_preset_horizontalLayout.addWidget(
            self.ui.ps_refresh_pushButton)
        self.ui.ps_preset_horizontalLayout.addWidget(
            self.ui.ui_viewportpreset_comboBox)
        self.ui.ps_preset_horizontalLayout.addWidget(
            self.ui.ps_rename_preset_pushButton)
        self.ui.ps_preset_horizontalLayout.addWidget(
            self.ui.ps_new_preset_pushButton)
        self.ui.ps_preset_horizontalLayout.addWidget(
            self.ui.ps_delete_preset_pushButton)

        # Viewport Preset Application
        self.ui.buttons_horizontalLayout = QtWidgets.QHBoxLayout()

        self.ui.ps_apply_preset_pushButton = RegularButton()
        self.ui.ps_apply_preset_pushButton.setText("Apply \nto current view")
        self.ui.buttons_horizontalLayout.addWidget(
            self.ui.ps_apply_preset_pushButton)

        self.ui.ps_applyToAll_preset_pushButton = RegularButton()
        self.ui.ps_applyToAll_preset_pushButton.setText("Apply\nto all views")
        self.ui.buttons_horizontalLayout.addWidget(
            self.ui.ps_applyToAll_preset_pushButton)

        self.ui.ps_save_preset_pushButton = RegularButton()
        self.ui.ps_save_preset_pushButton.setText("Override preset\nfrom view")
        self.ui.buttons_horizontalLayout.addWidget(
            self.ui.ps_save_preset_pushButton)

        self.ui.ui_status_label = RegularStatusLabel()

        self.ui.ui_status_label.setFixedHeight(30)
        self.ui.master_layout.setSpacing(1)
        self.ui.master_layout.addWidget(self.ui.ui_status_label)
        self.ui.master_layout.addLayout(self.ui.ps_thumb_horizontalLayout)
        self.ui.master_layout.addLayout(self.ui.ps_preset_horizontalLayout)
        self.ui.master_layout.addLayout(self.ui.buttons_horizontalLayout)