Python qtpy.QtWidgets.QMainWindow() Examples
The following are 1
code examples of qtpy.QtWidgets.QMainWindow().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
qtpy.QtWidgets
, or try the search function
.
Example #1
Source File: test_terminal.py From spyder-terminal with MIT License | 6 votes |
def setup_terminal(qtbot_module, request): """Set up the Notebook plugin.""" class MainMock(QMainWindow): def __getattr__(self, attr): return Mock() def register_shortcut(self, *args, **kwargs): pass main = MainMock() terminal = TerminalPlugin(main) qtbot_module.addWidget(terminal) qtbot_module.waitUntil(lambda: terminal.server_is_ready(), timeout=TERM_UP) qtbot_module.wait(5000) terminal.create_new_term() terminal.show() def teardown(): terminal.closing_plugin() request.addfinalizer(teardown) return terminal