Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

setting a value for 'tool' parameter does not set that tool by default #35

Open
sstripps1 opened this issue Feb 5, 2020 · 5 comments
Open

Comments

@sstripps1
Copy link

dash_canvas.DashCanvas(
                    id='canvas',
                    width=800,
                    height=445,
                    tool='rectangle',
                    lineWidth=2,
                    filename=filename,
                    hide_buttons=['pencil', 'line', 'pan', 'select', 'zoom'],
                    goButtonTitle='Get coordinates'
                ),

Setting the tool parameter equal to 'rectangle' is supposed to set the tool to rectangle by default when the app is opened, but instead, the 'pan' tool is selected.

@sstripps1 sstripps1 changed the title setting a value for 'tool' parameter does not set rectangle tool by default setting a value for 'tool' parameter does not set that tool by default Feb 5, 2020
@jackparmer
Copy link
Contributor

@emmanuelle
Copy link
Contributor

@jackparmer don't know but probably one or two days to figure out what's going on (maybe less if I get help from Will or Marc-André), plus a new release.

@ycaokris
Copy link

Just to clarify: the code snippet above activates both pan and rectangle behavior for the image loaded into canvas (as shown below in the screencast).

app

@electron-microscopist
Copy link

had the same issue with one of my apps. Managed to fix it by installing the previous release of dash
pip install dash==1.10.0

Need to figure out why that is...

@GeorgeVJose
Copy link

Hi... Any updates on this issue? I'm still struggling with this problem. If I press the Save button initially, the correct tool gets selected. And nothing shows in the coordinates. But still, this is not good.. :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants