def setup_style(self): self.setWindowTitle(self.app_name) stored_windows_geometry = settings.get_window_geometry() if stored_windows_geometry: self.setGeometry(pg.Qt.QtCore.QRect(*stored_windows_geometry)) # Fore/Background color pg.setConfigOption('background', 'w') pg.setConfigOption('foreground', 'k') # Enable antialiasing for prettier plots pg.setConfigOptions(antialias=True)
def test_interface_settings(self): self.assertTupleEqual( settings.get_window_geometry(), (100, 100, 1024, 768), 'This can fail if you started the online monitor once and changed the windows size' )
def test_interface_settings(self): self.assertTupleEqual(settings.get_window_geometry(), (100, 100, 1024, 768), 'This can fail if you started the online monitor once and changed the windows size')