Skip to content

Commit eff6b53

Browse files
committed
remove __main__ code
1 parent 6378a1c commit eff6b53

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

plotpy/widgets/colormap_editor.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,3 @@ def update_current_dataset(self):
294294
relative_pos = self.colormap_widget.get_handles_tuple()[current_index]
295295
current_dataset_grp.dataset.set_position(relative_pos)
296296
current_dataset_grp.get()
297-
298-
299-
if __name__ == "__main__":
300-
app = QW.QApplication([])
301-
demo = ColorMapEditor(None)
302-
demo.show()
303-
app.exec_()

plotpy/widgets/colormap_widget.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -631,10 +631,3 @@ def open_slider_menu(self, pos: QC.QPoint) -> None:
631631

632632
self.slider_menu.popup(glob_pos)
633633

634-
635-
if __name__ == "__main__":
636-
app = QW.QApplication([])
637-
demo = ColorMapWidget(None)
638-
demo.add_handle_at_relative_pos(0.5, QG.QColor(QC.Qt.GlobalColor.red))
639-
demo.show()
640-
app.exec_()

0 commit comments

Comments
 (0)