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

Ctrl+N to create new objects #204

Open
AlexandreSajus opened this issue Jan 14, 2022 · 1 comment
Open

Ctrl+N to create new objects #204

AlexandreSajus opened this issue Jan 14, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@AlexandreSajus
Copy link
Contributor

Ctrl+N could create a new block
Ctrl+Shift+N could create a new window

@AlexandreSajus AlexandreSajus added the enhancement New feature or request label Jan 14, 2022
@AlexandreSajus
Copy link
Contributor Author

AlexandreSajus commented Feb 13, 2022

Ctrl+Shift+N has been dealt with (#264)

Ctrl+N is hard to implement:
I tried this:

x, y = (
            current_window.view.mapToScene(QCursor.pos()).x(),
            current_window.view.mapToScene(QCursor.pos()).y(),
        )
        if self.is_not_editing(current_window):
            current_window.scene.create_block_from_file(
                "pyflow/blocks/blockfiles/empty.pfb", x, y
            )

But it had a weird offset that depends on the resolution of the monitor
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant