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

removal of auto save popup window #51

Closed
darkcurrent opened this issue Oct 29, 2022 · 5 comments
Closed

removal of auto save popup window #51

darkcurrent opened this issue Oct 29, 2022 · 5 comments

Comments

@darkcurrent
Copy link

Hello,

I want to add pylustrator into an application for non programmers. When pylustrator closed without saving, this popup is shown below. This is very useful for a lot of purposes but in this way the users of my application can accidently and easily update main application files which is not wanted. How can I remove this auto save popup? Thank you...

image

@rgerum
Copy link
Owner

rgerum commented Oct 29, 2022

hmm I could add a parameter to pylustrator.start to not ask for saving. But the user could still save the figure to the code. What is the use case? Shall the users only be able to save it to an image and not to the code? Or do you just want to get rid of the promt?

@darkcurrent
Copy link
Author

Thank you for your fast answer rgerum.
We will developing a software to collect data from Twitter, filter the data, auto-train and select NLP models, analyse the data and generate some report file with some graphics. This open source app will be made for completely non programmer social scientist. In the end, we want the users only can generate images and save it but the default plot parameters should be static. So the main app files can not be changed. :) Is there any way to implement this easily?

@rgerum
Copy link
Owner

rgerum commented Oct 29, 2022

ah ok, so you want to disable all saving to code and not just the prompt (you can also save using CTRL+S).
But yes it sounds feasible to implement this as a parameter to pylustrator.start, e.g. as pylustrator.start(save_code=False).

@darkcurrent
Copy link
Author

ah ok, so you want to disable all saving to code and not just the prompt (you can also save using CTRL+S). But yes it sounds feasible to implement this as a parameter to pylustrator.start, e.g. as pylustrator.start(save_code=False).

Yes exactly. pylustrator.start(save_code=False) this looks life saver :)

@rgerum rgerum closed this as completed in 9c04cc4 Nov 4, 2022
@rgerum
Copy link
Owner

rgerum commented Nov 4, 2022

it is now implemented as pylustrator.start(disable_save=True)

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

No branches or pull requests

2 participants