mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 20:14:21 +08:00
Display title in docked plugins
This commit is contained in:
@@ -124,6 +124,7 @@ class ImageViewer(QtGui.QMainWindow):
|
||||
dock_location = Qt.DockWidgetArea(location)
|
||||
dock = QtGui.QDockWidget()
|
||||
dock.setWidget(plugin)
|
||||
dock.setWindowTitle(plugin.name)
|
||||
self.addDockWidget(dock_location, dock)
|
||||
|
||||
horiz = (dock_areas['left'], dock_areas['right'])
|
||||
|
||||
@@ -32,6 +32,7 @@ canny_plugin = CannyPlugin()
|
||||
canny_viewer += canny_plugin
|
||||
|
||||
hough_plugin = OverlayPlugin(image_filter=hough_lines)
|
||||
hough_plugin.name = 'Hough Lines'
|
||||
|
||||
hough_plugin += Slider('line length', 0, 100, update_on='release')
|
||||
hough_plugin += Slider('line gap', 0, 20, update_on='release')
|
||||
|
||||
Reference in New Issue
Block a user