Exemple #1
0
 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 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)
Exemple #3
0
 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')