BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
microscope.gui.MainWindow Class Reference
Inheritance diagram for microscope.gui.MainWindow:

Public Member Functions

None __init__ (self, QtWidgets.QWidget widget, *args, **kwargs)
 

Detailed Description

Definition at line 451 of file gui.py.

Constructor & Destructor Documentation

◆ __init__()

None microscope.gui.MainWindow.__init__ (   self,
QtWidgets.QWidget  widget,
args,
**  kwargs 
)

Definition at line 452 of file gui.py.

452 def __init__(self, widget: QtWidgets.QWidget, *args, **kwargs) -> None:
453 super().__init__(*args, **kwargs)
454
455 scroll = QtWidgets.QScrollArea()
456 scroll.setWidgetResizable(True)
457 scroll.setWidget(widget)
458
459 self.setCentralWidget(scroll)
460 for key, slot in (
461 (QtGui.QKeySequence.Quit, self.close),
462 (QtGui.QKeySequence.Close, self.close),
463 ):
464 shortcut = QtWidgets.QShortcut(key, self)
465 shortcut.activated.connect(slot)
466
467

The documentation for this class was generated from the following file: