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

Uploader and Downloader could be Dialogs and not Widgets #7

Closed
KenT2 opened this issue Oct 22, 2015 · 0 comments
Closed

Uploader and Downloader could be Dialogs and not Widgets #7

KenT2 opened this issue Oct 22, 2015 · 0 comments

Comments

@KenT2
Copy link
Contributor

KenT2 commented Oct 22, 2015

I have used the new uploader and downloader. I have also been doing a lot of development of my app and it is now on github at https://github.com/KenT2/manager-for-pipresents

All my development and testing has been on Pi for server and Internet Explorer and Firefox running on Windows. Most museums will be Windows/IE so that is my most important user.

The uploader and downloader upload and download fine with one exception (see next issue) I have one problem with each of them, it is not possible to dynamically change the destination directory for the uploader or the source file for the downloader because they are defined as widgets in the main page rather than dialogs.

Uploader would be much better if you could do

   def on_a_click(self):
upload_dialog=gui.FileUploader(600,600,self.media_dir+os.sep)
    upload_dialog.set_on_success_listener(self,'on_media_upload_success')
    upload_dialog.set_on_failed_listener(self,'on_media_upload_failed')
    upload_dialog.show(self)

which would be executed as a result of a button click or menu click etc. event . It would open the browser's file selection dialog directly. Downloader would be similar and open the browser's download box.

    profile_download=gui.FileDownloader(600,600,'Click to download current profile',self.file_to_download)
    profile_download.show(self)
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

1 participant