Add button and image for config proxy
This commit is contained in:
parent
e64854c78c
commit
4eb0b51a6d
|
@ -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
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,54 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
version="1.0"
|
||||
x="0px"
|
||||
y="0px"
|
||||
viewBox="0 0 24 24"
|
||||
enable-background="new 0 0 100 100"
|
||||
xml:space="preserve"
|
||||
id="svg10"
|
||||
width="24"
|
||||
height="24"
|
||||
sodipodi:docname="proxy.svg"
|
||||
inkscape:version="1.1 (c4e8f9ed74, 2021-05-24)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"><sodipodi:namedview
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1"
|
||||
objecttolerance="10"
|
||||
gridtolerance="10"
|
||||
guidetolerance="10"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:window-width="2560"
|
||||
inkscape:window-height="1001"
|
||||
id="namedview8"
|
||||
showgrid="false"
|
||||
inkscape:zoom="18.185903"
|
||||
inkscape:cx="18.613319"
|
||||
inkscape:cy="9.7053198"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="42"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg10"
|
||||
inkscape:document-rotation="0"
|
||||
inkscape:pagecheckerboard="0" /><metadata
|
||||
id="metadata16"><rdf:RDF><cc:Work
|
||||
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
|
||||
id="defs14" /><g
|
||||
id="g6"
|
||||
transform="matrix(0.05357107,0,0,0.04663228,-1.0107505,0.6031494)"><path
|
||||
d="M 309.713,296.246 C 362.693,271.617 399.53,217.861 399.53,155.331 399.53,69.545 330.345,0 245,0 159.655,0 90.47,69.545 90.47,155.332 c 0,62.523 36.831,116.275 89.801,140.908 16.753,57.946 50.682,125.857 55.671,135.645 l 5.764,11.421 c -72.419,0.308 -130.615,10.624 -130.615,23.332 0,12.903 59.953,23.362 133.909,23.362 73.956,0 133.909,-10.459 133.909,-23.362 0,-12.707 -58.186,-23.022 -130.596,-23.332 l 5.801,-11.421 c 4.945,-9.848 38.843,-77.736 55.599,-135.639 z m -100.04,-8.507 -3.868,-13.378 -12.628,-5.872 c -43.8,-20.369 -72.101,-64.785 -72.101,-113.157 0,-68.775 55.593,-124.727 123.925,-124.727 68.333,0 123.925,55.952 123.925,124.727 0,48.378 -28.306,92.797 -72.113,113.162 l -12.627,5.87 -3.87,13.376 c -8.981,31.034 -23.516,65.872 -35.322,92.015 -11.674,-25.799 -26.267,-60.698 -35.321,-92.016 z"
|
||||
id="path2" /><ellipse
|
||||
cx="245"
|
||||
cy="155.332"
|
||||
rx="51.351002"
|
||||
ry="51.617001"
|
||||
id="ellipse4" /></g></svg>
|
After Width: | Height: | Size: 2.6 KiB |
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue