This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4052 from pypeclub/feature/attribute_defs_dialog
General/TVPaint: Attribute defs dialog
- Loading branch information
Showing
12 changed files
with
131 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from Qt import QtWidgets | ||
|
||
from .widgets import AttributeDefinitionsWidget | ||
|
||
|
||
class AttributeDefinitionsDialog(QtWidgets.QDialog): | ||
def __init__(self, attr_defs, parent=None): | ||
super(AttributeDefinitionsDialog, self).__init__(parent) | ||
|
||
attrs_widget = AttributeDefinitionsWidget(attr_defs, self) | ||
|
||
btns_widget = QtWidgets.QWidget(self) | ||
ok_btn = QtWidgets.QPushButton("OK", btns_widget) | ||
cancel_btn = QtWidgets.QPushButton("Cancel", btns_widget) | ||
|
||
btns_layout = QtWidgets.QHBoxLayout(btns_widget) | ||
btns_layout.setContentsMargins(0, 0, 0, 0) | ||
btns_layout.addStretch(1) | ||
btns_layout.addWidget(ok_btn, 0) | ||
btns_layout.addWidget(cancel_btn, 0) | ||
|
||
main_layout = QtWidgets.QVBoxLayout(self) | ||
main_layout.addWidget(attrs_widget, 0) | ||
main_layout.addStretch(1) | ||
main_layout.addWidget(btns_widget, 0) | ||
|
||
ok_btn.clicked.connect(self.accept) | ||
cancel_btn.clicked.connect(self.reject) | ||
|
||
self._attrs_widget = attrs_widget | ||
|
||
def get_values(self): | ||
return self._attrs_widget.current_value() |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters