Skip to content

Commit

Permalink
Merge pull request #399 from MonsieurGallo/rig_builder_updates
Browse files Browse the repository at this point in the history
Rig builder fixes
  • Loading branch information
miquelcampos authored Mar 21, 2024
2 parents fdd28db + d137eba commit b67f8a1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions release/scripts/mgear/shifter/rig_builder/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def create_layout(self):
icon="mgear_folder", width=25
)


output_folder_layout.addWidget(QtWidgets.QLabel("Output Folder"))
output_folder_layout.addWidget(self.output_folder_line_edit)
output_folder_layout.addWidget(self.output_folder_button)
Expand Down Expand Up @@ -126,7 +127,7 @@ def create_layout(self):
icon="mgear_folder", width=25
)

pre_script_layout.addWidget(QtWidgets.QLabel("Edit Guide Pre Script"))
pre_script_layout.addWidget(QtWidgets.QLabel("Pre Script"))
pre_script_layout.addWidget(self.pre_script_line_edit)
pre_script_layout.addWidget(self.pre_script_button)

Expand Down Expand Up @@ -290,7 +291,8 @@ def add_file(self, file_path):
custom_output_path = QtWidgets.QTableWidgetItem("")
self.table_widget.setItem(row_position, 2, custom_output_path)

set_custom_output_bttn = widgets.create_button(icon="mgear_folder", width=40, size=45)
set_custom_output_bttn = widgets.create_button(icon="mgear_folder", setMax=False, size=37.5)

self.table_widget.setCellWidget(row_position, 3, set_custom_output_bttn)
set_custom_output_bttn.clicked.connect(partial(self.on_custom_path_clicked, custom_output_path))

Expand Down Expand Up @@ -345,9 +347,10 @@ def import_config(self, file_path=""):
custom_output_path_item = QtWidgets.QTableWidgetItem(custom_output_path)
self.table_widget.setItem(row_position, 2, custom_output_path_item)

set_custom_output_bttn = widgets.create_button(icon="mgear_folder", width=40, size=45)
set_custom_output_bttn = widgets.create_button(icon="mgear_folder", setMax=False, size=37.5)

self.table_widget.setCellWidget(row_position, 3, set_custom_output_bttn)
set_custom_output_bttn.clicked.connect(partial(self.on_custom_path_clicked, custom_output_path))
set_custom_output_bttn.clicked.connect(partial(self.on_custom_path_clicked, custom_output_path_item))

def export_config(self):
data_string = self.collect_table_data()
Expand Down

0 comments on commit b67f8a1

Please sign in to comment.