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

Tkinter GUI download progress #9

Open
ysc3839 opened this issue Nov 12, 2016 · 5 comments
Open

Tkinter GUI download progress #9

ysc3839 opened this issue Nov 12, 2016 · 5 comments

Comments

@ysc3839
Copy link
Contributor

ysc3839 commented Nov 12, 2016

I think it's good. But the ZeroBundle doesn't include tkinter.
https://gist.github.com/ysc3839/208c0db6a40677e54027d339e96ad713

@HelloZeroNet
Copy link
Owner

Yeah, thanks for the code it would be nice to have a progress bar, but i'm not a big fan of tkinter (looks bad, slow startup) and including it to zerobundle would significantly increase the size of it.

So I think the possible solutions:

  • Start packing ZeroNet with ZeroBundle, so it does not needs to download from other sources.
  • Use ctypes based gui library. (pure-python, ligtweight, but win-only)

@ysc3839
Copy link
Contributor Author

ysc3839 commented Nov 30, 2016

I'm good at Win32 development and I can make one using ctypes.
As for Linux, we can use GTK+ with ctypes. But I know nothing about it.
For macOS, it seems that we can't use ctypes to call objc APIs. We have to use pyobjc.

@HelloZeroNet
Copy link
Owner

The third option would be not doing this in python, but using a standard installer, placing desktop/startmenu icon like most user expect.
Like .msi or nullsoft install system

@ysc3839
Copy link
Contributor Author

ysc3839 commented Nov 30, 2016

I think a "green" software (not require install, not write files into other folders) is good.

@ysc3839
Copy link
Contributor Author

ysc3839 commented Nov 30, 2016

I considered using py2exe in Windows. But I think it's not good to create a data directory in exe's path because this will mess it up. I like macOS's bundle.

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