Fix custom args in gui to bottom of window

This commit is contained in:
Brett Williams
2023-05-22 16:07:01 -05:00
parent 50ca036a5d
commit ab13b858c7

View File

@@ -137,14 +137,9 @@ class ScheduleJob(Frame):
self.blender_multiple_cameras = BooleanVar(value=False)
self.blender_cameras_list = None
# custom args frame
custom_args_frame = Frame(self)
custom_args_frame.pack(fill=X)
Label(custom_args_frame, text="Custom Args", width=label_width).pack(side=LEFT, padx=5, pady=5)
self.custom_args_entry = Entry(custom_args_frame)
self.custom_args_entry.pack(side=LEFT, padx=5, expand=True, fill=X)
# Submit Button
# Custom Args / Submit Button
self.custom_args_frame = None
self.custom_args_entry = None
self.submit_frame = None
if os.path.exists(prefs_name):
@@ -227,6 +222,7 @@ class ScheduleJob(Frame):
if renderer == 'blender':
self.draw_blender_settings()
self.draw_custom_args()
self.draw_submit_button()
if self.renderer_info.get(renderer, {}).get('supported_export_formats', None):
@@ -239,6 +235,15 @@ class ScheduleJob(Frame):
self.output_format['values'] = []
self.output_format['state'] = DISABLED
def draw_custom_args(self):
if hasattr(self, 'custom_args_frame') and self.custom_args_frame:
self.custom_args_frame.forget()
self.custom_args_frame = Frame(self)
self.custom_args_frame.pack(side=TOP, fill=X, expand=False)
Label(self.custom_args_frame, text="Custom Args", width=label_width).pack(side=LEFT, padx=5, pady=5)
self.custom_args_entry = Entry(self.custom_args_frame)
self.custom_args_entry.pack(side=TOP, padx=5, expand=True, fill=X)
def draw_submit_button(self):
if hasattr(self, 'submit_frame') and self.submit_frame:
self.submit_frame.forget()