diff --git a/README.md b/README.md index 28f175c..85888d9 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Extension for install and admin Python Pip in LibreOffice. Thanks! -https://gitlab.com/mauriciobaeza/zaz +https://git.cuates.net/elmau/zaz ### Software libre, no gratis diff --git a/files/ZAZPip_v0.8.0.oxt b/files/ZAZPip_v0.8.0.oxt index ae2c1a7..f679fe2 100644 Binary files a/files/ZAZPip_v0.8.0.oxt and b/files/ZAZPip_v0.8.0.oxt differ diff --git a/source/images/proxy.svg b/source/images/proxy.svg new file mode 100644 index 0000000..fadd828 --- /dev/null +++ b/source/images/proxy.svg @@ -0,0 +1,54 @@ + +image/svg+xml diff --git a/source/pythonpath/main.py b/source/pythonpath/main.py index 5df7702..48bc63a 100644 --- a/source/pythonpath/main.py +++ b/source/pythonpath/main.py @@ -9,8 +9,9 @@ _ = None TITLE = 'ZAZ-PIP' URL_PIP = 'https://bootstrap.pypa.io/get-pip.py' +URL_TEST = 'http://duckduckgo.com' PIP = 'pip' -URL_GIT = 'https://git.elmau.net/elmau' +URL_GIT = 'https://git.cuates.net/elmau/zaz-pip' ICON_OK = 'ok.svg' ICON_QUESTION = 'question.svg' @@ -298,6 +299,10 @@ class Controllers(object): self._install(path=path) return + def cmd_proxy_action(self, event): + app.msgbox('Config Proxy') + return + def _create_dialog(): BUTTON_WH = 20 @@ -408,6 +413,17 @@ def _create_dialog(): dialog.add_control(args) dialog.center(dialog.link_proyect, y=-5) + args = { + 'Type': 'Button', + 'Name': 'cmd_proxy', + 'Width': 15, + 'Height': 15, + 'Step': 10, + 'ImageURL': 'proxy.svg', + 'FocusOnClick': False, + } + dialog.add_control(args) + args = { 'Type': 'Listbox', 'Name': 'lst_log', @@ -534,6 +550,10 @@ def _create_dialog(): } dialog.add_control(args) + dialog.cmd_proxy.move(dialog.link_proyect, x=5, y=0) + controls = (dialog.link_proyect, dialog.cmd_proxy) + dialog.center(controls) + controls = (dialog.cmd_home, dialog.cmd_search, dialog.cmd_install, dialog.cmd_uninstall, dialog.cmd_shell) dialog.lbl_package.move(dialog.cmd_home) @@ -544,10 +564,10 @@ def _create_dialog(): dialog.lst_package.center() dialog.txt_search.center() dialog.center(controls) - dialog.center((dialog.txt_search, dialog.cmd_explore)) + controls = (dialog.txt_search, dialog.cmd_explore) + dialog.center(controls) dialog.step = 10 - dialog.cmd_install_pip.visible = not exists_pip dialog.cmd_admin_pip.visible = exists_pip dialog.lst_log.visible = False