def update_buttons(self, gb): """Enables buttons and dropdowns according to whether or not data is present. Args: gb (QtWidgets.QGroupBox): Group box for the tab. """ common.update_buttons(self, gb)
def update_buttons(self, gb): """Enables buttons and dropdowns according to whether or not data is present. Args: gb (QtWidgets.QGroupBox): Group box for the tab. """ dlg = self.dlg ignore = [dlg.dd_depth_farm_workers, dlg.dd_depth_farm_ec2] if not dlg.cb_depth_options_use_bg.isChecked(): ignore.append(dlg.dd_depth_video_frame_bg) if self.is_farm and self.parent.is_aws: dlg.btn_depth_farm_terminate_cluster.setEnabled( bool(len(common.get_aws_workers()))) common.update_buttons(self, gb, ignore) use_bg = dlg.cb_depth_options_use_bg.isChecked() dlg.dd_depth_video_frame_bg.setEnabled(use_bg)
def update_buttons(self, gb): """Enables buttons and dropdowns according to whether or not data is present. Args: gb (QtWidgets.QGroupBox): Group box for the tab. """ dlg = self.dlg ignore = [dlg.dd_export_farm_workers, dlg.dd_export_farm_ec2] if self.is_viewer_rift_hidden: ignore.append(dlg.btn_export_data_rift_view) if self.is_viewer_smr_hidden: ignore.append(dlg.btn_export_data_smr_view) if self.parent.is_aws: dlg.btn_export_farm_terminate_cluster.setEnabled( bool(len(common.get_aws_workers()))) common.update_buttons(self, gb, ignore) if not self.is_viewer_rift_hidden: has_fused = dep_util.check_image_existence(self.path_fused) != "" dlg.btn_export_data_rift_view.setEnabled(has_fused)