예제 #1
0
 def setUp(self) -> None:
     self.app = QtWidgets.QApplication(sys.argv)
     self.terminal_example = terminal.OstrannaTerminal()
     self.terminal_example.file_to_send = \
         r'C:\Users\juice\Downloads\PycharmProjects\OstrannaTerminal\Ostranna_Logo.ico'
     self.terminal_example.text_settings = data_types.TextSettings()
     self.terminal_example.port_settings = data_types.ComSettings()
예제 #2
0
 def setUp(self):
     self.app = QtWidgets.QApplication(sys.argv)
     self.terminal_example = terminal.OstrannaTerminal()
     self.terminal_example.CBSTM.setChecked(True)
     self.terminal_example.CBNRF.setChecked(False)
     self.terminal_example.text_settings.show_sent = True
     self.terminal_example.CBRepeat.setChecked(False)
     self.terminal_example.CBRepeat.setChecked(False)
def terminal_example():
    terminal_ex = terminal.OstrannaTerminal()
    terminal_ex.text_settings = data_types.TextSettings()
    terminal_ex.port_settings = data_types.ComSettings()
    terminal_ex.CBSTM.setChecked(True)
    terminal_ex.CBNRF.setChecked(False)
    terminal_ex.CBPorts.setCurrentIndex(0)
    terminal_ex.BtnConnect.click()
    yield terminal_ex
    terminal_ex.destroy()
예제 #4
0
 def setUp(self):
     self.app = QtWidgets.QApplication(sys.argv)
     self.terminal_example = terminal.OstrannaTerminal()
예제 #5
0
 def setUp(self):
     self.app = QtWidgets.QApplication(sys.argv)
     self.terminal_example = terminal.OstrannaTerminal()
     self.terminal_example.CBSTM.setChecked(True)
     self.terminal_example.CBNRF.setChecked(False)
예제 #6
0
 def setUp(self):
     self.app = QtWidgets.QApplication(sys.argv)
     self.terminal_example = terminal.OstrannaTerminal()
     self.terminal_example.load_settings("Settings_for_test.json")
예제 #7
0
 def setUp(self) -> None:
     self.app = QtWidgets.QApplication(sys.argv)
     self.terminal_example = terminal.OstrannaTerminal()
     self.terminal_example.load_macros("Macros_test.json")
예제 #8
0
 def setUp(self):
     self.app = QtWidgets.QApplication(sys.argv)
     self.terminal_example = terminal.OstrannaTerminal()
     self.terminal_example.text_settings = data_types.TextSettings()
     self.terminal_example.port_settings = data_types.ComSettings()