Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehmet Cagri Aksoy committed Oct 19, 2023
1 parent b3bd6d5 commit 72f43a0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Binary file modified src/__pycache__/ui_main.cpython-311.pyc
Binary file not shown.
11 changes: 10 additions & 1 deletion src/ui_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ def start_loop(self):
try:
self.establish_serial_communication()
except SerialException:
self.print_message_on_screen("Exception occured while trying establish serial communication!")
self.print_message_on_screen(
"Exception occured while trying establish serial communication!")

try:
self.worker = Worker() # a new worker to perform those tasks
Expand Down Expand Up @@ -154,6 +155,10 @@ def read_data_from_thread(self, serial_data):
self.comboBox.setEnabled(False)
self.comboBox_1.setEnabled(False)
self.comboBox_2.setEnabled(False)
self.comboBox_3.setEnabled(False)
self.comboBox_4.setEnabled(False)
self.comboBox_5.setEnabled(False)
self.save_button.setEnabled(False)
self.start_button.setEnabled(False)

self.textEdit.setText('Data Gathering...')
Expand Down Expand Up @@ -182,6 +187,10 @@ def on_end_button_clicked(self):
self.comboBox.setEnabled(True)
self.comboBox_1.setEnabled(True)
self.comboBox_2.setEnabled(True)
self.comboBox_3.setEnabled(True)
self.comboBox_4.setEnabled(True)
self.comboBox_5.setEnabled(True)
self.save_button.setEnabled(True)
self.start_button.setEnabled(True)

def on_send_data_button_clicked(self):
Expand Down

0 comments on commit 72f43a0

Please sign in to comment.