mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-02 19:39:55 +08:00
Raise ImageViewer to front on start.
Currently only works for main window, does not work for linked viewers.
This commit is contained in:
@@ -209,6 +209,8 @@ class Plugin(QtGui.QDialog):
|
||||
def show(self, main_window=True):
|
||||
"""Show plugin."""
|
||||
super(Plugin, self).show()
|
||||
self.activateWindow()
|
||||
self.raise_()
|
||||
|
||||
# Emit signal with x-hint so new windows can be displayed w/o overlap.
|
||||
size = self.frameGeometry()
|
||||
|
||||
@@ -201,6 +201,8 @@ class ImageViewer(QtGui.QMainWindow):
|
||||
for p in self.plugins:
|
||||
p.show()
|
||||
super(ImageViewer, self).show()
|
||||
self.activateWindow()
|
||||
self.raise_()
|
||||
|
||||
def show(self, main_window=True):
|
||||
"""Show ImageViewer and attached plugins.
|
||||
|
||||
Reference in New Issue
Block a user