Skip to content

Commit

Permalink
Encoder tab select fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
samyarsadat committed Nov 11, 2024
1 parent c150248 commit 76ec926
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# along with this program. If not, see <https: www.gnu.org/licenses/>.

from PySide6.QtCore import QTimer
from PySide6.QtWidgets import QApplication, QPushButton, QTabWidget
from PySide6.QtWidgets import QApplication, QPushButton, QTabBar
from ros_remote_gui.main_window import get_main_window
from ros_remote_pui.config import ProgramConfig
from datetime import datetime
Expand Down Expand Up @@ -79,7 +79,7 @@ def left_rot_enc_btn_press(self) -> None:

if isinstance(focused_widget, QPushButton):
focused_widget.click()
elif isinstance(focused_widget, QTabWidget):
elif isinstance(focused_widget, QTabBar):
current_index = focused_widget.currentIndex()
next_index = (current_index + 1) % focused_widget.count()
print(current_index, next_index)
Expand Down

0 comments on commit 76ec926

Please sign in to comment.