Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
fixed some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
seifibrahim32 committed Mar 19, 2024
1 parent dff9c45 commit fc9b6d8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
11 changes: 6 additions & 5 deletions openpype/tools/creator/window.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os.path
import sys
import traceback
import re
Expand Down Expand Up @@ -119,13 +120,13 @@ def __init__(self, parent=None):
asset_name_input.textChanged.connect(self._on_data_changed)

# TODO Edited
# creators_view.selectionModel().currentChanged.connect(
# self._on_selection_changed
# )
creators_view.selectionModel().currentChanged.connect(
self._on_selection_changed
)

# Replacement for the above
QtCore.QObject.connect(creators_view.selectionModel(),
QtCore.SIGNAL('currentChanged(QModelIndex, QModelIndex)'), self._on_selection_changed)
# QtCore.QObject.connect(creators_view.selectionModel(),
# QtCore.SIGNAL('currentChanged(QModelIndex, QModelIndex)'), self._on_selection_changed)
# Store valid states and
self._is_valid = False
create_btn.setEnabled(self._is_valid)
Expand Down
2 changes: 1 addition & 1 deletion openpype/tools/publisher/widgets/overview_widget.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from qtpy import QtWidgets, QtCore, QtGui
from qtpy import QtWidgets, QtCore

from openpype import AYON_SERVER_ENABLED

Expand Down
5 changes: 2 additions & 3 deletions openpype/tools/workfiles/files_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def __init__(self, parent):
"Please choose context on the left<br/>&lt",
self
)
label_widget.setAlignment(QtCore.Qt.
AlignCenter)
label_widget.setAlignment(QtCore.Qt.AlignCenter)

layout = QtWidgets.QHBoxLayout(self)
layout.addWidget(label_widget, 1, QtCore.Qt.AlignCenter)
Expand Down Expand Up @@ -260,7 +259,7 @@ def __init__(self, parent):
# self.on_file_select
# )

# TODO Edited replacement fort the above
# TODO Edited replacement for the above
QtCore.QObject.connect(workarea_files_view.selectionModel(),
QtCore.SIGNAL('selectionChanged(QModelIndex, QModelIndex)'), self.on_file_select)

Expand Down

0 comments on commit fc9b6d8

Please sign in to comment.