PDA

View Full Version : Dropbox Plugin



2stein
26-02-15, 20:40
hi guys,
i'm very proud to announce that i've implemented a dropbox e2 plugin. it's not perfect yet, but it basically works. it's based on https://code.google.com/p/dreamdropbox/wiki/home. i added a couple of scripts and completely rewrote the python code.
i use the plugin for syncing my pictures to the box for watching on tv.
here's the code:
https://github.com/CodeIsUs/e2dropbox/
if someone wants to make code review please feel free.
it's my first python code, so bear with me. :p

2stein
12-05-15, 09:44
hi guys,
in the meantime i've removed the bash scripts and replaced them with the dropox python api. works nicely.
now i'd like to use MessageBox to implement a progress indication, like "2 of 5 files downloaded...".
I thought, I could:

- self.progress = self.session.openWithCallack(self.doDownload, MessageBox...)

- def doDownload(self):
do the downloads, update progress: self.progress.txt = "new progress"
self.progress.close()

however, that doesn't work as the first call self.session.openWithCallback doesn't seem to return, and thus no downloads occur.
any advice?
can i make MessageBox just show the message and then return?
Do I have to implement a separate screen class showProgress for that?
Thanks

2stein
12-05-15, 21:27
well, i figured it out myself :-)
i'm using a timer now, to break the loop and allow the message box to be rendered in between :-)