summaryrefslogtreecommitdiffstats
path: root/translations/source/pt-BR/helpcontent2/source/text/sbasic/python.po
diff options
context:
space:
mode:
Diffstat (limited to 'translations/source/pt-BR/helpcontent2/source/text/sbasic/python.po')
-rw-r--r--translations/source/pt-BR/helpcontent2/source/text/sbasic/python.po3617
1 files changed, 3617 insertions, 0 deletions
diff --git a/translations/source/pt-BR/helpcontent2/source/text/sbasic/python.po b/translations/source/pt-BR/helpcontent2/source/text/sbasic/python.po
new file mode 100644
index 000000000..95e8f3601
--- /dev/null
+++ b/translations/source/pt-BR/helpcontent2/source/text/sbasic/python.po
@@ -0,0 +1,3617 @@
+#. extracted from helpcontent2/source/text/sbasic/python
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: https://bugs.libreoffice.org/enter_bug.cgi?product=LibreOffice&bug_status=UNCONFIRMED&component=UI\n"
+"POT-Creation-Date: 2022-04-11 15:28+0200\n"
+"PO-Revision-Date: 2022-08-07 18:14+0000\n"
+"Last-Translator: Olivier Hallot <olivier.hallot@libreoffice.org>\n"
+"Language-Team: Portuguese (Brazil) <https://translations.documentfoundation.org/projects/libo_help-master/textsbasicpython/pt_BR/>\n"
+"Language: pt-BR\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=n > 1;\n"
+"X-Accelerator-Marker: ~\n"
+"X-Generator: Weblate 4.12.2\n"
+"X-POOTLE-MTIME: 1562247335.000000\n"
+
+#. naSFZ
+#: main0000.xhp
+msgctxt ""
+"main0000.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python Scripts"
+msgstr "Scripts em Python"
+
+#. 9RJv6
+#: main0000.xhp
+msgctxt ""
+"main0000.xhp\n"
+"bm_id491543348147708\n"
+"help.text"
+msgid "<bookmark_value>macros;Python scripts</bookmark_value> <bookmark_value>Python;macros</bookmark_value> <bookmark_value>scripts;Python</bookmark_value>"
+msgstr "<bookmark_value>macros;Scripts em Python</bookmark_value> <bookmark_value>Python;macros</bookmark_value> <bookmark_value>scripts;Python</bookmark_value>"
+
+#. vAoRU
+#: main0000.xhp
+msgctxt ""
+"main0000.xhp\n"
+"hd_id3154232\n"
+"help.text"
+msgid "<variable id=\"pythonscriptshelp\"><link href=\"text/sbasic/python/main0000.xhp\" name=\"mainpython\">%PRODUCTNAME Python Scripts Help</link></variable>"
+msgstr "<variable id=\"pythonscriptshelp\"><link href=\"text/sbasic/python/main0000.xhp\" name=\"mainpython\">Ajuda dos scripts Python do %PRODUCTNAME</link></variable>"
+
+#. snE38
+#: main0000.xhp
+msgctxt ""
+"main0000.xhp\n"
+"par_id3153894\n"
+"help.text"
+msgid "%PRODUCTNAME provides an Application Programming Interface (API) that allows controlling the $[officename] components with different programming languages by using the $[officename] Software Development Kit (SDK). For more information about the $[officename] API and the Software Development Kit, visit <link href=\"https://api.libreoffice.org/\" name=\"api.libreoffice.org\">https://api.libreoffice.org</link>"
+msgstr "O %PRODUCTNAME fornece uma Interface de Programação de Aplicativo (API) que permite controlar os componentes do $[officename] com diferentes linguagens de programação utilizando o $[officename] Software Development Kit (SDK). Para obter mais informações sobre a API e o Software Development Kit do $[officename], visite <link href=\"https://api.libreoffice.org/\" name=\"api.libreoffice.org\">https://api.libreoffice.org</link>"
+
+#. 9EUoJ
+#: main0000.xhp
+msgctxt ""
+"main0000.xhp\n"
+"par_id3147226\n"
+"help.text"
+msgid "This help section explains the most common Python script functions for %PRODUCTNAME. For more in-depth information please refer to the <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"wiki.documentfoundation.org PYTHON Guide\">Designing & Developing Python Applications</link> on the Wiki."
+msgstr "Esta seção da Ajuda explica as funções mais comuns dos scripts Python para o %PRODUCTNAME. Para ver informações detalhadas, consulte o <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"wiki.documentfoundation.org PYTHON Guide\">Designing & Developing Python Applications</link> no Wiki."
+
+#. FjaiD
+#: main0000.xhp
+msgctxt ""
+"main0000.xhp\n"
+"hd_id3146957\n"
+"help.text"
+msgid "Working with Python Scripts in %PRODUCTNAME"
+msgstr "Trabalhar com scripts Python no %PRODUCTNAME"
+
+#. mQFKb
+#: main0000.xhp
+msgctxt ""
+"main0000.xhp\n"
+"N0102\n"
+"help.text"
+msgid "You can execute Python scripts choosing <menuitem>Tools - Macros - Run Macro</menuitem>. Editing scripts can be done with your preferred text editor. Python scripts are present in various locations detailed hereafter. You can refer to Programming examples for macros illustrating how to run the Python interactive console from %PRODUCTNAME."
+msgstr "Você pode executar scripts Python escolhendo <menuitem>Ferramentas - Macros - Executar macro</menuitem>. A edição de scripts pode ser feita com o seu editor de texto preferido. Scripts Python estão presentes em vários locais detalhados a seguir. Você pode consultar os exemplos de programação para macros que ilustram como executar o console interativo do Python a partir do %PRODUCTNAME."
+
+#. nytCF
+#: main0000.xhp
+msgctxt ""
+"main0000.xhp\n"
+"par_id131568902936659\n"
+"help.text"
+msgid "The %PRODUCTNAME scripting framework for Python is optional on some GNU/Linux distributions. If it is installed, selecting <menuitem>Tools - Macros - Run Macro</menuitem> and checking <literal>Application Macros</literal> for the presence of <literal>HelloWorld – HelloWorldPython</literal> macro is sufficient. If absent, please refer to your distribution documentation in order to install the %PRODUCTNAME scripting framework for Python."
+msgstr "A infraestrutura de programação em Python do %PRODUCTNAME é opcional para algumas distribuições GNU/Linux. Se estiver instalada, ao selecionar <menuitem>Ferramentas - Macros - Executar macro</menuitem> e conferindo a existência da macro <literal>HelloWorld - HelloWorldPython</literal> em <literal>Macros da aplicação</literal> é suficiente. Caso contrário, verifique a documentação de sua distribuição para instalar a infraestrutura de programação em Python do %PRODUCTNAME."
+
+#. naZBV
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python to Basic"
+msgstr "Do Python ao Basic"
+
+#. dkYtk
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0330\n"
+"help.text"
+msgid "<bookmark_value>Python;Calling Basic</bookmark_value> <bookmark_value>ParamArray</bookmark_value>"
+msgstr "<bookmark_value>Python;chamar Basic</bookmark_value> <bookmark_value>ParamArray</bookmark_value>"
+
+#. rGfKE
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0331\n"
+"help.text"
+msgid "<variable id=\"py2ba_h1\"><link href=\"text/sbasic/python/python_2_basic.xhp\" name=\"Calling Basic macros from Python\">Calling Basic Macros from Python</link></variable>"
+msgstr "<variable id=\"py2ba_h1\"><link href=\"text/sbasic/python/python_2_basic.xhp\" name=\"Calling Basic macros from Python\">Chamar macros Basic pelo Python</link></variable>"
+
+#. XzJcA
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0332\n"
+"help.text"
+msgid "You can call %PRODUCTNAME Basic macros from Python scripts, and notable features can be obtained in return such as:"
+msgstr "É possível chamar as macros Basic do %PRODUCTNAME a partir de scripts Python, e recursos notáveis podem ser obtidos tais como:"
+
+#. ehCg3
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0333\n"
+"help.text"
+msgid "Simple logging facilities out of <literal>Access2Base</literal> library Trace console,"
+msgstr "Recursos de \"logging\" simples pelo console de \"tracing\" da biblioteca do <literal>Access2Base</literal>,"
+
+#. HhDdS
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0334\n"
+"help.text"
+msgid "<literal>InputBox</literal> and <literal>MsgBox</literal> screen I/O functions based on Basic to ease Python development,"
+msgstr "Funções de E/S de tela <literal>InputBox</literal> e <literal>MsgBox</literal> baseadas no Basic para facilitar o desenvolvimento em Python,"
+
+#. DzFBB
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0335\n"
+"help.text"
+msgid "<literal>Xray</literal> calls interrupting Python script execution to help inspect variables."
+msgstr "Chamadas ao <literal>Xray</literal> interrompendo a execução de scripts Python para ajudar a inspecionar variáveis."
+
+#. fDXhz
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0336\n"
+"help.text"
+msgid "The %PRODUCTNAME Application Programming Interface (API) Scripting Framework supports inter-language script execution between Python and Basic, or other supported programming languages for that matter. Arguments can be passed back and forth across calls, provided that they represent primitive data types that both languages recognize, and assuming that the Scripting Framework converts them appropriately."
+msgstr "A Interface de Programação de Aplicações (API) Scripting Framework do %PRODUCTNAME suporta a execução de scripts inter-linguagem entre Python e o Basic, ou demais linguagens suportadas. Os argumentos podem ser passados para frente ou de volta entre chamadas, desde que representem tipo de dados primitivos que ambas linguagens reconheçam, e assumindo que o Scripting Framework faça a conversão adequadamente."
+
+#. Gn9Bv
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0337\n"
+"help.text"
+msgid "It is recommended to have knowledge of Python standard modules and %PRODUCTNAME API features prior to perform inter-language calls from Python to Basic, JavaScript or any other script engine."
+msgstr "Recomenda-se conhecer os módulos padrões do Python e dos recursos da API do %PRODUCTNAME antes de começar a executar chamadas inter-linguagens do Python ao Basic, Javascript ou qualquer outro motor de scripts."
+
+#. Sffwq
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0338\n"
+"help.text"
+msgid "When running Python scripts from an Integrated Development Environment (IDE), the %PRODUCTNAME-embedded Basic engine may be absent. Avoid Python-to-%PRODUCTNAME Basic calls in such contexts. However Python environment and Universal Networks Objects (UNO) are fully available. Refer to <link href=\"text/sbasic/python/python_ide.xhp\" name=\"Setting Up an Integrated IDE for Python\">Setting Up an Integrated IDE for Python</link> for more information."
+msgstr "Ao executar scripts Python dentro de um ambiente integrado de desenvolvimento (IDE), o motor incorporado Basic do %PRODUCTNAME pode estar ausente. Evite chamadas ao %PRODUCTNAME Basic neste contexto. Entretanto o ambiente Python e os Universal Networks Objects (UNO) estão plenamente disponíveis. Consulte <link href=\"text/sbasic/python/python_ide.xhp\" name=\"Setting Up an Integrated IDE for Python\">Configurar um Ambiente de Desenvolvimento Integrado (IDE) para Python</link> para mais informações."
+
+#. NcuDF
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0339\n"
+"help.text"
+msgid "Retrieving %PRODUCTNAME Basic Scripts"
+msgstr "Resgatar scripts Basic do %PRODUCTNAME"
+
+#. yiTqz
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0340\n"
+"help.text"
+msgid "%PRODUCTNAME Basic macros can be personal, shared, or embedded in documents. In order to execute them, Python run time needs to be provided with Basic macro locations. Implementing the <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScript.html\" name=\"XScriptProvider interface\">com.sun.star.script.provider.XScriptProvider</link> interface allows the retrieval of executable scripts:"
+msgstr "As macros Basic do %PRODUCTNAME Basic podem ser pessoais, compartilhadas ou embutidas em documentos. Para executá-las, o ambiente de execução do Python precisa ser fornecido nos locais em conjunto com as macros Basic. Implementar a interface <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScript.html\" name=\"XScriptProvider interface\">com.sun.star.script.provider.XScriptProvider</link> permite resgatar os scripts executáveis:"
+
+#. w4UAs
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0341\n"
+"help.text"
+msgid "<bookmark_value>API;script.provider.MasterScriptProviderFactory: Retrieving Basic scripts</bookmark_value><bookmark_value>API;script.provider.XScript: Executing Basic scripts</bookmark_value><bookmark_value>API;XScriptProvider: Retrieving Basic scripts</bookmark_value>"
+msgstr "<bookmark_value>API;script.provider.MasterScriptProviderFactory: resgatar scripts Basic</bookmark_value><bookmark_value>API;script.provider.XScript: executar scripts Basic</bookmark_value><bookmark_value>API;XScriptProvider: resgatar scripts Basic</bookmark_value>"
+
+#. iu5YW
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0347\n"
+"help.text"
+msgid "'''Grab Basic script object before invocation.'''"
+msgstr "'''Agarre os objetos do script Basic antes de invocá-los.'''"
+
+#. PnPTm
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0363\n"
+"help.text"
+msgid "Executing %PRODUCTNAME Basic Scripts"
+msgstr "Executar scripts Basic do %PRODUCTNAME"
+
+#. GNDbf
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0364ndx\n"
+"help.text"
+msgid "<bookmark_value>API;script.provider.XScript : Executing Basic scripts</bookmark_value>"
+msgstr "<bookmark_value>API;script.provider.XScript : Executar scripts Basic</bookmark_value>"
+
+#. 7BfDh
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0364\n"
+"help.text"
+msgid "The %PRODUCTNAME Software Development Kit (SDK) documentation for <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScript.html#a11a551f5a2520f74c5109cd8c9f8c7b7\" name=\"XScript interface\">com.sun.star.script.provider.XScript</link> interface details the calling convention for inter-language calls. Invocation of functions requires three arrays:"
+msgstr "A documentação do kit de desenvolvimento de software (SDK) do %PRODUCTNAME para a interface <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScript.html#a11a551f5a2520f74c5109cd8c9f8c7b7\" name=\"XScript interface\">com.sun.star.script.provider.XScript</link> detalha a convenção de chamadas para chamadas inter-linguagem. A invocação de funções requer três vetores:"
+
+#. UDhtt
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0365\n"
+"help.text"
+msgid "the first lists the arguments of the called routine"
+msgstr "o primeiro relaciona os argumentos da rotina chamada"
+
+#. A9CMY
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0366\n"
+"help.text"
+msgid "the second identifies modified arguments"
+msgstr "o segundo identifica os argumentos modificados"
+
+#. v3GcD
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0367\n"
+"help.text"
+msgid "the third stores the return values"
+msgstr "o terceiro armazena os valores retornados"
+
+#. TeGwy
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0368\n"
+"help.text"
+msgid "Python Syntax"
+msgstr "Sintaxe Python"
+
+#. oWBhX
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0372\n"
+"help.text"
+msgid "Examples of Personal or Shared Scripts"
+msgstr "Exemplos de scripts pessoais ou compartilhados"
+
+#. nyNGG
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0373\n"
+"help.text"
+msgid "Examples in <link href=\"text/sbasic/python/python_screen.xhp\" name=\"Input/Output to Screen\">Input/Output to Screen</link> detail Python to Basic invocation calls. <link href=\"text/sbasic/python/python_document_events.xhp\" name=\"Monitoring Document Events\">Monitoring Document Events</link> illustrates the usage of *args Python idiom to print a variable number of parameters to <literal>Access2Base</literal> logging console dialog."
+msgstr "Os exemplos em <link href=\"text/sbasic/python/python_screen.xhp\" name=\"Input/Output to Screen\">Entrada e saída na tela</link> detalham as chamadas ao Basic desde o Python. Em <link href=\"text/sbasic/python/python_document_events.xhp\" name=\"Monitoring Document Events\">Monitorar eventos de documento</link> ilustra-se o emprego do idioma Python *args para imprimir um número variável de parâmetros para a caixa de diálogo de logging do <literal>Access2Base</literal>."
+
+#. dt25D
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0374\n"
+"help.text"
+msgid "At time of development you can interrupt Python script execution using <link href=\"https://berma.pagesperso-orange.fr/index2.html\" name=\"Xray extension\">Xray extension</link> in order to inspect properties and methods of UNO objects. The APSO extension debugger allows object introspection using either Xray either MRI extensions."
+msgstr "Enquanto estiver desenvolvendo, você pode interromper a execução de um script Python utilizando <link href=\"https://berma.pagesperso-orange.fr/index2.html\" name=\"Xray extension\">a extensão Xray</link> para inspecionar propriedades e métodos de objetos UNO. O depurador da extensão APSO permite instrospecção de objetos utilizando tanto a extensão Xray quanto a extensão MRI."
+
+#. F8dF9
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0378\n"
+"help.text"
+msgid "Examples of Embedded Scripts in Documents"
+msgstr "Exemplo de scripts embutidos em documentos"
+
+#. EmqHD
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0379\n"
+"help.text"
+msgid "<literal>*args</literal>Python simplified syntax can be used in conjunction with %PRODUCTNAME Basic routines that accept a variable number of arguments. Below <literal>Print</literal> and <literal>SUM</literal> Python functions call their Basic <literal>Print</literal> and <literal>SUM</literal> counterparts, using aforementioned <literal>getBasicScript</literal> function. Exception handling is not detailed."
+msgstr "A sintaxe simplificada do Python <literal>*args</literal> pode ser usada em conjunto com as rotinas do %PRODUCTNAME Basic que aceitam um número variável de argumentos. Abaixo tem-se as funções Python <literal>Print</literal> e <literal>SUM</literal> chamando suas contrapartidas Basic <literal>Print</literal> e <literal>SUM</literal>, usando a função <literal>getBasicScript</literal>. O tratamento das exceções não é detalhado aqui."
+
+#. ej8XP
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0384\n"
+"help.text"
+msgid "\"\"\"Outputs the specified strings or numeric expressions in a dialog box.\"\"\""
+msgstr "\"\"\"Saída de texto ou expressão numérica numa caixa de diálogo.\"\"\""
+
+#. RJuGD
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0389\n"
+"help.text"
+msgid "\"\"\"SUM the specified number expression.\"\"\""
+msgstr "\"\"\"Soma da expressão numérica especificada.\"\"\""
+
+#. aPmSn
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0402\n"
+"help.text"
+msgid "The %PRODUCTNAME Basic <literal>Print</literal> and <literal>SUM</literal> document-based routines accept a variable number of arguments. The <literal>Private</literal> or <literal>Public</literal> attributes have no effect. The arguments type checking is skipped for clarity."
+msgstr "As rotinas do %PRODUCTNAME Basic <literal>Print</literal> e <literal>SUM</literal> em documentos aceitam um número variável de argumentos. Os atributos <literal>Private</literal> ou <literal>Public</literal> não tem efeito. A verificação dos tipo de dados foi omitida para melhor clareza."
+
+#. jHUxq
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0407\n"
+"help.text"
+msgid "''' Print item list of variable number '''"
+msgstr "''' Imprime a lista de itens de tamanho variável'''"
+
+#. 3pFAj
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0408\n"
+"help.text"
+msgid "' all CStr() convertible args are accepted"
+msgstr "' Todos os argumentos de CStr() são aceitos"
+
+#. G9n5d
+#: python_2_basic.xhp
+msgctxt ""
+"python_2_basic.xhp\n"
+"N0419\n"
+"help.text"
+msgid "''' SUM a variable list of numbers '''"
+msgstr "''' SUM de uma lista variável de argumentos '''"
+
+#. CDJo4
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"tit\n"
+"help.text"
+msgid "Opening a Dialog with Python"
+msgstr "Abrir uma caixa de diálogo com Python"
+
+#. XWAwA
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0334\n"
+"help.text"
+msgid "<bookmark_value>Python;dialogs</bookmark_value> <bookmark_value>dialog box;Python</bookmark_value> <bookmark_value>dialogs;Python</bookmark_value>"
+msgstr "<bookmark_value>Python;caixa de diálogos</bookmark_value> <bookmark_value>caixa de diálogo;Python</bookmark_value> <bookmark_value>diálogos;Python</bookmark_value>"
+
+#. rXdUF
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0336\n"
+"help.text"
+msgid "<variable id=\"pythondialog\"><link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"command_name\">Opening a Dialog with Python</link></variable>"
+msgstr "<variable id=\"pythondialog\"><link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"command_name\">Abrir uma caixa de diálogo com Python</link></variable>"
+
+#. MZJA9
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0337\n"
+"help.text"
+msgid "%PRODUCTNAME static dialogs are created with the <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"dialog editor\">Dialog editor</link> and are stored in varying places according to their personal (My Macros), shared (Application Macros) or document-embedded nature. In reverse, dynamic dialogs are constructed at runtime, from Basic or Python scripts, or using any other <link href=\"text/shared/guide/scripting.xhp\">%PRODUCTNAME supported language</link> for that matter. Opening static dialogs with Python is illustrated herewith. Exception handling and internationalization are omitted for clarity."
+msgstr "As caixas de diálogo estáticas do %PRODUCTNAME são criadas com o <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"dialog editor\">Editor de caixas de diálogo</link> e são armazenados em vários lugares a depender da natureza pessoal (Minhas Macros), compartilhada (Macros da aplicação) ou embutidas em documentos. Por outro lado, caixas de diálogos dinâmicas são construídas em tempo de execução, a partir de macros Basic ou Python, ou usando qualquer outra <link href=\"text/shared/guide/scripting.xhp\">linguagem de scripts suportada pelo %PRODUCTNAME</link>. Abrir caixas de diálogo estáticas com Python é ilustrado abaixo. O tratamento de exceções e a internacionalização foram omitidas em favor da clareza."
+
+#. AbdfS
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0338\n"
+"help.text"
+msgid "My Macros or Application Macros dialogs"
+msgstr "Caixas de diálogo Minhas macros ou Macros da aplicação"
+
+#. pcUEy
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0339\n"
+"help.text"
+msgid "The examples below open <literal>Access2Base Trace</literal> console or the imported <literal>TutorialsDialog</literal> dialog with <menuitem>Tools - Macros - Run Macro</menuitem> menu:"
+msgstr "Os exemplos abaixo abrem o console de <literal>rastreio do Access2Base</literal> da caixa de diálogo importada <literal>TutorialsDialog</literal> com o menu <menuitem>Ferramentas - Macros - Executar macro</menuitem>:"
+
+#. ChW9B
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0364\n"
+"help.text"
+msgid "Document embedded dialogs"
+msgstr "Caixas de diálogo embutidas em documentos"
+
+#. uHH6H
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0365\n"
+"help.text"
+msgid "The example below opens a newly edited <literal>Dialog1</literal> dialog from a document with <menuitem>Tools - Macros - Run Macro</menuitem> menu:"
+msgstr "O exemplo abaixo abre uma caixa de diálogo <literal>Dialog1</literal> recém editada de um documento com o menu <menuitem>Ferramentas - Macros - Executar macro</menuitem>:"
+
+#. mMo7w
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0370\n"
+"help.text"
+msgid "\"\"\" Display a doc-based dialog \"\"\""
+msgstr "\"\"\" Exibir uma caixa de diálogo embutida no documento \"\"\""
+
+#. txExG
+#: python_dialogs.xhp
+msgctxt ""
+"python_dialogs.xhp\n"
+"N0381\n"
+"help.text"
+msgid "Refer to <literal>msgbox.py</literal> in <literal>{installation}/program/</literal> directory for Python dynamic dialog examples."
+msgstr "Consulte <literal>msgbox.py</literal> no diretório <literal>{installation}/program/</literal> para exemplos de caixas de diálogo dinâmicas em Python."
+
+#. zNyQB
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"tit\n"
+"help.text"
+msgid "Monitoring Document Events"
+msgstr "Monitorar eventos de documentos"
+
+#. GyBAT
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0526\n"
+"help.text"
+msgid "<bookmark_value>Basic;Monitoring Document Events</bookmark_value> <bookmark_value>Python;Monitoring Document Events</bookmark_value> <bookmark_value>Access2Base;Console</bookmark_value> <bookmark_value>Access2Base;Trace</bookmark_value> <bookmark_value>API;document.DocumentEvent: Monitoring Document Event</bookmark_value> <bookmark_value>API;document.XDocumentEventBroadcaster: Monitoring Document Event</bookmark_value> <bookmark_value>API;document.XDocumentEventListener: Monitoring Document Event</bookmark_value> <bookmark_value>API;lang.EventObject: Monitoring Document Event</bookmark_value>"
+msgstr "<bookmark_value>BASIC;monitorar eventos de documentos</bookmark_value> <bookmark_value>Python;monitorar eventos de documentos</bookmark_value> <bookmark_value>Access2Base;console</bookmark_value> <bookmark_value>Access2Base;Rastreamento</bookmark_value> <bookmark_value>API;document.DocumentEvent: monitorar eventos de documento</bookmark_value> <bookmark_value>API;document.XDocumentEventBroadcaster: Monitorar eventos de documento</bookmark_value> <bookmark_value>API;document.XDocumentEventListener: monitorar eventos de documento</bookmark_value> <bookmark_value>API;lang.EventObject: monitorar eventos de documento</bookmark_value>"
+
+#. D6i78
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0527\n"
+"help.text"
+msgid "<variable id=\"pythonmonitor\"><link href=\"text/sbasic/python/python_document_events.xhp\" name=\"Monitoring Document Events\">Listening to Document Events</link></variable>"
+msgstr "<variable id=\"pythonmonitor\"><link href=\"text/sbasic/python/python_document_events.xhp\" name=\"Monitoring Document Events\">Acompanhar eventos de documento</link></variable>"
+
+#. 9kSGW
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id641630582314861\n"
+"help.text"
+msgid "Listening to document events can help in the following situations:"
+msgstr "Acompanhar eventos de documento pode ser útil nas seguintes situações:"
+
+#. NEQoZ
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id431630582396327\n"
+"help.text"
+msgid "Identify a new document at opening time, as opposed to existing ones, and perform a dedicated setup."
+msgstr "Identificar um novo documento no momento de sua abertura, em contrate a documentos existentes, e executar operações de setup dedicadas."
+
+#. Tror9
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id461630582396782\n"
+"help.text"
+msgid "Control the processing of document save, document copy, print or mailmerge requests."
+msgstr "Controlar o processamento de salvar, copiar e imprimir documentos, bem como requisições de mala direta."
+
+#. xrRHB
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id631630582394790\n"
+"help.text"
+msgid "Recalculate table of contents, indexes or table entries of a Writer document when document is going to be closed"
+msgstr "Recalcular conteúdos de tabelas, índices ou entradas de tabelas em um documento Writer quando o documento está prestes a ser fechado."
+
+#. fCNvj
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id601630582398998\n"
+"help.text"
+msgid "Import math Python packages before opening a Calc document. Release these packages when the document closes."
+msgstr "Importar pacotes matemáticos Python antes de abrir um documento Calc. Descarregar tais pacotes da memória quando o documento é fechado."
+
+#. bXprs
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0528\n"
+"help.text"
+msgid "Next to <link href=\"text/sbasic/shared/01040000.xhp\" name=\"assigning macros to events\">assigning macros to events</link>, one can monitor events raised by %PRODUCTNAME documents. Application Programming Interface (API) broadcasters are responsible for calling event scripts. Unlike listeners that require to define all supported methods, even if unused, document monitors require only two methods next to hooked event scripts."
+msgstr "Além de <link href=\"text/sbasic/shared/01040000.xhp\" name=\"assigning macros to events\">atribuir macros a eventos</link>, você pode monitorar eventos ativados por documentos do %PRODUCTNAME. Os broadcasters da Application Programming Interface (API) são responsáveis pelas chamadas a macros de eventos. Diferente dos listeners que requerem a definição de todos os métodos suportados, mesmo que não utilizados, a monitoração de documentos requer somente dois métodos além dos scripts de eventos conectados."
+
+#. 6j5Bu
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0529\n"
+"help.text"
+msgid "Monitoring Document Events"
+msgstr "Monitorar eventos de documento"
+
+#. VwSwW
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0530\n"
+"help.text"
+msgid "Monitoring is illustrated herewith for Basic and Python languages using object-oriented programming. Assigning <literal>OnLoad</literal> script, to the <menuitem>Open Document</menuitem> event, suffices to initiate and terminate document event monitoring. <menuitem>Tools - Customize</menuitem> menu <menuitem>Events</menuitem> tab is used to assign either scripts."
+msgstr "A monitoração é ilustrada abaixo para as linguagens Basic e Python utilizando a programação orientada a objetos. Atribuir o script <literal>OnLoad</literal> ao evento <menuitem>Abrir documento</menuitem>, é o bastante para iniciar e terminar a monitoração de eventos do documento. A aba <menuitem>Eventos</menuitem> do menu <menuitem>Ferramentas - Personalizar</menuitem> é utilizada para especificar ambos os scripts."
+
+#. KgWvt
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0531\n"
+"help.text"
+msgid "Intercepting events helps setting scripts pre- and post-conditions such as loading and unloading libraries or track script processing in the background. <literal>Access2Base.Trace</literal> module usage is illustrating that second context."
+msgstr "Interceptar eventos ajuda a definir pré e pós-condições tais como carregar e descarregar bibliotecas ou rastrear processamento de scripts que rodam em modo silencioso. O módulo <literal>Access2Base.Trace</literal> ilustra o segundo contexto."
+
+#. BG7Xs
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0532\n"
+"help.text"
+msgid "With Python"
+msgstr "Com Python"
+
+#. B4G2y
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"bm_id721622446590963\n"
+"help.text"
+msgid "<bookmark_value>API;frame.Desktop: Monitoring Document Event</bookmark_value> <bookmark_value>API;script.provider.MasterScriptProviderFactory: Monitoring Document Event</bookmark_value> <bookmark_value>API;script.provider.XScript: Monitoring Document Event</bookmark_value>"
+msgstr "<bookmark_value>API;frame.Desktop: Monitorando evento de documento</bookmark_value> <bookmark_value>API;script.provider.MasterScriptProviderFactory: Monitorando evento de documento</bookmark_value> <bookmark_value>API;script.provider.XScript: Monitorando evento de documento</bookmark_value>"
+
+#. eGKkK
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0533\n"
+"help.text"
+msgid "Events monitoring starts from object instantiation and ultimately stops when Python releases the object. Raised events are reported using <literal>Access2Base</literal> console."
+msgstr "A monitoração de eventos começa da instanciação do objeto e termina quando o Python libera o objeto. Eventos levantados são reportados utilizando a console do <literal>Access2Base</literal>."
+
+#. mCDwK
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0534\n"
+"help.text"
+msgid "<literal>OnLoad</literal> and <literal>OnUnload</literal> events can be used to respectively set and unset Python programs path. They are described as <menuitem>Open document</menuitem> and <menuitem>Document closed</menuitem>."
+msgstr "Os eventos <literal>OnLoad</literal> e <literal>OnUnload</literal> podem ser utilizados, respectivamente, para definir ou desfazer a definição de caminhos de programas Python. Eles são descritos como <menuitem>Abrir documento</menuitem> e <menuitem>Documento fechado</menuitem>."
+
+#. i7waD
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0544\n"
+"help.text"
+msgid "\"\"\" Monitor document events \"\"\""
+msgstr "\"\"\" Monitorar eventos de documento \"\"\""
+
+#. 4k7DQ
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0546\n"
+"help.text"
+msgid "adapted from 'Python script to monitor OnSave event' at"
+msgstr "adaptado de 'Python script to monitor OnSave event' de"
+
+#. AMBQD
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0550\n"
+"help.text"
+msgid "\"\"\" Document events monitor \"\"\""
+msgstr "\"\"\" Monitorar eventos de documento \"\"\""
+
+#. FNyTn
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0551\n"
+"help.text"
+msgid "''' report using Access2Base.Trace console OR"
+msgstr "''' reportar utilizando a console Access2Base.Trace OU"
+
+#. ops87
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0552\n"
+"help.text"
+msgid "report in 1st sheet, 1st column for Calc docs '''"
+msgstr "reportar na 1ª planilha, 1ª coluna para documentos do Calc '''"
+
+#. SUrHQ
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0558\n"
+"help.text"
+msgid "#self.row = 0 # uncomment for Calc documents only"
+msgstr "#self.row = 0 # descomente somente para documentos do Calc"
+
+#. bdxDG
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0560\n"
+"help.text"
+msgid "self.listen() # Start monitoring doc. events"
+msgstr "self.listen() # Comece a monitorar eventos de documento"
+
+#. 8tXZv
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0569\n"
+"help.text"
+msgid "\"\"\" Output doc. events on 1st column of a Calc spreadsheet \"\"\""
+msgstr "\"\"\" Saída dos eventos de doc na 1ª coluna de uma planilha Calc \"\"\""
+
+#. HEByB
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0575\n"
+"help.text"
+msgid "def listen(self, *args): # OnLoad/OnNew at the earliest"
+msgstr "def listen(self, *args): # OnLoad/OnNew o mais cedo"
+
+#. eq9UC
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0576\n"
+"help.text"
+msgid "\"\"\" Start doc. events monitoring \"\"\""
+msgstr "\"\"\" Começar monitoração de eventos de documento \"\"\""
+
+#. o7xSw
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0578\n"
+"help.text"
+msgid "Console.log(\"INFO\", \"Document events are being logged\", True)"
+msgstr "Console.log(\"INFO\", \"Os eventos de documento estão sendo registrados\", True)"
+
+#. jnyCD
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0580\n"
+"help.text"
+msgid "def sleep(self, *args): # OnUnload at the latest (optional)"
+msgstr "def sleep(self, *args): # OnUnload por último (opcional)"
+
+#. QiSAD
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0581\n"
+"help.text"
+msgid "\"\"\" Stop doc. events monitoring \"\"\""
+msgstr "\"\"\" Encerrar monitoração de eventos de documento \"\"\""
+
+#. TyiYD
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0583\n"
+"help.text"
+msgid "Console.log(\"INFO\", \"Document events have been logged\", True)"
+msgstr "Console.log(\"INFO\", \"Os eventos de documento foram registrados\", True)"
+
+#. utJGT
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0587\n"
+"help.text"
+msgid "\"\"\" Intercepts all doc. events \"\"\""
+msgstr "\"\"\" Interceptar todos os eventos de documento \"\"\""
+
+#. Xwnsi
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0588\n"
+"help.text"
+msgid "#self.setCell(event.Source, event.EventName) # only for Calc docs"
+msgstr "#self.setCell(event.Source, event.EventName) # somente para documentos do Calc"
+
+#. rE9Ep
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0595\n"
+"help.text"
+msgid "\"\"\" Release all activities \"\"\""
+msgstr "\"\"\" Liberar todas as atividades \"\"\""
+
+#. XaEoP
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0601\n"
+"help.text"
+msgid "def OnLoad(*args): # 'Open Document' event"
+msgstr "def OnLoad(*args): # evento 'Abrir documento'"
+
+#. PmjAB
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0602\n"
+"help.text"
+msgid "listener = UiDocument() # Initiates listening"
+msgstr "listener = UiDocument() # Inicialização do listener"
+
+#. CkJg4
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0604\n"
+"help.text"
+msgid "def OnUnload(*args): # 'Document has been closed' event"
+msgstr "def OnUnload(*args): # evento 'Documento foi fechado'"
+
+#. KobNT
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0605\n"
+"help.text"
+msgid "pass # (optional) performed when disposed"
+msgstr "pass # (opcional) executado quando dispensado"
+
+#. xPosR
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0613\n"
+"help.text"
+msgid "(Back/Fore)ground console to report/log program execution."
+msgstr "Console de foreground ou background para reportar ou registrar execução de programa."
+
+#. Qph5m
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0617\n"
+"help.text"
+msgid "\"\"\" Print free item list to console \"\"\""
+msgstr "\"\"\" Console de foreground ou background para reportar ou registrar execução de programa. \"\"\""
+
+#. nzjHS
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0622\n"
+"help.text"
+msgid "\"\"\" Append log message to console, optional user prompt \"\"\""
+msgstr "\"\"\" Anexa a mensagem de registro na console, prompt de usuário opcional \"\"\""
+
+#. HDXPV
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0627\n"
+"help.text"
+msgid "\"\"\" Set log messages lower limit \"\"\""
+msgstr "\"\"\" Define limite inferior para mensagens de registro \"\"\""
+
+#. fXnMH
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0632\n"
+"help.text"
+msgid "\"\"\" Display console content/dialog \"\"\""
+msgstr "\"\"\" Exibe o conteúdo ou diálogo da console \"\"\""
+
+#. mPJ3B
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0638\n"
+"help.text"
+msgid "''' Grab application-based Basic script '''"
+msgstr "''' Obtém o script Basic baseado na aplicação '''"
+
+#. 2dfeg
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0647\n"
+"help.text"
+msgid "Mind the misspelled <literal>documentEventOccured</literal> method that inherits a typo from %PRODUCTNAME Application Programming Interface (API)."
+msgstr "Note o erro no nome do método <literal>documentEventOccured</literal> que herda um erro da %PRODUCTNAME Application Programming Interface (API)."
+
+#. qNVD4
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0648\n"
+"help.text"
+msgid "<menuitem>Start application</menuitem> and <menuitem>Close application</menuitem> events can respectively be used to set and to unset Python path for user scripts or %PRODUCTNAME scripts. In a similar fashion, document based Python libraries or modules can be loaded and released using <menuitem>Open document</menuitem> and <menuitem>Document closed</menuitem> events. Refer to <link href=\"text/sbasic/python/python_import.xhp\" name=\"Importing Python Modules\">Importing Python Modules</link> for more information."
+msgstr "Os eventos <menuitem>Inciar aplicação</menuitem> e <menuitem>Fechar aplicação</menuitem> podem ser respectivamente utilizados para definir e cancelar a definição de caminhos Python para scripts de usuários ou scripts do %PRODUCTNAME. De forma similar, bibliotecas ou módulos Python baseados em documentos podem ser carregados e descarregados utilizando os eventos <menuitem>Abrir documento</menuitem> e <menuitem>Documento fechado</menuitem>. Consulte <link href=\"text/sbasic/python/python_import.xhp\" name=\"Importing Python Modules\">Importar módulos Python</link> para mais informações."
+
+#. 8pHCg
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0649\n"
+"help.text"
+msgid "With %PRODUCTNAME Basic"
+msgstr "Com %PRODUCTNAME Basic"
+
+#. QpCjq
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"bm_id591622446367707\n"
+"help.text"
+msgid "<bookmark_value>API;GlobalScope.BasicLibraries</bookmark_value> <bookmark_value>Tools;Strings</bookmark_value>"
+msgstr "<bookmark_value>API;GlobalScope.BasicLibraries</bookmark_value> <bookmark_value>Ferramentas;Caracteres</bookmark_value>"
+
+#. D5Lsi
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0650\n"
+"help.text"
+msgid "Using <menuitem>Tools - Customize</menuitem> menu <menuitem>Events</menuitem> tab, the <menuitem>Open document</menuitem> event fires a <literal>ConsoleLogger</literal> initialisation. <literal>_documentEventOccured</literal> routine - set by <literal>ConsoleLogger</literal> - serves as a unique entry point to trap all document events."
+msgstr "Usando o menu <menuitem>Ferramentas - Personalizar</menuitem> na aba <menuitem>Eventos</menuitem> o evento <menuitem>Ao abrir documento</menuitem> dispara a inicialização do <literal>ConsoleLogger</literal>. A rotina <literal>_documentEventOccured</literal> - definida por <literal>ConsoleLogger</literal> - atua como o único ponto de entrada para capturar todos os eventos de documento."
+
+#. gGpkW
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"hd_id421630510141729\n"
+"help.text"
+msgid "controller.Events module"
+msgstr "Módulo controller.Events"
+
+#. rJX92
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"bas_id431630567378062\n"
+"help.text"
+msgid "Global _obj As Object ' controller.ConsoleLogger instance"
+msgstr "Global _obj As Object ' Instância de controller.ConsoleLogger"
+
+#. PfRq6
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0655\n"
+"help.text"
+msgid "Sub OnLoad(evt As com.sun.star.document.DocumentEvent) ' >> Open Document <<"
+msgstr "Sub OnLoad(evt As com.sun.star.document.DocumentEvent) ' >> Abrir documento <<"
+
+#. p8RfU
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"bas_id371630509596674\n"
+"help.text"
+msgid "''' ConsoleLogger unique entry point '''"
+msgstr "''' Ponto de entrada único do ConsoleLogger '''"
+
+#. upGWH
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"hd_id721630511986813\n"
+"help.text"
+msgid "controller.ConsoleLogger class module"
+msgstr "Módulo de classe controller.ConsoleLogger"
+
+#. AN8tn
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"par_id901630509435225\n"
+"help.text"
+msgid "Events monitoring starts from the moment a <literal>ConsoleLogger</literal> object is instantiated and ultimately stops upon document closure. <literal>StartAdapter</literal> routine loads necessary Basic libraries, while caught events are reported using <literal>Access2Base.Trace</literal> module."
+msgstr "O monitoramento de eventos se inicia no momento que um objeto <literal>ConsoleLogger</literal> é instanciado e a finalização do monitoramento ocorre quando o documento é fechado. A rotina <literal>StartAdapter</literal> carrega as bibliotecas Basic necessárias e os eventos capturados são reportados usando o módulo <literal>Access2Base.Trace</literal>."
+
+#. 2jXHB
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0664\n"
+"help.text"
+msgid "' ADAPTER design pattern object to be instantiated in the \"Open Document\" event"
+msgstr "' objeto de padrão de design ADAPTER a ser instanciado no evento \"Abrir documento\""
+
+#. ueeGx
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0666\n"
+"help.text"
+msgid "Private Const UI_NOPROMPT = False ' Set it to True to visualise documents events"
+msgstr "Private Const UI_NOPROMPT = False ' Defina como True para visualizar os eventos de documento"
+
+#. EQG8C
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0674\n"
+"help.text"
+msgid "' MEMBERS"
+msgstr "' MEMBROS"
+
+#. r5AkD
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"bas_id131630510956418\n"
+"help.text"
+msgid "Private _txtMsg As String ' text message to log in console"
+msgstr "Private _txtMsg As String ' Mensagem de texto a registrar no console"
+
+#. JaEhY
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0677\n"
+"help.text"
+msgid "' PROPERTIES"
+msgstr "' PROPRIEDADES"
+
+#. aGuEg
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0679\n"
+"help.text"
+msgid "''' System-dependent filename '''"
+msgstr "''' nome de arquivo dependente do Sistema '''"
+
+#. kEEgf
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0686\n"
+"help.text"
+msgid "' METHODS"
+msgstr "' MÉTODOS"
+
+#. YMAtN
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0688\n"
+"help.text"
+msgid "''' Monitor document events '''"
+msgstr "''' Monitorar eventos de documento '''"
+
+#. cBx2G
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0701\n"
+"help.text"
+msgid "''' Initialize document events logging '''"
+msgstr "''' Inicializar registros de eventos de documento '''"
+
+#. hxzE4
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0705\n"
+"help.text"
+msgid "Access2Base.Trace.TraceLog(\"INFO\", _txtMsg & \"Document events are being logged\", UI_PROMPT)"
+msgstr "Access2Base.Trace.TraceLog(\"INFO\", _txtMsg & \"Eventos de documento estão sendo registrados\", UI_PROMPT)"
+
+#. NkHa4
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0714\n"
+"help.text"
+msgid "''' Terminate document events logging '''"
+msgstr "''' Encerrar registro de eventos de documento '''"
+
+#. JEve4
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0717\n"
+"help.text"
+msgid "Access2Base.Trace.TraceLog(\"INFO\", _txtMsg & \"Document events have been logged\", UI_PROMPT)"
+msgstr "Access2Base.Trace.TraceLog(\"INFO\", _txtMsg & \"Eventos de documento foram registrados\", UI_PROMPT)"
+
+#. GAD2E
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0719\n"
+"help.text"
+msgid "Access2Base.Trace.TraceConsole() ' Captured events dialog"
+msgstr "Access2Base.Trace.TraceConsole() ' Diálogo com os eventos capturados"
+
+#. X8Kdh
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0722\n"
+"help.text"
+msgid "' EVENTS"
+msgstr "' EVENTOS"
+
+#. uVpJf
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0723\n"
+"help.text"
+msgid "' Your code for handled events goes here"
+msgstr "' Seu código para tratar eventos segue aqui"
+
+#. AJJDf
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0724\n"
+"help.text"
+msgid "Mind the misspelled <literal>_documentEventOccured</literal> method that inherits a typo from %PRODUCTNAME Application Programming Interface (API)."
+msgstr "Note o erro no nome do método <literal>documentEventOccured</literal> que herda um erro da %PRODUCTNAME Application Programming Interface (API)."
+
+#. b3qae
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0725\n"
+"help.text"
+msgid "Discovering Documents Events"
+msgstr "Descobrir eventos de documento"
+
+#. Ys35P
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"bm_id681622445958242\n"
+"help.text"
+msgid "<bookmark_value>API;frame.GlobalEventBroadcaster: Monitoring Document Event</bookmark_value>"
+msgstr "<bookmark_value>API;frame.GlobalEventBroadcaster: Monitorando evento de documento</bookmark_value>"
+
+#. BDj9Q
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0726\n"
+"help.text"
+msgid "The broadcaster API object provides the list of events it is responsible for:"
+msgstr "O objeto API broadcaster fornece a lista de eventos dos quais é responsável:"
+
+#. Z2BhT
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0727\n"
+"help.text"
+msgid "With Python"
+msgstr "Com Python"
+
+#. 8PCHK
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0734\n"
+"help.text"
+msgid "\"\"\" Display document events \"\"\""
+msgstr "\"\"\" Exibe eventos de documento \"\"\""
+
+#. SECnV
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0736\n"
+"help.text"
+msgid "adapted from DisplayAvailableEvents() by A. Pitonyak"
+msgstr "adaptado de DisplayAvailableEvents() por A. Pitonyak"
+
+#. wXN8p
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0747\n"
+"help.text"
+msgid "The <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"Alternative Python Script Organizer\">Alternative Python Script Organizer (APSO)</link> extension is used to render events information on screen."
+msgstr "A extensão <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"Alternative Python Script Organizer\">Alternative Python Script Organizer (APSO)</link> é utilizada para mostrar informações de eventos na tela."
+
+#. kgY8m
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0748\n"
+"help.text"
+msgid "With %PRODUCTNAME Basic"
+msgstr "Com %PRODUCTNAME Basic"
+
+#. KjotC
+#: python_document_events.xhp
+msgctxt ""
+"python_document_events.xhp\n"
+"N0750\n"
+"help.text"
+msgid "''' Display document events '''"
+msgstr "''' Exibe eventos de documento '''"
+
+#. upkPP
+#: python_examples.xhp
+msgctxt ""
+"python_examples.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python examples"
+msgstr "Exemplos em Python"
+
+#. Etrfb
+#: python_examples.xhp
+msgctxt ""
+"python_examples.xhp\n"
+"bm_id20191031405\n"
+"help.text"
+msgid "<bookmark_value>Python;examples</bookmark_value> <bookmark_value>Python;shell</bookmark_value> <bookmark_value>Python;platform</bookmark_value> <bookmark_value>Python;session</bookmark_value> <bookmark_value>Python;screen input/output</bookmark_value>"
+msgstr "<bookmark_value>Python;exemplos</bookmark_value> <bookmark_value>Python;shell</bookmark_value> <bookmark_value>Python;plataforma</bookmark_value> <bookmark_value>Python;sessão</bookmark_value><bookmark_value>Python;entrada / saída na tela</bookmark_value>"
+
+#. 2vmkq
+#: python_examples.xhp
+msgctxt ""
+"python_examples.xhp\n"
+"hd_id201901031407\n"
+"help.text"
+msgid "<variable id=\"pythonexamples2\"><link href=\"text/sbasic/python/python_examples.xhp\" name=\"python examples\">Python programming examples</link></variable>"
+msgstr "<variable id=\"pythonexamples2\"><link href=\"text/sbasic/python/python_examples.xhp\" name=\"python examples\">Exemplos de programação em Python</link></variable>"
+
+#. xkeov
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"tit\n"
+"help.text"
+msgid "Creating A Dialog Handler"
+msgstr "Criar um manipulador de caixa de diálogo"
+
+#. WeSDk
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0664\n"
+"help.text"
+msgid "<bookmark_value>Basic;Dialog Handler</bookmark_value> <bookmark_value>Python;Dialog Handler</bookmark_value> <bookmark_value>Access2Base;dlgTrace</bookmark_value> <bookmark_value>Access2Base;_DumpToFile</bookmark_value> <bookmark_value>API;DialogProvider2</bookmark_value> <bookmark_value>API;XDialogEventHandler</bookmark_value>"
+msgstr "<bookmark_value>Basic;manipulador de diálogoDialog Handler</bookmark_value> <bookmark_value>Python;manipulador de diálogo</bookmark_value> <bookmark_value>Access2Base;dlgTrace</bookmark_value> <bookmark_value>Access2Base;_DumpToFile</bookmark_value> <bookmark_value>API;DialogProvider2</bookmark_value> <bookmark_value>API;XDialogEventHandler</bookmark_value>"
+
+#. MQUtw
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0665\n"
+"help.text"
+msgid "<variable id=\"pythonhandler_h1\"><link href=\"text/sbasic/python/python_handler.xhp\" name=\"Creating a Dialog Handler\">Creating a Dialog Handler</link></variable>"
+msgstr "<variable id=\"pythonhandler_h1\"><link href=\"text/sbasic/python/python_handler.xhp\" name=\"Creating a Dialog Handler\">Criar um manipulador de caixa de diálogo</link></variable>"
+
+#. AxGAd
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0666\n"
+"help.text"
+msgid "Next to <link href=\"text/sbasic/shared/01040000.xhp\" name=\"Assigning macros to events\">assigning macros to events</link> or <link href=\"text/sbasic/basic/python/python_listener\" name=\"creating event listeners\">creating event listeners</link>, one can use dialog handlers, whose principle is to define UNO keywords, or methods, that are mapped to events to watch for. The event handler is responsible for executing methods using the <literal>vnd.sun.star.UNO:<method_name></literal> protocol. Unlike listeners that require to define all supported methods, even if unused, dialog handlers require only two methods on top of intended control hook scripts."
+msgstr "Em seguida a <link href=\"text/sbasic/shared/01040000.xhp\" name=\"Assigning macros to events\">atribuir macros a eventos</link> ou <link href=\"text/sbasic/basic/python/python_listener\" name=\"creating event listeners\">criar listeners de eventos</link>, pode-se utilizar manipuladores de caixas de diálogo, cujo princípio é definir palavras chaves do UNO, ou métodos que são mapeados aos eventos a observar. O manipulador de eventos é responsável por executar métodos utilizando o protocolo <literal>vnd.sun.star.UNO:<method_name></literal>. Diferente dos listeners que requerem definir todos os métodos suportados, mesmo que não utilizados, os manipuladores de caixa de diálogo requerem somente dois métodos a mais dos scripts de controle."
+
+#. Waa56
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0667\n"
+"help.text"
+msgid "The advantages of this approach are:"
+msgstr "As vantagens dessa abordagem são:"
+
+#. bBbcE
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0668\n"
+"help.text"
+msgid "It packs the code that handles event-driven macros,"
+msgstr "Empacota o código que manipula macros acionadas por eventos,"
+
+#. NCGBC
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0669\n"
+"help.text"
+msgid "it decorrelates events from macros names which facilitates maintenance or updates, in particular when moving macros or modules."
+msgstr "Desacopla eventos de nomes de macro, o que facilita a manutenção ou atualização, em particular ao mover macros ou módulos."
+
+#. WETAj
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0670\n"
+"help.text"
+msgid "This mechanism is illustrated herewith for Basic and Python languages using an imported copy of <literal>Access2Base</literal> <literal>dlgTrace</literal> dialog. Exception handling and localisation are omitted for clarity."
+msgstr "Esse mecanismo é ilustrado aqui para as linguagens Python e Basic, utilizando uma copia importada da caixa de diálogo <literal>dlgTrace</literal> do <literal>Access2Base</literal>. O tratamento de exceções e da tradução foram omitidos por clareza."
+
+#. qfJEk
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0671\n"
+"help.text"
+msgid "Assigning Dialog methods"
+msgstr "Métodos para atribuir diálogos."
+
+#. 46GAC
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0672\n"
+"help.text"
+msgid "Export <literal>Access2Base</literal> <literal>dlgTrace</literal> dialog and import it into <literal>MyLib</literal> application library."
+msgstr "Exportar a caixa de diálogo <literal>dlgTrace</literal> do <literal>Access2Base</literal> e importar na biblioteca da aplicação <literal>MyLib</literal>."
+
+#. QKmBa
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0673\n"
+"help.text"
+msgid "Inside the control properties pane of the <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"Dialog Editor\">Dialog Editor</link>, use the Events tab to replace macro assignments by component assignments, and type in the intended method names:"
+msgstr "Dentro do painel das propriedades do controle do <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"Dialog Editor\">Editor de caixa de diálogo</link>, utilize a aba Eventos para substituir a atribuição de macros por atribuição de componentes, e digite os nomes dos métodos:"
+
+#. qNEVD
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0674\n"
+"help.text"
+msgid "Set <literal>Dump to file</literal> dialog button component method name to <literal>_dump2File</literal>"
+msgstr "Defina o nome do método do componente botão do diálogo <literal>Despejar no arquivo</literal> para <literal>_dump2File</literal>"
+
+#. t65Et
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0675\n"
+"help.text"
+msgid "Optionally define <literal>txtTracelog</literal> key pressed and mouse button pressed events component method names as <literal>_openHelp</literal>"
+msgstr "Defina opcionalmente o nome do método do evento da tecla pressionada e botão do mouse <literal>txtTracelog</literal>como <literal>_openHelp</literal>"
+
+#. WMZBj
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0676\n"
+"help.text"
+msgid "Optionally define <literal>Ok</literal> button receiving focus event component method name as <literal>onOkHasfocus</literal>"
+msgstr "Defina opcionalmente o botão <literal>Ok</literal> que recebe o foco do evento como <literal>onOkHasfocus</literal>"
+
+#. Joqhs
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0677\n"
+"help.text"
+msgid "Events assigned actions should mention the <literal>vnd.sun.star.UNO:</literal> protocol."
+msgstr "As ações atribuídas a eventos devem mencionar o protocolo <literal>vnd.sun.star.UNO:</literal>."
+
+#. BTnaF
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0678\n"
+"help.text"
+msgid "Creating the handler"
+msgstr "Criar o manipulador"
+
+#. nHvEi
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0679\n"
+"help.text"
+msgid "<literal>createDialogWithHandler</literal> method of <link href=\"https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1awt_1_1DialogProvider2.html\" name=\"com.sun.star.awt.DialogProvider2\">com.sun.star.awt.DialogProvider2</link> service is used to set the dialog and its handler. The handler is responsible for implementing <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XDialogEventHandler.html\" name=\"com.sun.star.awt.XDialogEventHandler\">com.sun.star.awt.XDialogEventHandler</link> interface."
+msgstr "O método <literal>createDialogWithHandler</literal> do serviço <link href=\"https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1awt_1_1DialogProvider2.html\" name=\"com.sun.star.awt.DialogProvider2\">com.sun.star.awt.DialogProvider2</link> é usado para definir o diálogo e seu manipulador. O manipulador é responsável por implementar a interface <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1awt_1_1XDialogEventHandler.html\" name=\"com.sun.star.awt.XDialogEventHandler\">com.sun.star.awt.XDialogEventHandler</link>."
+
+#. 2CCEz
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0680\n"
+"help.text"
+msgid "All component method names must be explicitly declared when using a dialog handler."
+msgstr "Ao usar um manipulador de diálogos, todos os nomes de componentes devem ser declarados explicitamente."
+
+#. kBAiZ
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0681\n"
+"help.text"
+msgid "With Python"
+msgstr "Com Python"
+
+#. rUiYd
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0682\n"
+"help.text"
+msgid "In this example the dialog is located on the computer."
+msgstr "Neste exemplo, a caixa de diálogo está localizada no computador."
+
+#. FyaBp
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0692\n"
+"help.text"
+msgid "\"\"\" Access2Base Console Handler \"\"\""
+msgstr "\"\"\" Manipulador de console do Access2Base \"\"\""
+
+#. dugqK
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0693\n"
+"help.text"
+msgid "''' adapted from « Créer un dialogue avec gestionnaire d'événements » by JM Zambon"
+msgstr "''' adaptado de « Créer un dialogue avec gestionnaire d'événements » by JM Zambon"
+
+#. 5Cysb
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0716\n"
+"help.text"
+msgid "\"\"\" Create a Dialog from its location \"\"\""
+msgstr "\"\"\" Criar um diálogo desde sua localização \"\"\""
+
+#. C9pNa
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0729\n"
+"help.text"
+msgid "''' Ugly MsgBox '''"
+msgstr "''' MsgBox horrível '''"
+
+#. zcjmD
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0740\n"
+"help.text"
+msgid "As expected, <literal>onOkHasFocus</literal> missing method throws an exception."
+msgstr "Conforme esperado, o método faltante <literal>onOkHasFocus</literal> lança uma exceção."
+
+#. 63rxz
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0741\n"
+"help.text"
+msgid "Refer to <link href=\"text/sbasic/python/python_2_basic.xhp\" name=\"Python calls to %PRODUCTNAME Basic\">Python calls to %PRODUCTNAME Basic</link> page for <literal>getBasicScript</literal> routine description and for details about cross-language scripting execution."
+msgstr "Consulte a página <link href=\"text/sbasic/python/python_2_basic.xhp\" name=\"Python calls to %PRODUCTNAME Basic\">Chamadas do Python ao %PRODUCTNAME Basic</link> para uma descrição da rotina <literal>getBasicScript</literal> e para detalhes sobre execução de scripts inter-linguagens."
+
+#. b6xGw
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0742\n"
+"help.text"
+msgid "With %PRODUCTNAME Basic"
+msgstr "Com o %PRODUCTNAME Basic"
+
+#. 5N3MV
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0743\n"
+"help.text"
+msgid "In this example the dialog is embedded in a document, and can equally be located on the computer."
+msgstr "Neste exemplo a caixa de diálogo está embutida no documento, e pode também estar no computador."
+
+#. Ahwda
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0751\n"
+"help.text"
+msgid "dp.Initialize(Array(ThisComponent)) ' if doc-embedded dialog"
+msgstr "dp.Initialize(Array(ThisComponent)) ' no caso de diálogos embutidos no documento"
+
+#. Cf88b
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0958c\n"
+"help.text"
+msgid "method As String) As Boolean"
+msgstr "method As String) As Boolean"
+
+#. j4aLN
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0770\n"
+"help.text"
+msgid "'dialog.endDialog(1) if computer-based dialog"
+msgstr "'dialog.endDialog(1) se for uma caixa de diálogo no computador"
+
+#. EBBRf
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0779\n"
+"help.text"
+msgid "' adapted from « Créer un dialogue avec gestionnaire d'événements » by JM Zambon"
+msgstr "' adaptado de « Créer un dialogue avec gestionnaire d'événements » by JM Zambon"
+
+#. NF93B
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0781\n"
+"help.text"
+msgid "As expected, <literal>onOkHasFocus</literal> missing method throws an exception."
+msgstr "Conforme esperado, o método faltante <literal>onOkHasFocus</literal> lança uma exceção."
+
+#. 4RevF
+#: python_handler.xhp
+msgctxt ""
+"python_handler.xhp\n"
+"N0505\n"
+"help.text"
+msgid "<link href=\"text/sbasic/shared/03132000.xhp\" name=\"CreateUnoListener Function\">CreateUnoListener Function</link>"
+msgstr "<link href=\"text/sbasic/shared/03132000.xhp\" name=\"CreateUnoListener Function\">Função CreateUnoListener</link>"
+
+#. Ur3DA
+#: python_ide.xhp
+msgctxt ""
+"python_ide.xhp\n"
+"tit\n"
+"help.text"
+msgid "IDE for Python"
+msgstr "IDE para Python"
+
+#. ETCU9
+#: python_ide.xhp
+msgctxt ""
+"python_ide.xhp\n"
+"bm_id761543349138561\n"
+"help.text"
+msgid "<bookmark_value>APSO</bookmark_value> <bookmark_value>Alternative Python Scripts Organizer</bookmark_value> <bookmark_value>python;IDE - integrated development environment</bookmark_value> <bookmark_value>python;editor</bookmark_value>"
+msgstr "<bookmark_value>APSO</bookmark_value> <bookmark_value>Organizador alternativo de scripts Python</bookmark_value> <bookmark_value>python;IDE - ambiente de desenvolvimento integrado</bookmark_value> <bookmark_value>python;editor</bookmark_value>"
+
+#. cANSA
+#: python_ide.xhp
+msgctxt ""
+"python_ide.xhp\n"
+"hd_id151543348965464\n"
+"help.text"
+msgid "<variable id=\"pythonideh1\"><link href=\"text/sbasic/python/python_ide.xhp\" name=\"Python IDE Setup\">Setting up an Integrated Development Environment (IDE) for Python</link></variable>"
+msgstr "<variable id=\"pythonideh1\"><link href=\"text/sbasic/python/python_ide.xhp\" name=\"Python IDE Setup\">Configurar um Ambiente de Desenvolvimento Integrado (IDE) para Python</link></variable>"
+
+#. k7syF
+#: python_ide.xhp
+msgctxt ""
+"python_ide.xhp\n"
+"par_id541543348965465\n"
+"help.text"
+msgid "Writing Python macros requires extra configuration steps to set an IDE of choice."
+msgstr "Escrever macros Python requer etapas de configuração adicionais para definir um IDE de sua escolha."
+
+#. NGxNi
+#: python_ide.xhp
+msgctxt ""
+"python_ide.xhp\n"
+"N0106\n"
+"help.text"
+msgid "Unlike Basic language macros development in %PRODUCTNAME, developing Python scripts for %PRODUCTNAME requires to configure an external Integrated Development Environment (IDE). Multiple IDEs are available that range from beginners to advanced Python coders. While using a Python IDE programmers benefit from numerous features such as syntax highlighting, code folding, class browsing, code completion, coding standard enforcement, test driven development, debugging, version control and many more. You can refer to <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"Designing & Developing Python Applications\">Designing & Developing Python Applications</link> on the Wiki for more in-depth information about the setup of a bridge between your IDE and a running instance %PRODUCTNAME."
+msgstr "Diferente do desenvolvimento de macros de linguagem Basic no %PRODUCTNAME, o desenvolvimento de scripts Python para o %PRODUCTNAME requer a configuração de um Ambiente de Desenvolvimento Integrado (IDE) externo. Vários IDEs estão disponíveis, desde para iniciantes até para programadores Python avançados. Ao usar um Python IDE, os programadores se beneficiam de vários recursos, como realce de sintaxe, dobra de código, navegação de classes, conclusão de código, aplicação de código padrão, desenvolvimento orientado a testes, depuração, controle de versão e muito mais. Você pode consultar o <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"Designing & Developing Python Applications\">Designing & Developing Python Applications</link> no Wiki para obter informações mais detalhadas sobre a configuração de uma ponte entre o seu IDE e uma instância em execução do %PRODUCTNAME."
+
+#. u2xio
+#: python_ide.xhp
+msgctxt ""
+"python_ide.xhp\n"
+"hd_id761544698669786\n"
+"help.text"
+msgid "The APSO Extension"
+msgstr "A extensão APSO"
+
+#. 4isF2
+#: python_ide.xhp
+msgctxt ""
+"python_ide.xhp\n"
+"N0104\n"
+"help.text"
+msgid "The <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"Alternative Python Script Organizer (APSO)\">Alternative Python Script Organizer (APSO)</link> extension eases the edition of Python scripts, in particular when embedded in a document. Using APSO you can configure your preferred source code editor, start the integrated Python shell and debug Python scripts. Extensions exist that help inspect arbitrary UNO objects, refer to <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"eDesigning & Developing Python Applications\">Designing & Developing Python Applications</link> for additional details on such extensions."
+msgstr "A extensão <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"Alternative Python Script Organizer (APSO)\">Alternative Python Script Organizer (APSO)</link> facilita a edição de scripts Python, em particular quando incorporada em um documento. Usando o APSO você pode configurar seu editor de código fonte preferido, iniciar o shell Python integrado e depurar scripts Python. Existem extensões que ajudam a inspecionar objetos UNO arbitrários, consulte <link href=\"https://wiki.documentfoundation.org/Macros/Python_Design_Guide\" name=\"eDesigning & Developing Python Applications\">Designing & Developing Python Applications</link> para obter detalhes adicionais sobre essas extensões."
+
+#. 5E2EV
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python : Importing Modules"
+msgstr "Python: Importar módulos"
+
+#. gFTth
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0461\n"
+"help.text"
+msgid "<bookmark_value>Python;import</bookmark_value> <bookmark_value>Python;Modules</bookmark_value> <bookmark_value>Python;pythonpath</bookmark_value> <bookmark_value>PythonLibraries</bookmark_value>"
+msgstr "<bookmark_value>Python;importar</bookmark_value> <bookmark_value>Python;módulos</bookmark_value> <bookmark_value>Python;pythonpath</bookmark_value> <bookmark_value>PythonLibraries</bookmark_value>"
+
+#. 5QqdJ
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0462\n"
+"help.text"
+msgid "<variable id=\"pythonimporth1\"><link href=\"text/sbasic/python/python_import.xhp\" name=\"python imports\">Importing Python Modules</link></variable>"
+msgstr "<variable id=\"pythonimporth1\"><link href=\"text/sbasic/python/python_import.xhp\" name=\"python imports\">Importar módulos Python</link></variable>"
+
+#. VHAM5
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0463\n"
+"help.text"
+msgid "%PRODUCTNAME Python scripts come in three distinct flavors, they can be personal, shared or embedded in documents. They are stored in varying places described in <link href=\"text/sbasic/python/python_locations.xhp\">Python Scripts Organization and Location</link>. In order to import Python modules, their locations must be known from Python at run time."
+msgstr "Os scritps Python do %PRODUCTNAME podem ser pessoais, compartilhados ou embutidos em documentos. São armazenados nos vários locais descritos em <link href=\"text/sbasic/python/python_locations.xhp\">Organização e locais dos scripts Python</link>. Para importar módulos Python, sua localização deve ser conhecida em tempo de execução."
+
+#. zMSfx
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0464\n"
+"help.text"
+msgid "This mechanism is illustrated for file system based modules and document based modules. Exception handling is omitted for clarity. The terms library or directory, scripts or modules are used interchangeably. A Python macro refers to a function inside a module."
+msgstr "Este mecanismo é ilustrado para módulos do sistema e para módulos de documentos. O tratamento de exceções foi omitido para clareza. Os termos biblioteca ou diretório, scripts ou módulos são intercambiáveis. Uma macro Python se refere a uma função dentro de um módulo."
+
+#. GUdHS
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0465\n"
+"help.text"
+msgid "Note that <literal><User Profile>/Scripts/python/pythonpath</literal> local directory is always explored when running a Python macro from <literal><User Profile>/Scripts/python</literal>."
+msgstr "Note que o diretório local <literal><Perfil do usuário>/Scripts/python/pythonpath</literal> sempre é percorrido ao executar uma macro Python a partir de <literal><Perfil do usuário>/Scripts/python</literal>."
+
+#. fyFof
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0466\n"
+"help.text"
+msgid "File System module import"
+msgstr "Importar módulos do sistema de arquivos"
+
+#. SRZgQ
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0467\n"
+"help.text"
+msgid "User or Shared Modules"
+msgstr "Módulos do usuário ou compartilhados"
+
+#. NAJzP
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0468\n"
+"help.text"
+msgid "Personal & shared Python scripts can be imported once their directories are included in Python run time path. Refer to <link href=\"text/sbasic/python/python_session.xhp\">Getting session information</link> page for more details regarding omitted Session Class."
+msgstr "Scripts Python, pessoais e compartilhados, podem ser importados assim que suas pastas forem incluídas no caminho de execução do Python. Acesse a página <link href=\"text/sbasic/python/python_session.xhp\">Obtendo informação da sessão</link> para mais informações referentes a Classe Session omitida."
+
+#. A4v4U
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0473\n"
+"help.text"
+msgid "user_lib = Session().UserPythonScripts # User scripts location"
+msgstr "user_lib = Session().UserPythonScripts # Localização dos scripts de usuário"
+
+#. AAJUq
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0475\n"
+"help.text"
+msgid "sys.path.insert(0, user_lib) # Add to search path"
+msgstr "sys.path.insert(0, user_lib) # Adiciona ao caminho de pesquisa"
+
+#. yFcur
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0476\n"
+"help.text"
+msgid "import screen_io as ui # 'screen_io.py' module resides in user_lib directory"
+msgstr "import screen_io as ui # o módulo 'screen_io.py' se encontra na pasta user_lib"
+
+#. 6KtvD
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0477\n"
+"help.text"
+msgid "# Your code follows here"
+msgstr "# Seu código começa a partir daqui"
+
+#. G8bHh
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0478\n"
+"help.text"
+msgid "This Python example exposes a local XSCRIPTCONTEXT variable to an imported module:"
+msgstr "Esse exemplo Python expõe uma variável local, XSCRIPTCONTEXT, para um módulo importado:"
+
+#. uwiPp
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0483\n"
+"help.text"
+msgid "share_lib = Session.SharedPythonScripts() # Shared scripts location"
+msgstr "share_lib = Session.SharedPythonScripts() # Localização dos scripts compartilhados"
+
+#. HugAN
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0485\n"
+"help.text"
+msgid "sys.path.insert(0, share_lib) # Add to search path"
+msgstr "sys.path.insert(0, share_lib) # Adiciona ao caminho de pesquisa"
+
+#. zGybv
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0486\n"
+"help.text"
+msgid "from IDE_utils import ScriptContext # 'IDE_utils.py' sits with shared Python scripts."
+msgstr "from IDE_utils import ScriptContext # 'IDE_utils.py' localiza-se com Python scripts compartilhados."
+
+#. VoPZU
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0488\n"
+"help.text"
+msgid "# Your code follows here"
+msgstr "# Seu código começa a partir daqui"
+
+#. AH3MT
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0489\n"
+"help.text"
+msgid "Installation Modules for Applications"
+msgstr "Módulos de instalação para aplicações"
+
+#. VFZdV
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0490\n"
+"help.text"
+msgid "Unlike personal and shared scripts, %PRODUCTNAME installation scripts can be imported any time. Next to <literal>uno</literal> & <literal>unohelper</literal> %PRODUCTNAME Python modules, other scripts present in <literal><installation_path>/program</literal> directory can be imported directly, such as the <literal>msgbox</literal> module."
+msgstr "Diferente dos scripts pessoais e compartilhados, Os scripts instalados do %PRODUCTNAME podem ser importados a qualquer momento. Junto com os módulos <literal>uno</literal> e <literal>unohelper</literal> do %PRODUCTNAME, outros scripts presentes no diretório <literal><caminho_instalação>/program</literal> podem ser importados diretamente, tal como o módulo <literal>msgbox</literal>."
+
+#. TnQ2j
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0491\n"
+"help.text"
+msgid "With Python shell:"
+msgstr "Com o interpretador Python:"
+
+#. DDinb
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0534\n"
+"help.text"
+msgid "Document Module Import"
+msgstr "Importação de módulo de documentos"
+
+#. AUzGt
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0535\n"
+"help.text"
+msgid "Importing a Python document embedded module is illustrated below. Error handling is not detailed. Python run time path is updated when document has been opened and before closure. Refer to <link href=\"text/sbasic/shared/01040000.xhp\">Event-Driven Macros</link> to learn how to associate Python macros to document events."
+msgstr "Mostra-se abaixo como importar um documento com um módulo Python embutido. O tratamento de erros não é considerado. O caminho em tempo de execução do Python é atualizado quando o documento é aberto e antes do seu fechamento. Consulte <link href=\"text/sbasic/shared/01040000.xhp\">Macros acionadas por eventos</link> para saber como associar macros Python a eventos do documento."
+
+#. APbCX
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0541\n"
+"help.text"
+msgid "\"\"\" Prepare Python modules import when doc. loaded \"\"\""
+msgstr "\"\"\" Preparar importação de módulos Python quando o doc. for carregado \"\"\""
+
+#. DJStg
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0542\n"
+"help.text"
+msgid "PythonLibraries.loadLibrary('lib/subdir') # Add directory to search path"
+msgstr "PythonLibraries.loadLibrary('lib/subdir') # Adicionar diretório ao caminho de busca"
+
+#. tPsVb
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0543\n"
+"help.text"
+msgid "PythonLibraries.loadLibrary('my_gui', 'screen_io') # Add dir. & import screen_io"
+msgstr "PythonLibraries.loadLibrary('my_gui', 'screen_io') # Adicionar dir. e importar screen_io"
+
+#. KxLAs
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0546\n"
+"help.text"
+msgid "\"\"\" Cleanup PYTHON_PATH when doc. Gets closed \"\"\""
+msgstr "\"\"\" Limpar PYTHON_PATH quando doc. for fechado \"\"\""
+
+#. siAC7
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0547\n"
+"help.text"
+msgid "PythonLibraries.unloadLibrary('my_gui') # Python runtime path cleanup"
+msgstr "PythonLibraries.unloadLibrary('my_gui') # Limpeza do caminho do Python runtime"
+
+#. zajf5
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0548\n"
+"help.text"
+msgid "# Note: imported modules remain loaded in this example."
+msgstr "# Nota: módulos importados permanecem carregados neste exemplo"
+
+#. pKa7R
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0553\n"
+"help.text"
+msgid "\"\"\" Python library loader and module importer"
+msgstr "\"\"\" Carregador da biblioteca Python e importador de módulos"
+
+#. ruYCE
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0555\n"
+"help.text"
+msgid "adapted from 'Bibliothèque de fonctions' by Hubert Lambert"
+msgstr "adaptado de 'Bibliothèque de fonctions' de Hubert Lambert"
+
+#. 8gpRJ
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0556\n"
+"help.text"
+msgid "at https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213 \"\"\""
+msgstr "em https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213\"\"\""
+
+#. T6bdz
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0558\n"
+"help.text"
+msgid "\"\"\" Check run time module list \"\"\""
+msgstr "\"\"\" Verificar lista de módulos de tempo de execução \"\"\""
+
+#. EFaRv
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0561\n"
+"help.text"
+msgid "\"\"\" Check PYTHON_PATH content \"\"\""
+msgstr "\"\"\" Verificar conteúdo de PYTHON_PATH \"\"\""
+
+#. fvFq9
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0564\n"
+"help.text"
+msgid "\"\"\" add directory to PYTHON_PATH, import named module \"\"\""
+msgstr "\"\"\" adiciona o diretório ao PYTHON_PATH, importa o módulo nomeado \"\"\""
+
+#. eCTGx
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0573\n"
+"help.text"
+msgid "\"\"\" remove directory from PYTHON_PATH \"\"\""
+msgstr "\"\"\" remove o diretório do PYTHON_PATH \"\"\""
+
+#. 5xScE
+#: python_import.xhp
+msgctxt ""
+"python_import.xhp\n"
+"N0580\n"
+"help.text"
+msgid "Refer to <link href=\"text/sbasic/python/python_listener.xhp\">Creating a Python Listener</link> for examples of event-driven macros."
+msgstr "Consulte <link href=\"text/sbasic/python/python_listener.xhp\">Criar um listener em Python</link> para exemplos de macros acionadas por eventos."
+
+#. 9BBze
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python Listeners : Creating Event Listeners"
+msgstr "Listeners Python : Criar listeners de eventos"
+
+#. ouQd3
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0385\n"
+"help.text"
+msgid "<bookmark_value>Python;Event Listener</bookmark_value> <bookmark_value>Python;createUnoListener</bookmark_value> <bookmark_value>Basic;Event Listener</bookmark_value> <bookmark_value>API;ActionEvent</bookmark_value> <bookmark_value>API;DialogProvider</bookmark_value> <bookmark_value>API;EventObject</bookmark_value> <bookmark_value>API;ExecutableDialogResults</bookmark_value> <bookmark_value>API;XActionListener</bookmark_value>"
+msgstr "<bookmark_value>Python;listener de eventos</bookmark_value> <bookmark_value>Python;createUnoListener</bookmark_value> <bookmark_value>Basic;listener de eventos</bookmark_value><bookmark_value>API;ActionEvent</bookmark_value> <bookmark_value>API;DialogProvider</bookmark_value> <bookmark_value>API;EventObject</bookmark_value> <bookmark_value>API;ExecutableDialogResults</bookmark_value> <bookmark_value>API;XActionListener</bookmark_value>"
+
+#. Pjc9z
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0386\n"
+"help.text"
+msgid "<variable id=\"pythonlistener\"><link href=\"text/sbasic/python/python_listener.xhp\" name=\"python listeners\">Creating Event Listeners</link></variable>"
+msgstr "<variable id=\"pythonlistener\"><link href=\"text/sbasic/python/python_listener.xhp\" name=\"python listeners\">Criar listeners de evento</link></variable>"
+
+#. DGgrp
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0387\n"
+"help.text"
+msgid "Events raised by dialogs, documents, forms or graphical controls can be linked to macros, which is referred to as event-driven programming. The most common method to relate events to macros are the <literal>Events</literal> tab in <menuitem>Tools – Customize</menuitem> menu and the <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"Create dialog\">Dialog Editor</link> Control properties pane from <menuitem>Tools - Macros – Organise Dialogs...</menuitem> menu."
+msgstr "Evento ativados por caixas de diálogo, documentos, formulários ou controles gráficos podem ser vinculados a macros, assim chamados de programação acionada por eventos. O método mais comum de relacionar eventos a macros está na aba <literal>Eventos</literal> no menu <menuitem>Ferramentas - Opções - Personalizar</menuitem> e nas propriedades de controle do painel <link href=\"text/sbasic/guide/create_dialog.xhp\" name=\"Create dialog\">Editor de caixas de diálogo</link> do menu <menuitem>Ferramentas - Opções - Macros - Organizar caixas de diálogo</menuitem>."
+
+#. Dd2YW
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0388\n"
+"help.text"
+msgid "Graphical artifacts, keyboard inputs, mouse moves and other man/machine interactions can be controlled using UNO listeners that watch for the user’s behavior. Listeners are dynamic program code alternatives to macro assignments. One may create as many UNO listeners as events to watch for. A single listener can also handle multiple user interface controls."
+msgstr "Elementos gráficos, entradas de teclado, movimentos do mouse e outras interações homem-máquina podem ser controladas utilizando listeners UNO que observam o comportamento do usuário. Os listeners são códigos de programa alternativos dinâmicos às atribuições de macros. Pode-se criar tantos listeners UNO quanto os eventos a observar. Um listener simples pode também tratar vários controles da interface do usuário."
+
+#. UVzsE
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0389\n"
+"help.text"
+msgid "Creating an event listener"
+msgstr "Criar um listener de evento"
+
+#. knF23
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0390\n"
+"help.text"
+msgid "Listeners get attached to controls held in dialogs, as well as to document or form events. Listeners are also used when creating runtime dialogs or when adding controls to a dialog on the fly."
+msgstr "Os listeners são anexados a controles contidos nas caixas de diálogo, bem como a eventos de documento ou de formulários. Listeners também podem ser utilizados ao criar caixas de diálogo em tempo de execução ou quando adicionar controles ao diálogo dinamicamente."
+
+#. DwE8A
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0391\n"
+"help.text"
+msgid "This example creates a listener for <literal>Button1</literal> control of <literal>Dialog1</literal> dialog in <literal>Standard</literal> library."
+msgstr "Este exemplo cria um listener para o controle <literal>Button1</literal> da caixa de diálogo <literal>Dialog1</literal> na biblioteca <literal>Standard</literal>."
+
+#. Wsp8E
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0392\n"
+"help.text"
+msgid "With Python"
+msgstr "Com Python"
+
+#. pPjfw
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0405\n"
+"help.text"
+msgid "_MY_LABEL = 'Python listens..'"
+msgstr "_MY_LABEL = 'Python ouve..'"
+
+#. UJrnb
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0417\n"
+"help.text"
+msgid "MsgBox(\"The user acknowledged the dialog.\")"
+msgstr "MsgBox(\"O usuário reconheceu o diálogo.\")"
+
+#. XVRK7
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0419\n"
+"help.text"
+msgid "MsgBox(\"The user canceled the dialog.\")"
+msgstr "MsgBox(\"O usuário cancelou o diálogo.\")"
+
+#. FUuHB
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0424\n"
+"help.text"
+msgid "\"\"\" Create a Dialog from its location \"\"\""
+msgstr "\"\"\" Cria um dialogo de sua localidade \"\"\""
+
+#. NeZcJ
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0437\n"
+"help.text"
+msgid "\"\"\" Listen to & count button clicks \"\"\""
+msgstr "\"\"\" Escuta e conta os cliques de botão \"\"\""
+
+#. WK4DA
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0448\n"
+"help.text"
+msgid "def disposing(self, evt: EventObject): # mandatory routine"
+msgstr "def disposing(self, evt: EventObject): # rotina obrigatória"
+
+#. 9mtTR
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0457\n"
+"help.text"
+msgid "<emph>msgbox.py</emph> in <emph>{installation}/program/</emph> directory has some examples of button listeners."
+msgstr "<emph>msgbox.py</emph> no diretório <emph>{instalação}/program/</emph> tem alguns exemplos de listeners para botões."
+
+#. MgUyV
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0458\n"
+"help.text"
+msgid "With %PRODUCTNAME Basic"
+msgstr "Com %PRODUCTNAME Basic"
+
+#. CCUMV
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0459d\n"
+"help.text"
+msgid "Const MY_LABEL = \"Basic listens..\""
+msgstr "Const MY_LABEL = \"Basic escuta..\""
+
+#. eJe7e
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0478\n"
+"help.text"
+msgid "Case rc.OK : MsgBox \"The user acknowledged the dialog.\",, \"Basic\""
+msgstr "Case rc.OK : MsgBox \"O usuário reconheceu o diálogo.\",, \"Basic\""
+
+#. KVrqd
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0479\n"
+"help.text"
+msgid "Case rc.CANCEL : MsgBox \"The user canceled the dialog.\",, \"Basic\""
+msgstr "Case rc.CANCEL : MsgBox \"O usuário cancelou o diálogo.\",, \"Basic\""
+
+#. 9AeGf
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0486\n"
+"help.text"
+msgid "''' Listen to & count button clicks '''"
+msgstr "''' Escuta e conta os cliques de botão '''"
+
+#. 5Arxo
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0496\n"
+"help.text"
+msgid "' your code goes here"
+msgstr "' seu código vai aqui"
+
+#. AQA8b
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0498\n"
+"help.text"
+msgid "Other Event Listeners"
+msgstr "Outros eventos de listeners"
+
+#. HsXBE
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0499\n"
+"help.text"
+msgid "Listeners are usually coded along with <link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"dialog opening\">dialog opening</link>. Numerous listener approaches are possible such as event handlers for dialogs or event monitors for documents or forms."
+msgstr "Os listeners são normalmente codificados junto com a <link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"dialog opening\">abertura de caixas de diálogo</link>. Há numerosas abordagens de listeners possíveis tais como tratadores de eventos para caixas de diálogo ou monitores de eventos para documentos e formulários."
+
+#. Xyv2b
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0505\n"
+"help.text"
+msgid "<link href=\"text/sbasic/shared/03132000.xhp\" name=\"CreateUnoListener Function\">CreateUnoListener Function</link>"
+msgstr "<link href=\"text/sbasic/shared/03132000.xhp\" name=\"CreateUnoListener Function\">Função CreateUnoListener</link>"
+
+#. zKQhy
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0506\n"
+"help.text"
+msgid "<link href=\"text/swriter/01/05060700.xhp\" name=\"Events mapping to objects\">Events mapping to objects</link>"
+msgstr "<link href=\"text/swriter/01/05060700.xhp\" name=\"Events mapping to objects\">Eventos mapeando em objetos</link>"
+
+#. Xbxfm
+#: python_listener.xhp
+msgctxt ""
+"python_listener.xhp\n"
+"N0509\n"
+"help.text"
+msgid "See also <link href=\"text/sbasic/shared/01040000.xhp\" name=\"Document events\">Document events</link>, <link href=\"text/shared/02/01170202.xhp\" name=\"Form events\">Form events</link>."
+msgstr "Veja também <link href=\"text/sbasic/shared/01040000.xhp\" name=\"Document events\">Eventos de documento</link>, <link href=\"text/shared/02/01170202.xhp\" name=\"Form events\">Eventos de formulário</link>."
+
+#. GC8Ny
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python Scripts Organization"
+msgstr "Organização de scripts Python"
+
+#. KKGnc
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"hd_id391543358231021\n"
+"help.text"
+msgid "<variable id=\"pythonlocations1\"><link href=\"text/sbasic/python/python_locations.xhp\" name=\"command_name\">Python Scripts Organization and Location</link></variable>"
+msgstr "<variable id=\"pythonlocations1\"><link href=\"text/sbasic/python/python_locations.xhp\" name=\"command_name\">Organização e localização de scripts Python</link></variable>"
+
+#. rRufi
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id481636114810038\n"
+"help.text"
+msgid "%PRODUCTNAME macros are grouped in module files, modules are usually grouped in library folders, and libraries are grouped in library containers although containers can contain modules too."
+msgstr "As macros do %PRODUCTNAME são agrupadas em arquivos de módulo, os módulos geralmente são agrupados em pastas de biblioteca e as bibliotecas são agrupadas em contêineres de biblioteca, embora os contêineres também possam conter módulos."
+
+#. wGWz9
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id771543358231022\n"
+"help.text"
+msgid "A library is used as a major grouping for either an entire category of macros, or for an entire application. Modules usually split functionality, such as user interaction and calculations. Individual macros are subroutines and functions. The Figure below shows an example of the hierarchical structure of macro libraries in %PRODUCTNAME."
+msgstr "Usa-se uma biblioteca para um agrupamento principal de uma categoria inteira de macros ou para um aplicativo inteiro. Os módulos geralmente se dividem em funcionalidades, como interação com o usuário e cálculos. Macros individuais são sub-rotinas e funções. A figura abaixo mostra um exemplo da estrutura hierárquica das bibliotecas de macros no %PRODUCTNAME."
+
+#. b8iEG
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id771636279690940\n"
+"help.text"
+msgid "<image src=\"media/helpimg/sbasic/Library-Container.svg\" id=\"img_id121636285791637\" width=\"8cm\" height=\"5.5cm\"><alt id=\"alt_id471636279690940\">Library Container diagram</alt></image>"
+msgstr "<image src=\"media/helpimg/sbasic/Library-Container.svg\" id=\"img_id121636285791637\" width=\"8cm\" height=\"5.5cm\"><alt id=\"alt_id471636279690940\">Diagrama de contêiner de biblioteca</alt></image>"
+
+#. JqG95
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id171636114787810\n"
+"help.text"
+msgid "<emph>Figure:</emph> Macro Library hierarchy"
+msgstr "<emph>Figura:</emph> Hierarquia das bibliotecas de macros"
+
+#. dbwvM
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id801636114790638\n"
+"help.text"
+msgid "The containers are accessible in all %PRODUCTNAME programs through the user interface. Go to <menuitem>Tools > Macros > Organize Macros > Python</menuitem>, to open the Python Macros dialog."
+msgstr "Os contêineres podem ser acessados em todos os programas do %PRODUCTNAME por meio da interface do usuário. Acesse <menuitem>Ferramentas > Macros > Organizar macros > Python</menuitem>, para abrir a caixa de diálogo Macros do Python."
+
+#. FU5EC
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id801636114808666\n"
+"help.text"
+msgid "Three library containers are shown in the Macro From list:"
+msgstr "Três contêineres de biblioteca são mostrados na lista Macro de:"
+
+#. RnBRr
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id321636114854594\n"
+"help.text"
+msgid "<emph>My Macros:</emph> personal macros available for the %PRODUCTNAME user"
+msgstr "<emph>Minhas macros:</emph> macros pessoais disponíveis para o usuário atual do %PRODUCTNAME."
+
+#. bDXrr
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id471636114847530\n"
+"help.text"
+msgid "<emph>Application Macros:</emph> system macros distributed with %PRODUCTNAME for every computer user"
+msgstr "<emph>Macros da aplicação: </emph> macros do sistema distribuídas com o %PRODUCTNAME para todos os usuários do computador."
+
+#. kVY4C
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id191636114858218\n"
+"help.text"
+msgid "<emph>Document macros:</emph> every document can contain macro libraries available in that document for all users"
+msgstr "<emph>Macros do documento:</emph> todo documento pode conter bibliotecas de macro disponíveis quando este documento estiver aberto."
+
+#. iEtmS
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"hd_id911544049584458\n"
+"help.text"
+msgid "Python Script Locations"
+msgstr "Locais de script em Python"
+
+#. cmghv
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id121551089455774\n"
+"help.text"
+msgid "Refer to <link href=\"text/sbasic/python/python_session.xhp\" name=\"Getting Session Information\">Getting Session Information</link> in order to get programmatic access to Python script locations."
+msgstr "Consulte <link href=\"text/sbasic/python/python_session.xhp\" name=\"Getting Session Information\">Obter informação da sessão</link> para ter acesso programável às localidades das macros Python."
+
+#. GDrUs
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"hd_id591544049572647\n"
+"help.text"
+msgid "Application Macros"
+msgstr "Macros da aplicação"
+
+#. xBzRT
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id261544049064421\n"
+"help.text"
+msgid "Existing macros in this location (container) were copied by the installation program and are available to every computer user, and any open document can access macros stored the container. You need administrative rights to store or edit macros here."
+msgstr "Macros neste local (contêiner) foram copiadas pelo programa de instalação e estão disponíveis a todos os usuários do computador, e todo documento aberto pode acessar as macros armazenadas neste contêiner. Você precisa de direitos de administrador para armazenar ou editar macros aqui."
+
+#. M8CGu
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id861544210028670\n"
+"help.text"
+msgid "The %PRODUCTNAME Macros container location in the file system depends on the operating system:"
+msgstr "O local do contêiner de macros do %PRODUCTNAME no sistema de arquivos depende do sistema operacional:"
+
+#. GMBSF
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id191544210072242\n"
+"help.text"
+msgid "For <emph>Windows</emph>: <literal>{Installation}\\share\\Scripts\\python</literal>."
+msgstr "Para <emph>Windows</emph>: <literal>{Instalação}\\share\\Scripts\\python</literal>."
+
+#. DV8TD
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id61544210078654\n"
+"help.text"
+msgid "For <emph>Linux</emph> and <emph>macOS</emph>: <literal>{Installation}/share/Scripts/python</literal>."
+msgstr "Para <emph>Linux</emph> e <emph>macOS</emph>: <literal>{Instalação}/share/Scripts/python</literal>."
+
+#. 5sHwj
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"hd_id861544049692222\n"
+"help.text"
+msgid "My Macros"
+msgstr "Minhas macros"
+
+#. aiMzD
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id981544049055996\n"
+"help.text"
+msgid "This container is accessible only by the %PRODUCTNAME user. Any open document can access macros stored the container. Macros in this location are stored in the %PRODUCTNAME user profile."
+msgstr "Este contêiner é acessível apenas pelo usuário do %PRODUCTNAME. Qualquer documento aberto pode acessar macros armazenadas no contêiner. As macros neste local são armazenadas no perfil de usuário do %PRODUCTNAME."
+
+#. wUjx4
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id341544210187846\n"
+"help.text"
+msgid "The My Macros container location is in the user space and depends on the operating system:"
+msgstr "O local do contêiner Minhas macros está no espaço do usuário e depende do sistema operacional:"
+
+#. mhNtD
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id381544210213190\n"
+"help.text"
+msgid "For <emph>Windows</emph>,<br/><literal>%APPDATA%\\LibreOffice\\4\\user\\Scripts\\python</literal>."
+msgstr "Para <emph>Windows</emph>,<br/><literal>%APPDATA%\\LibreOffice\\4\\user\\Scripts\\python</literal>."
+
+#. fQYPE
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id691544210219850\n"
+"help.text"
+msgid "For <emph>Linux</emph> and <emph>macOS</emph>,<br/><literal>$HOME/.config/libreoffice/4/user/Scripts/python</literal>."
+msgstr "Para <emph>Linux</emph> e <emph>macOS</emph>,<br/><literal>$HOME/.config/libreoffice/4/user/Scripts/python</literal>."
+
+#. CSJC9
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"hd_id101544049707712\n"
+"help.text"
+msgid "Document macros"
+msgstr "Macros de documentos"
+
+#. FBmoB
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id31544049046497\n"
+"help.text"
+msgid "Document macros are embedded in the document and are accessible only when the document is open."
+msgstr "As macros de documentos estão incorporadas no documento e são acessíveis apenas quando o documento está aberto."
+
+#. qbVc9
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"hd_id171544049715310\n"
+"help.text"
+msgid "Libraries, Modules and Macros"
+msgstr "Bibliotecas, Módulos e Macros"
+
+#. 24e7J
+#: python_locations.xhp
+msgctxt ""
+"python_locations.xhp\n"
+"par_id181544209916707\n"
+"help.text"
+msgid "Python macros can be organized in libraries, modules and macros. Use the Macro Library hierarchy as a guide when creating or installing new macros in module files, new module files in library folders or new library folders in containers."
+msgstr "As macros Python podem ser organizadas em bibliotecas, módulos e macros. Use a hierarquia da Biblioteca de macros como um guia ao criar ou instalar novas macros em arquivos de módulo, novos arquivos de módulo em pastas de biblioteca ou novas pastas de biblioteca em contêineres."
+
+#. Zcfxg
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python : Platform class"
+msgstr "Python : classe Platform"
+
+#. jnNvg
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0508\n"
+"help.text"
+msgid "<bookmark_value>Platform;isLinux</bookmark_value> <bookmark_value>Platform;isMacOsX</bookmark_value> <bookmark_value>Platform;isWindows</bookmark_value> <bookmark_value>Platform;ComputerName</bookmark_value> <bookmark_value>Platform;OSName</bookmark_value> <bookmark_value>API;ConfigurationAccess</bookmark_value> <bookmark_value>Tools;GetRegistryContent</bookmark_value>"
+msgstr "<bookmark_value>Plataforma;isLinux</bookmark_value> <bookmark_value>Plataforma;isMacOsX</bookmark_value> <bookmark_value>Plataforma;isWindows</bookmark_value> <bookmark_value>Plataforma;ComputerName</bookmark_value> <bookmark_value>Plataforma;OSName</bookmark_value> <bookmark_value>API;ConfigurationAccess</bookmark_value> <bookmark_value>Ferramentas;GetRegistryContent</bookmark_value>"
+
+#. uMBGn
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0509\n"
+"help.text"
+msgid "<variable id=\"pythonplatform\"><link href=\"text/sbasic/python/python_platform.xhp\" name=\"platform01\">Identifying the operating system</link></variable>"
+msgstr "<variable id=\"pythonplatform\"><link href=\"text/sbasic/python/python_platform.xhp\" name=\"platform01\">Identificar o sistema operacional</link></variable>"
+
+#. vqduy
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0510\n"
+"help.text"
+msgid "Identifying the operating system can be performed with Python or Basic language."
+msgstr "A identificação do sistema operacional pode ser feita em linguagem Python ou Basic."
+
+#. gZrHC
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0511\n"
+"help.text"
+msgid "ComputerName property is solely available for Windows. Basic calls to Python macros help overcome %PRODUCTNAME Basic limitations."
+msgstr "ComputerName é uma propriedade disponível somente no Windows. As chamadas do Basic para as macros Python ajudam a resolver as limitações do %PRODUCTNAME Basic."
+
+#. sV6Fp
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0512\n"
+"help.text"
+msgid "Using a Python class:"
+msgstr "Usando uma classe de Python:"
+
+#. ikwcW
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0529\n"
+"help.text"
+msgid "Using a Basic classmodule:"
+msgstr "Usando um módulo de classe de Basic:"
+
+#. 7BpCv
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"NO529b\n"
+"help.text"
+msgid "%PRODUCTNAME Basic lacks MacOS X native recognition. Platform identification is possible using %PRODUCTNAME Application Programming Interface (API)."
+msgstr "Falta ao %PRODUCTNAME Basic o reconhecimento nativo do MacOS. A identificação de plataforma é possível utilizando a Application Programming Interface (API) do %PRODUCTNAME."
+
+#. tTyE5
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0451\n"
+"help.text"
+msgid "' Return platform name as \"MAC\", \"UNIX\", \"WIN\""
+msgstr "' Retorna o nome da plataforma como \"MAC\", \"UNIX\", \"WIN\""
+
+#. AwTGx
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0551\n"
+"help.text"
+msgid "' Inferred from \"Tools.UCB.ShowHelperDialog\" function"
+msgstr "' Inferido da função \"Tools.UCB.ShowHelperDialog\""
+
+#. jtA2N
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0564\n"
+"help.text"
+msgid "Examples:"
+msgstr "Exemplos:"
+
+#. riK2q
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0565\n"
+"help.text"
+msgid "With Python"
+msgstr "Com Python"
+
+#. FELjZ
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0567\n"
+"help.text"
+msgid "<literal>>>> print(Platform().isMacOSX) # object property</literal>"
+msgstr "<literal>>>> print(Platform().isMacOSX # propriedade do objeto</literal>"
+
+#. dAWDs
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0569\n"
+"help.text"
+msgid "<literal>>>> input(Platform().OSName) # object property</literal>"
+msgstr "<literal>>>> input(Platform().OSName) # propriedade do objeto</literal>"
+
+#. MkpG4
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0571\n"
+"help.text"
+msgid "From <menuitem>Tools – Macros - Run Macro...</menuitem> menu."
+msgstr "A partir do menu <menuitem>Ferramentas – Macros - Executar Macro...</menuitem>."
+
+#. Qk6MM
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0576\n"
+"help.text"
+msgid "With %PRODUCTNAME Basic"
+msgstr "Com %PRODUCTNAME Basic"
+
+#. Jkyqd
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0578\n"
+"help.text"
+msgid "Dim p As New Platform ' instance of Platform class"
+msgstr "Dim p As New Platform ' instância da classe Platform"
+
+#. HWYHg
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0579\n"
+"help.text"
+msgid "MsgBox p.isLinux ' object property"
+msgstr "MsgBox p.isLinux ' propriedade do objeto"
+
+#. 9FGEv
+#: python_platform.xhp
+msgctxt ""
+"python_platform.xhp\n"
+"N0580\n"
+"help.text"
+msgid "Print p.isWindows, p.OSName ' object properties"
+msgstr "Print p.isWindows, p.OSName ' propriedades do objeto"
+
+#. ej5WE
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python : Programming with Python"
+msgstr "Python : Programar com Python"
+
+#. g4R9j
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0218\n"
+"help.text"
+msgid "<bookmark_value>Python;Programming</bookmark_value> <bookmark_value>XSCRIPTCONTEXT;Python</bookmark_value> <bookmark_value>XSCRIPTCONTEXT;getComponentContext()</bookmark_value> <bookmark_value>uno.py</bookmark_value> <bookmark_value>uno.py;getComponentContext()</bookmark_value>"
+msgstr "<bookmark_value>Python;programação</bookmark_value> <bookmark_value>XSCRIPTCONTEXT;Python</bookmark_value> <bookmark_value>XSCRIPTCONTEXT;getComponentContext()</bookmark_value> <bookmark_value>uno.py</bookmark_value> <bookmark_value>uno.py;getComponentContext()</bookmark_value>"
+
+#. CU6JS
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"hd_id691546462755220\n"
+"help.text"
+msgid "<variable id=\"pythonprogrammingheading\"><link href=\"text/sbasic/python/python_programming.xhp\" name=\"python programming\">Programming with Python Scripts</link></variable>"
+msgstr "<variable id=\"pythonprogrammingheading\"><link href=\"text/sbasic/python/python_programming.xhp\" name=\"python programming\">Programando com scripts Python</link></variable>"
+
+#. BjiFe
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0220\n"
+"help.text"
+msgid "A Python macro is a function within a .py file, identified as a module. Unlike %PRODUCTNAME Basic and its dozen of <link href=\"text/sbasic/shared/uno_objects.xhp\" name=\"UNO objects functions or services\">UNO objects functions or services</link>, Python macros use the <literal>XSCRIPTCONTEXT</literal> UNO single object, shared with JavaScript and BeanShell. The <literal>g_exportedScripts</literal> global tuple explicitly lists selectable macros from a module. Python modules hold autonomous code logic, and are independent from one another."
+msgstr "Uma macro Python é uma função dentro de um arquivo .py, identificada como um módulo. Ao contrário do %PRODUCTNAME Basic e sua dúzia de <link href=\"text/sbasic/shared/uno_objects.xhp\" name=\"UNO objects functions or services\">funções ou serviços de objetos UNO</link>, as macros Python usam o objeto único <literal>XSCRIPTCONTEXT</literal> UNO, compartilhado com JavaScript e BeanShell. A tupla global <literal>g_exportedScripts</literal> lista explicitamente as macros selecionáveis de um módulo. Os módulos Python possuem lógica de código autônomo e são independentes um do outro."
+
+#. 8Ri8m
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0221\n"
+"help.text"
+msgid "XSCRIPTCONTEXT Global Variable"
+msgstr "Variável Global XSCRIPTCONTEXT"
+
+#. xnRGE
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0222\n"
+"help.text"
+msgid "Genuine Basic UNO facilities can be inferred from <literal>XSCRIPTCONTEXT</literal> global variable. Refer to %PRODUCTNAME API for a complete <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScriptContext.html\" name=\"description of XSCRIPTCONTEXT\">description of XSCRIPTCONTEXT</link>. <literal>XSCRIPTCONTEXT</literal> methods summarize as:"
+msgstr "As instalações UNO básicas genuínas podem ser inferidas da variável global <literal>XSCRIPTCONTEXT</literal>. Consulte a API do %PRODUCTNAME para obter uma descrição <link href=\"https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScriptContext.html\" name=\"description of XSCRIPTCONTEXT\"> completa do XSCRIPTCONTEXT</link>. Os métodos <literal>XSCRIPTCONTEXT</literal> se resumem como:"
+
+#. U6KbS
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0224\n"
+"help.text"
+msgid "Methods"
+msgstr "Métodos"
+
+#. skMQF
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0225\n"
+"help.text"
+msgid "Description"
+msgstr "Descrição"
+
+#. onsBW
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0226\n"
+"help.text"
+msgid "Mapped in Basic as"
+msgstr "Mapeado no Basic como"
+
+#. 54Nun
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0228\n"
+"help.text"
+msgid "The document reference on which the script can operate."
+msgstr "A referência do documento na qual o script pode operar."
+
+#. CR7pv
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0231\n"
+"help.text"
+msgid "The desktop reference on which the script can operate."
+msgstr "A referência da área de trabalho na qual o script pode operar."
+
+#. rAVfx
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0234\n"
+"help.text"
+msgid "The component context which the script can use to create other uno components."
+msgstr "O contexto do componente que o script pode usar para criar outros componentes do uno."
+
+#. 5wUcN
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0237\n"
+"help.text"
+msgid "<emph>HelloWorld</emph> and <emph>Capitalise</emph> installation shared scripts illustrate UNO-related macros making use of <literal>XSCRIPTCONTEXT</literal> global variable."
+msgstr "Os scripts <emph>HelloWorld</emph> e <emph>Capitalise</emph> compartilhados da instalação ilustram as macros relacionadas a UNO que usam a variável global <literal>XSCRIPTCONTEXT</literal>."
+
+#. RQgKR
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0238\n"
+"help.text"
+msgid "Python standard output file is not available when running Python macros from <menuitem>Tools - Macros - Run Macro</menuitem> menu. Refer to <emph>Input/Output to Screen</emph> for more information."
+msgstr "O arquivo de saída padrão do Python não está disponível ao executar macros do Python no menu <menuitem>Ferramentas - Macros - Executar Macro</menuitem>. Consulte <emph>Entrada/Saída para tela</emph> para mais informações."
+
+#. WuGCs
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0239\n"
+"help.text"
+msgid "Module import"
+msgstr "Importar módulos"
+
+#. tBVP2
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0240\n"
+"help.text"
+msgid "<literal>XSCRIPTCONTEXT</literal> is not provided to imported modules."
+msgstr "<literal>XSCRIPTCONTEXT</literal> não é fornecido para módulos importados."
+
+#. dURCV
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0241\n"
+"help.text"
+msgid "%PRODUCTNAME Basic libraries contain classes, routines and variables, Python modules contain classes, functions and variables. Common pieces of reusable Python or UNO features must be stored in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"My macros\">My macros</link> within <literal>(User Profile)/Scripts/python/pythonpath</literal>. Python libraries help organize modules in order to prevent module name collisions. Import <literal>uno.py</literal> inside shared modules."
+msgstr "As bibliotecas BASIC do %PRODUCTNAME contém classes, rotinas e variáveis. Os módulos Python contém classes, funções e variáveis. Os trechos comuns de recursos reutilizáveis Python e UNO devem ser armazenados no contêiner <link href=\"text/sbasic/python/python_locations.xhp\" name=\"My macros\">Minhas Macros</link> em <literal>(perfil do usuário)/Scripts/python/pythonpath</literal>. As bibliotecas Python ajudam a organizar os módulos para evitar colisão de nomes. Importe <literal>uno.py</literal> nos módulos compartilhados."
+
+#. a2xVe
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0242\n"
+"help.text"
+msgid "Genuine BASIC UNO facilities can be inferred using <literal>uno.py</literal> module. Use <link href=\"text/sbasic/python/python_shell.xhp\" name=\"Python interactive shell\">Python interactive shell</link> to get a complete module description using <literal>dir()</literal> and <literal>help()</literal> Python commands."
+msgstr "Os recursos genuínos do UNO BASIC podem ser inferidos utilizando o módulo <literal>uno.py</literal>. Utilize o <link href=\"text/sbasic/python/python_shell.xhp\" name=\"Python interactive shell\">interpretador interativo Python</link> para ter uma descrição completa do módulo utilizando os comandos Python <literal>dir()</literal> e <literal>help()</literal>."
+
+#. Gi6iz
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0244\n"
+"help.text"
+msgid "Functions"
+msgstr "Funções"
+
+#. jFADb
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0245\n"
+"help.text"
+msgid "Description"
+msgstr "Descrição"
+
+#. 6wDQn
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0246\n"
+"help.text"
+msgid "Mapped in Basic as"
+msgstr "Mapeado no Basic como"
+
+#. 7prVF
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0248\n"
+"help.text"
+msgid "Returns an absolute file url from the given urls."
+msgstr "Retorna um URL de arquivo absoluto dos URLs fornecidos."
+
+#. PE7AD
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0251\n"
+"help.text"
+msgid "Creates a UNO struct or exception given by typeName."
+msgstr "Cria uma estrutura ou exceção UNO dada por typeName."
+
+#. FNPMc
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0254\n"
+"help.text"
+msgid "Returns a system path."
+msgstr "Retorna um caminho do sistema."
+
+#. sFbd9
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0257\n"
+"help.text"
+msgid "Returns the class of a concrete UNO exception, struct, or interface."
+msgstr "Retorna a classe de uma exceção concreta, struct ou interface UNO."
+
+#. qAbMv
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0260\n"
+"help.text"
+msgid "Returns the UNO component context used to initialize the Python runtime."
+msgstr "Retorna o contexto do componente UNO usado para inicializar o tempo de execução do Python."
+
+#. WQBzo
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0264\n"
+"help.text"
+msgid "Looks up the value of an IDL constant by giving its explicit name."
+msgstr "Procura o valor de uma constante de IDL dando seu nome explícito."
+
+#. VD2pr
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0265\n"
+"help.text"
+msgid "See API constant groups"
+msgstr "Veja grupos de constantes da API"
+
+#. RMBST
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0267\n"
+"help.text"
+msgid "Returns True, when obj is a class of a UNO interface."
+msgstr "Retorna Verdadeiro, quando obj é uma classe de uma interface UNO."
+
+#. B84WF
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0270\n"
+"help.text"
+msgid "Returns a file URL for the given system path."
+msgstr "Retorna um URL de arquivo para o caminho do sistema especificado."
+
+#. GEMGY
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0272\n"
+"help.text"
+msgid "<emph>LibreLogo</emph> and <emph>TableSample</emph> installation shared scripts use <literal>uno.py</literal> module."
+msgstr "Os scripts compartilhados de instalação <emph>LibreLogo</emph> e <emph>TableSample</emph> usam o módulo <literal>uno.py</literal>."
+
+#. 9NieC
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0273\n"
+"help.text"
+msgid "More Python-Basic samples"
+msgstr "Mais amostras de Python-Basic"
+
+#. 6Yct5
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0275\n"
+"help.text"
+msgid "Python UNO"
+msgstr "Python UNO"
+
+#. 8GvqG
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0276\n"
+"help.text"
+msgid "Basic UNO features"
+msgstr "Recursos UNO BASIC"
+
+#. 8EWYh
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0284\n"
+"help.text"
+msgid "See <link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"Opening a Dialog\">Opening a Dialog</link>"
+msgstr "Veja <link href=\"text/sbasic/python/python_dialogs.xhp\" name=\"Opening a Dialog\">Abrir uma caixa de diálogo</link>"
+
+#. F2cFF
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0286\n"
+"help.text"
+msgid "See <link href=\"text/sbasic/python/python_listener.xhp\" name=\"Creating a Listener\">Creating a Listener</link>"
+msgstr "Veja <link href=\"text/sbasic/python/python_listener.xhp\" name=\"Creating a Listener\">Criar um listener</link>"
+
+#. LNUaK
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0288\n"
+"help.text"
+msgid "See UNO data types"
+msgstr "Veja Tipos de dados UNO"
+
+#. 4vWGa
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0297\n"
+"help.text"
+msgid "Importing an embedded Module"
+msgstr "Importar um Módulo Incorporado"
+
+#. SGVBE
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0298\n"
+"help.text"
+msgid "Similarly to %PRODUCTNAME Basic that supports browsing and dynamic loading of libraries, Python libraries can be explored and imported on demand. For more information on library containers, visit <link href=\"https://api.libreoffice.org/\" name=\"API Documentation site\">%PRODUCTNAME Application Programming Interface</link> (API) or download <link href=\"https://www.libreoffice.org/download/download/\" name=\"SDK download page\">%PRODUCTNAME Software Development Kit</link> (SDK)."
+msgstr "Da mesma forma que o %PRODUCTNAME Basic suporta a navegação e o carregamento dinâmico de bibliotecas, as bibliotecas do Python podem ser exploradas e importadas sob demanda. Para mais informações sobre contêineres de bibliotecas, visite a API <link href=\"https://api.libreoffice.org/\" name=\"API Documentation site\">(Interface de Programação de Aplicativo) do %PRODUCTNAME</link> ou faça o download do Software Development Kit<link href=\"https://www.libreoffice.org/download/download/\" name=\"SDK download page\"> (SDK) do %PRODUCTNAME</link>."
+
+#. VtFrH
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0299\n"
+"help.text"
+msgid "Importing a Python document embedded module is illustrated below, exception handling is not detailed:"
+msgstr "A importação de um módulo incorporado do documento Python é ilustrada abaixo, a manipulação de exceção não é detalhada:"
+
+#. P2R2D
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0303\n"
+"help.text"
+msgid "\"\"\" load library and import module"
+msgstr "\"\"\" carregando biblioteca e importando módulo"
+
+#. oBnkG
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0305\n"
+"help.text"
+msgid "Adapted from 'Bibliothèque de fonctions' by Hubert Lambert"
+msgstr "Adaptado de 'Bibliothèque de fonctions' de Hubert Lambert"
+
+#. FFxTV
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0306\n"
+"help.text"
+msgid "at https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213\"\"\""
+msgstr "em https://forum.openoffice.org/fr/forum/viewtopic.php?p=286213\"\"\""
+
+#. A2Zvp
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0307\n"
+"help.text"
+msgid "doc = XSCRIPTCONTEXT.getDocument() # current document"
+msgstr "doc = XSCRIPTCONTEXT.getDocument() # document atual"
+
+#. qqpCF
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0310\n"
+"help.text"
+msgid "if not url in sys.path: # add path if necessary"
+msgstr "if not url in sys.path: # adicione o caminho se necessário"
+
+#. HWoLC
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0311\n"
+"help.text"
+msgid "sys.path.insert(0, url) # doclib takes precedence"
+msgstr "sys.path.insert(0, url) # doclib tem precedência"
+
+#. wBdYA
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0312\n"
+"help.text"
+msgid "if module_name: # import if requested"
+msgstr "if module_name: # importe se for pedido"
+
+#. B9zJW
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0316\n"
+"help.text"
+msgid "ui = load_library(\"my_gui\",'screen_io') # add <lib> path + import <module>"
+msgstr "ui = load_library(\"my_gui\",'screen_io') # adicione <lib> path + import <module>"
+
+#. HFcCm
+#: python_programming.xhp
+msgctxt ""
+"python_programming.xhp\n"
+"N0321\n"
+"help.text"
+msgid "<link href=\"text/sbasic/shared/uno_objects.xhp\" name=\"UNO objects page\">Basic UNO Objects, Functions and Services</link>"
+msgstr "<link href=\"text/sbasic/shared/uno_objects.xhp\" name=\"UNO objects page\">Objetos, funções e serviços BASIC UNO</link>"
+
+#. zRBRa
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python : Screen Input/Output"
+msgstr "Python: Entrada/Saída da tela"
+
+#. tMEMB
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0433\n"
+"help.text"
+msgid "<bookmark_value>Python;InputBox</bookmark_value> <bookmark_value>Python;MsgBox</bookmark_value> <bookmark_value>Python;Print</bookmark_value> <bookmark_value>API;script.provider.MasterScriptProvider: Screen Input/Output</bookmark_value> <bookmark_value>API;script.provider.XScript: Screen Input/Output</bookmark_value>"
+msgstr "<bookmark_value>Python;InputBox</bookmark_value> <bookmark_value>Python;MsgBox</bookmark_value> <bookmark_value>Python;Print</bookmark_value> <bookmark_value>API;script.provider.MasterScriptProvider: E/S de tela</bookmark_value> <bookmark_value>API;script.provider.XScript: E/S de tela</bookmark_value>"
+
+#. fovpz
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0434\n"
+"help.text"
+msgid "<variable id=\"ioscreen\"><link href=\"text/sbasic/python/python_screen.xhp\" name=\"IO to screen\">Input/Output to Screen</link></variable>"
+msgstr "<variable id=\"ioscreen\"><link href=\"text/sbasic/python/python_screen.xhp\" name=\"ES na tela\">Entrada e Saída na tela</link></variable>"
+
+#. qCLEs
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0435\n"
+"help.text"
+msgid "Python standard output file is not available when running Python macros from <menuitem>Tools – Macros - Run Macro</menuitem>... menu. Presenting the output of a module requires the Python interactive console. Features such as <literal>input()</literal>, <literal>print()</literal>, <literal>repr()</literal> and <literal>str()</literal> are available from the Python shell."
+msgstr "A saída padrão de arquivo do Python não está disponível ao executar macros Python do menu <menuitem>Ferramentas - Macros - Executar macros</menuitem>. Exibir a saída de um módulo requer a console interativa do Python. Recursos tais como <literal>input()</literal>, <literal>print()</literal>, <literal>repr()</literal> e <literal>str()</literal> estão disponíveis no interpretador do Python."
+
+#. NHHFB
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0436\n"
+"help.text"
+msgid "The <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"apso\">Alternative Python Script Organizer</link> (APSO) extension offers a msgbox() function out of its <literal>apso_utils</literal> module."
+msgstr "A extensão <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-python\" name=\"apso\">Alternative Python Script Organizer</link> (APSO) oferece a função msgbox() dentro do módulo <literal>apso_utils</literal>."
+
+#. aPSDz
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0437\n"
+"help.text"
+msgid "%PRODUCTNAME Basic proposes <literal>InputBox()</literal>, <literal>Msgbox()</literal> and <literal>Print()</literal> screen I/O functions. Python alternatives exist relying either on %PRODUCTNAME API Abstract Windowing Toolkit, either on Python to Basic function calls. The latter proposes a syntax that is intentionally close to that of Basic, and uses a Python module next to a Basic module. The API Scripting Framework is used to perform Basic, BeanShell, JavaScript and Python inter-languages function calls."
+msgstr "O %PRODUCTNAME Basic oferece as funções de E/S <literal>InputBox()</literal>, <literal>Msgbox()</literal> e <literal>Print()</literal>. As alternativas Python existem a partir tanto do %PRODUCTNAME API Abstract Windowing Toolkit, quanto pelas chamadas para o BASIC do Python. Esta última oferece uma sintaxe intencionalmente similar ao BASIC, e utiliza um módulo Python junto com um módulo BASIC. Utiliza-se o API Scripting Framework para executar chamadas de função entre BASIC, BeanShell, JavaScript e Python."
+
+#. hat4k
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0438\n"
+"help.text"
+msgid "Python syntax:"
+msgstr "Sintaxe Python:"
+
+#. QypFq
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0442\n"
+"help.text"
+msgid "Examples:"
+msgstr "Exemplos:"
+
+#. DbZVx
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0449\n"
+"help.text"
+msgid "Installation:"
+msgstr "Instalação:"
+
+#. QDrDk
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0450\n"
+"help.text"
+msgid "Copy <literal>screen_io</literal> Python module in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"User macros\">My macros</link> within <UserProfile>/Scripts/python/pythonpath,"
+msgstr "Copie o módulo <literal>screen_io</literal> para <link href=\"text/sbasic/python/python_locations.xhp\" name=\"User macros\">Minhas macros</link> dentro de <UserProfile>/Scripts/python/pythonpath,"
+
+#. bckjW
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0451\n"
+"help.text"
+msgid "Copy <literal>uiScripts</literal> Basic module in <link href=\"text/sbasic/python/python_locations.xhp\" name=\"User macros\">My macros</link> Standard Basic library,"
+msgstr "Copie o módulo BASIC <literal>uiScripts</literal> para a biblioteca Standard Basic em <link href=\"text/sbasic/python/python_locations.xhp\" name=\"User macros\">Minhas macros</link>,"
+
+#. XAthB
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0452\n"
+"help.text"
+msgid "Restart %PRODUCTNAME."
+msgstr "Reinicie o %PRODUCTNAME."
+
+#. jGGGZ
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0453\n"
+"help.text"
+msgid "<literal>screen_io</literal> Python module"
+msgstr "Módulo Python <literal>screen_io</literal>"
+
+#. EB2zZ
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0467\n"
+"help.text"
+msgid "\"\"\" Displays a dialog box containing a message and returns a value.\"\"\""
+msgstr "\"\"\" Exibe uma caixa de diálogo contendo uma mensagem e retorna um valor. \"\"\""
+
+#. nUtxt
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0473\n"
+"help.text"
+msgid "\"\"\" Displays a prompt in a dialog box at which the user can enter text.\"\"\""
+msgstr "\"\"\" Exibe um prompt em uma caixa de diálogo na qual o usuário pode inserir texto.\"\"\""
+
+#. MFz5D
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0479\n"
+"help.text"
+msgid "\"\"\"Outputs the specified strings or numeric expressions in a dialog box.\"\"\""
+msgstr "\"\"\"Direciona a saída dos strings ou das expressões numéricas especificadas para uma caixa de diálogo.\"\"\""
+
+#. EYqxJ
+#: python_screen.xhp
+msgctxt ""
+"python_screen.xhp\n"
+"N0492\n"
+"help.text"
+msgid "<literal>uiScripts</literal> Basic module"
+msgstr "Módulo Basic <literal>uiScripts</literal>"
+
+#. CGnPe
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python_Session : Session class"
+msgstr "Python_Session: classe Session"
+
+#. vkS8P
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0339\n"
+"help.text"
+msgid "<bookmark_value>Session;UserName</bookmark_value> <bookmark_value>Session;SharedScripts</bookmark_value> <bookmark_value>Session;SharedPythonScripts</bookmark_value> <bookmark_value>Session;UserProfile</bookmark_value> <bookmark_value>Session;UserScripts</bookmark_value> <bookmark_value>Session;UserPythonScripts</bookmark_value> <bookmark_value>API;PathSubstitution</bookmark_value>"
+msgstr "<bookmark_value>Sessão;UserName</bookmark_value> <bookmark_value>Sessão;SharedScripts</bookmark_value> <bookmark_value>Sessão;SharedPythonScripts</bookmark_value> <bookmark_value>Sessão;UserProfile</bookmark_value> <bookmark_value>Sessão;UserScripts</bookmark_value> <bookmark_value>Sessão;UserPythonScripts</bookmark_value> <bookmark_value>API;PathSubstitution</bookmark_value>"
+
+#. EvmoA
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0340\n"
+"help.text"
+msgid "<variable id=\"pythonsession\"><link href=\"text/sbasic/python/python_session.xhp\" name=\"session01\">Getting Session Information</link></variable>"
+msgstr "<variable id=\"pythonsession\"><link href=\"text/sbasic/python/python_session.xhp\" name=\"session01\">Obter informação da sessão</link></variable>"
+
+#. nmTjF
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0341\n"
+"help.text"
+msgid "Computing %PRODUCTNAME user profile and shared modules system file paths can be performed with Python or with Basic languages. BeanShell, Java, JavaScript and Python scripts locations can be derived from this information."
+msgstr "Para computar o perfil do usuário do %PRODUCTNAME e os caminhos do arquivo do sistema de módulos compartilhados, pode-se executar caminhos com Python e com a linguagem Basic. Locais de scripts BeanShell, Java, JavaScript e Python podem ser derivados dessas informações."
+
+#. gMnyC
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0343\n"
+"help.text"
+msgid "Examples:"
+msgstr "Exemplos:"
+
+#. m498C
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0344\n"
+"help.text"
+msgid "With Python shell."
+msgstr "Com o interpretador Python"
+
+#. yziJv
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0346\n"
+"help.text"
+msgid "<literal>>>> print(Session.SharedPythonScripts()) # static method</literal>"
+msgstr "<literal>>>> print(Session.SharedPythonScripts()) # método estático</literal>"
+
+#. ezhbr
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0347\n"
+"help.text"
+msgid "<literal>>>> print(Session().UserName) # object property</literal>"
+msgstr "<literal>>>> print(Session().UserName) # propriedade do objeto</literal>"
+
+#. K4Cjj
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0348\n"
+"help.text"
+msgid "<literal>>>> input(Session().UserProfile) # object property</literal>"
+msgstr "<literal>>>> input(Session().UserProfile) # propriedade do objeto</literal>"
+
+#. CVdoK
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0349\n"
+"help.text"
+msgid "From <menuitem>Tools – Macros - Run Macro</menuitem>... menu."
+msgstr "A partir do menu <menuitem>Ferramentas – Macros - Executar Macro</menuitem>."
+
+#. k47pk
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0354\n"
+"help.text"
+msgid "ui.MsgBox(Session.Share(),title='Installation Share') # static method"
+msgstr "ui.MsgBox(Session.Share(),title='Installation Share') # método estático"
+
+#. mFu9h
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0355\n"
+"help.text"
+msgid "ui.Print(Session.SharedPythonScripts()) # static method"
+msgstr "ui.Print(Session.SharedPythonScripts()) # método estático"
+
+#. osmNG
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0356\n"
+"help.text"
+msgid "s = Session() # instance creation"
+msgstr "s = Session() # criação de instância"
+
+#. Gqz8J
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0357\n"
+"help.text"
+msgid "ui.MsgBox(s.UserName,title='Hello') # object property"
+msgstr "ui.MsgBox(s.UserName,title='Hello') # propriedade do objeto"
+
+#. 8c4GN
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0358\n"
+"help.text"
+msgid "ui.Print(s.UserPythonScripts) # object property"
+msgstr "ui.Print(s.UserPythonScripts) # propriedade do objeto"
+
+#. GAffb
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0360\n"
+"help.text"
+msgid "g_exportedScripts = (demo_session,) # public macros"
+msgstr "g_exportedScripts = (demo_session,) # macros públicas"
+
+#. GfLEb
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0361\n"
+"help.text"
+msgid "With %PRODUCTNAME Basic."
+msgstr "Com %PRODUCTNAME Basic"
+
+#. CJAPH
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0364\n"
+"help.text"
+msgid "Print \"Shared scripts location:\", s.SharedScripts"
+msgstr "Print \"Local de scripts compartilhados:\", s.SharedScripts"
+
+#. nKgLS
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0365\n"
+"help.text"
+msgid "MsgBox s.UserName,,\"Hello\""
+msgstr "MsgBox s.UserName,,\"Olá\""
+
+#. Dvp2n
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0368\n"
+"help.text"
+msgid "Using COM/OLE and Visual Basic Scripting language."
+msgstr "Mediante COM/OLE e linguagem Visual Basic Scripting."
+
+#. u2czW
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0369\n"
+"help.text"
+msgid "' The service manager is always the entry point"
+msgstr "'O service manager sempre é o ponto de entrada"
+
+#. BiCRF
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0370\n"
+"help.text"
+msgid "' If there is no office running then an office is started up"
+msgstr "' Se não houver uma aplicação office executando, inicie-a"
+
+#. mepxA
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0372\n"
+"help.text"
+msgid "' PathSubstitution service exhibits information to infer"
+msgstr "' O serviço PathSubstitution exibe informações a inferir"
+
+#. njK5P
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0373\n"
+"help.text"
+msgid "' <UserProfile|Share>/Scripts/python locations from"
+msgstr "' Locais de <UserProfile|Share>/Scripts/python"
+
+#. XPAGf
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0381\n"
+"help.text"
+msgid "Python Session class:"
+msgstr "Classe Session de Python:"
+
+#. ePFtK
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0401\n"
+"help.text"
+msgid "@property # alternative to '$(username)' variable"
+msgstr "@property # alternativa à variável '$(username)'"
+
+#. CBvZv
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0342\n"
+"help.text"
+msgid "Unlike Basic, pathname normalization is performed with Python inside Session class."
+msgstr "Diferente do Basic, a normalização dos nomes de caminho é feita dentro da classe Session do Python"
+
+#. 8zUvW
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0412\n"
+"help.text"
+msgid "%PRODUCTNAME Basic Session class:"
+msgstr "Classe Session do %PRODUCTNAME Basic:"
+
+#. ivAG6
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0417\n"
+"help.text"
+msgid "Private _ps As Object ' Private member"
+msgstr "Private _ps As Object ' membro privado"
+
+#. Q9sNs
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0422\n"
+"help.text"
+msgid "End Sub ' Constructor"
+msgstr "End Sub ' construtor"
+
+#. ELSQJ
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0426\n"
+"help.text"
+msgid "End Sub ' Destructor"
+msgstr "End Sub ' destrutor"
+
+#. 7neVV
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0439\n"
+"help.text"
+msgid "Public Property Get UserName() As String ' User account name"
+msgstr "Public Property Get UserName() As String ' nome da conta do usuário"
+
+#. NsDBi
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0443\n"
+"help.text"
+msgid "Public Property Get UserProfile() As String ' User profile system path"
+msgstr "Public Property Get UserProfile() As String ' caminho do perfil do usuário no sistema"
+
+#. do2CY
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0447\n"
+"help.text"
+msgid "Public Property Get UserScripts() As String ' User scripts system path"
+msgstr "Public Property Get UserScripts() As String ' Caminho dos script do usuário no sistema"
+
+#. Gg3yg
+#: python_session.xhp
+msgctxt ""
+"python_session.xhp\n"
+"N0451\n"
+"help.text"
+msgid "Public Property Get UserPythonScripts() As String ' User Python scripts system path"
+msgstr "Public Property Get UserPythonScripts() As String ' Caminho dos script Python do usuário no sistema"
+
+#. DRC4A
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"tit\n"
+"help.text"
+msgid "Python Interactive Shell"
+msgstr "Interpretador interativo do Python"
+
+#. LUGZ7
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"N0117\n"
+"help.text"
+msgid "<bookmark_value>Python console</bookmark_value> <bookmark_value>Python Interactive Shell</bookmark_value>"
+msgstr "<bookmark_value>console Python</bookmark_value> <bookmark_value>interpretador interativo do Python</bookmark_value>"
+
+#. PmoqF
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"N0118\n"
+"help.text"
+msgid "<variable id=\"pythonshell1\"><link href=\"text/sbasic/python/python_shell.xhp\" name=\"python shell\">Running Python Interactive Console</link></variable>"
+msgstr "<variable id=\"pythonshell1\"><link href=\"text/sbasic/python/python_shell.xhp\" name=\"python shell\">Executar o interpretador interativo do Python</link></variable>"
+
+#. Met9b
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"N0119\n"
+"help.text"
+msgid "The Python interactive console, also known as Python interpreter or Python shell, provides programmers with a quick way to execute commands and try out and test code without creating a file. UNO objects introspection as well as %PRODUCTNAME Python modules documentation can be obtained from the terminal."
+msgstr "O console interativo Python, também conhecido como interpretador Python ou shell Python, fornece aos programadores uma maneira rápida de executar comandos e testar o código sem criar um arquivo. A introspecção de objetos UNO e a documentação dos módulos Python do %PRODUCTNAME pode ser obtida no terminal."
+
+#. kFpxo
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"par_id851633601202270\n"
+"help.text"
+msgid "From a full-featured %PRODUCTNAME installed package, use either Basic or Python:"
+msgstr "A partir de uma instalação completa do %PRODUCTNAME, use Basic ou Python:"
+
+#. 5HhXz
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"N0121\n"
+"help.text"
+msgid "Using a Basic macro"
+msgstr "Usando uma macro em Basic"
+
+#. KhWLk
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"N0127\n"
+"help.text"
+msgid "Using a Python macro"
+msgstr "Usando uma macro em Python"
+
+#. 3FCJH
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"N0141\n"
+"help.text"
+msgid "Example output"
+msgstr "Saída de exemplo"
+
+#. MxDtE
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"N0142\n"
+"help.text"
+msgid "<image src=\"media/helpimg/python/python_interactive_console.png\" id=\"N0143\"><alt id=\"N0143\">Python Interactive Console</alt></image>"
+msgstr "<image src=\"media/helpimg/python/python_interactive_console.png\" id=\"N0143\"><alt id=\"N0143\">Console Interativo Python</alt></image>"
+
+#. fk6sx
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"hd_id381633446811095\n"
+"help.text"
+msgid "Using the Terminal"
+msgstr "Usando o terminal"
+
+#. CNFdD
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"par_id801633601715910\n"
+"help.text"
+msgid "From a %PRODUCTNAME copy included in a GNU/Linux platform, use the terminal as shown:"
+msgstr "A partir de uma instalação %PRODUCTNAME incluída em um sistema operacional GNU/Linux, use o terminal conforme mostrado a seguir:"
+
+#. vWPwe
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"par_id531633444780190\n"
+"help.text"
+msgid "<literal>whereis</literal> or <literal>type</literal> terminal commands help locate Python interactive console:"
+msgstr "Os comandos <literal>whereis</literal> e <literal>type</literal> ajudam a localizar o console interativo Python:"
+
+#. 8Ei5d
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"hd_id311633513620803\n"
+"help.text"
+msgid "Alternative console"
+msgstr "Console alternativo"
+
+#. d8DCA
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"par_id81632760673283\n"
+"help.text"
+msgid "Use <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-Python\" name=\"APSO extension\">APSO extension</link> console as an alternative:"
+msgstr "Use o console da <link href=\"https://extensions.libreoffice.org/extensions/apso-alternative-script-organizer-for-Python\" name=\"APSO extension\">Extensão APSO</link> como uma alternativa:"
+
+#. 6h9CS
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"N0144\n"
+"help.text"
+msgid "<image src=\"media/helpimg/python/python_shell.png\" id=\"N0144\"><alt id=\"N0144\">APSO console</alt></image>"
+msgstr "<image src=\"media/helpimg/python/python_shell.png\" id=\"N0144\"><alt id=\"N0144\">Console APSO</alt></image>"
+
+#. MxGkV
+#: python_shell.xhp
+msgctxt ""
+"python_shell.xhp\n"
+"par_id351633599611244\n"
+"help.text"
+msgid "<link href=\"text/sbasic/shared/03/sf_exception.xhp?#PythonShell\" name=\"PythonShell method\"><literal>PythonShell</literal></link> function in <link href=\"text/sbasic/shared/03/sf_exception.xhp\" name=\"ScriptForge.Exception service\"><literal>ScriptForge.Exception</literal></link> service"
+msgstr "<link href=\"text/sbasic/shared/03/sf_exception.xhp?#PythonShell\" name=\"PythonShell method\">Método <literal>PythonShell</literal></link> no serviço <link href=\"text/sbasic/shared/03/sf_exception.xhp\" name=\"ScriptForge.Exception service\"><literal>ScriptForge.Exception</literal></link>"