Skip to content

Instantly share code, notes, and snippets.

@erap129
Created January 15, 2022 15:47
Show Gist options
  • Select an option

  • Save erap129/40620ee0779e759eceec85223ee58ce1 to your computer and use it in GitHub Desktop.

Select an option

Save erap129/40620ee0779e759eceec85223ee58ce1 to your computer and use it in GitHub Desktop.
top_bar_layout.addWidget(select_image_button)
top_bar_layout.addWidget(self.r_select)
top_bar_layout.addWidget(self.g_select)
top_bar_layout.addWidget(self.b_select)
top_bar_layout.addWidget(self.threshold_select)
top_bar_layout.addWidget(process_image_button)
self.source_image = ImageWidget()
self.result_image = ImageWidget()
self.source_image.setMaximumSize(self.max_img_width, self.max_img_height)
self.result_image.setMaximumSize(self.max_img_width, self.max_img_height)
source_image_layout = QVBoxLayout()
source_image_layout.addWidget(QLabel("Source image:"))
source_image_layout.addWidget(self.source_image)
result_image_layout = QVBoxLayout()
result_image_layout.addWidget(QLabel("Result image:"))
result_image_layout.addWidget(self.result_image)
image_bar_layout.addLayout(source_image_layout)
image_bar_layout.addLayout(result_image_layout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment