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

WIP add pinch zoom #241

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

WIP add pinch zoom #241

wants to merge 2 commits into from

Conversation

m-novikov
Copy link
Contributor

#!/usr/bin/env python3
from volumina.api import Viewer
from PyQt5.QtWidgets import QApplication

app = QApplication(["TestApp"])
app.setApplicationName("TestApp")
v = Viewer()
v.setWindowTitle("TestApp")
import numpy

a = numpy.random.randint(0, 255, size=(512, 512, 3), dtype=numpy.uint8)
v.addGrayscaleLayer(a, name="raw")
v.show()


def change():
    v.dataShape = (1, 100, 200, 300, 1)


# QTimer.singleShot(200, change)
app.exec_()

@m-novikov
Copy link
Contributor Author

@emilmelnikov please test when you have the chance

@emilmelnikov
Copy link
Member

emilmelnikov commented Nov 18, 2020

Tried this on the latest Windows 10 (20H2) with the changes rebased on the current master, but pinch-to-zoom doesn't work.

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