Skip to content

Feature/movie generator dialog#83

Open
maciekswat wants to merge 8 commits intodevelopfrom
feature/movie_generator_dialog
Open

Feature/movie generator dialog#83
maciekswat wants to merge 8 commits intodevelopfrom
feature/movie_generator_dialog

Conversation

@maciekswat
Copy link
Collaborator

This is a slight refactor of the movie creation:

  1. Introduced a shared Python module that handles movie creation - based on @fyffep code
  2. Added new icon for movie creation
  3. Added a new popup dialog for creating movies
image image

Copy link
Collaborator

@fyffep fyffep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate the refactor. It makes it a much cleaner UX to have the movie generation function in its own window. That said, it is redundant of the old code in the setup/config dialogue. Is the plan to remove that? If we do, it should be a separate PR.

@maciekswat maciekswat requested a review from fyffep February 7, 2026 22:24
return wrapper


def open_folder_in_file_browser(path, parent=None) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! But I still have a nitpick. 🙂 This could be placed in a file called Utilities/components.py to avoid bloating this file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not bloated at all -200 lines of code - and because it lists reusable functions, I think this is a good place - for now. I would argue that components.py might actually be somewhat misleading because the content of this file does not really contain "components" in the way most people understandt he workd "component". We can always import a new PR to work on code reorganization, but let's do it in a separate PR, otherwise this PR will never end :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't worry about it. It has no effect on the functionality.

def display_movie_result(self, movie_count):
display_movie_creation_result(movie_count=movie_count, q_label_obj=self.status_LB)
if movie_count > 0:
self.show_movies_folder_PB.setEnabled(True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should still allow this button to be clicked even if no movies have been generated recently. What if you want to check on the movies that you made yesterday?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The show movies folder button is always on, and now it uses Configuration.getSetting("RecentMoviePath) to open the most recent movie location

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@maciekswat
Copy link
Collaborator Author

@fyffep let me know if there is anything else that's needed, or if there is something I overlooked, or if you have new comments. In the case this code passes your acceptance threshold, let's approve it and work on the new features you listed in the new PRs

@maciekswat maciekswat requested a review from fyffep February 9, 2026 17:59
Copy link
Collaborator

@fyffep fyffep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!!

Comment on lines 65 to 67
folder_with_movies = Path("/").resolve().anchor
if Path(self.simulation_path).exists() and Path(self.simulation_path).is_dir():
folder_with_movies = self.simulation_path
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know I commented about this line before -- sorry for the back-and-forth. Do you think there's value in falling back to the simulation output directory like in choose_movie_directory?

return wrapper


def open_folder_in_file_browser(path, parent=None) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't worry about it. It has no effect on the functionality.

def display_movie_result(self, movie_count):
display_movie_creation_result(movie_count=movie_count, q_label_obj=self.status_LB)
if movie_count > 0:
self.show_movies_folder_PB.setEnabled(True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants