Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed main file for sync view and changed show_details file for box… #26

Merged
merged 2 commits into from
Nov 13, 2024

Conversation

Sampad530
Copy link
Collaborator

… select option

app/main.py Outdated
y1, y2 = [C + ((value - c) / (d - c)) * (D - C) for value in [y, y + h]]
slice2.canvas.setViewport([x1, y1, x2 - x1, y2 - y1])
slice2.refresh("SyncSlices")
def SyncSlices(slice1, slice2, box1=None, box2=None):
Copy link
Contributor

Choose a reason for hiding this comment

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

can you merge functions to avoid replication of code (syncSlices and reverse)?
also no to use global... you can use variables inside the class (i.e. if there are two couples of synced-images it will not work)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

syncSlices and reverse are merged. removed global variables and included them in the class.

@scrgiorgio scrgiorgio merged commit fef5b06 into main Nov 13, 2024
2 checks passed
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.

3 participants