Tools messages

This commit is contained in:
Mauricio Baeza 2021-02-08 22:39:56 -06:00
parent 3c6d21bcbe
commit 27d870d3aa
8 changed files with 241 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -67,7 +67,70 @@ Remember, always import library.
app.msgbox(app.IS_WIN)
**Message box**
^^^^^^^^^^^^^^^
.. code-block:: python
app.msgbox(app.IS_WIN, 'My Macro')
**Show warning**
^^^^^^^^^^^^^^^^
.. code-block:: python
message = 'Caution, this action is dangerous'
title = 'My App'
app.warning(message, title)
**Show error box**
^^^^^^^^^^^^^^^^^^
.. code-block:: python
message = 'ERROR: Contact technical support'
title = 'My App'
app.errorbox(message, title)
**Make question**
^^^^^^^^^^^^^^^^^
.. code-block:: python
message = 'Is easy Python?'
title = 'My App'
result = app.question(message, title)
app.msgbox(result)
**InputBox**
^^^^^^^^^^^^^^^^^
* Normal data
.. code-block:: python
message = 'Type your name'
default = ''
title = 'My App'
result = app.inputbox(message, default, title)
app.msgbox(result)
* Private data
.. code-block:: python
message = 'Type your password'
default = ''
title = 'My App'
echochar = "*"
result = app.inputbox(message, default, title, echochar)
app.msgbox(result)

View File

@ -93,6 +93,63 @@
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">app</span><span class="o">.</span><span class="n">IS_WIN</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="message-box">
<h1><strong>Message box</strong><a class="headerlink" href="#message-box" title="Permalink to this headline"></a></h1>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">app</span><span class="o">.</span><span class="n">IS_WIN</span><span class="p">,</span> <span class="s1">&#39;My Macro&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="show-warning">
<h1><strong>Show warning</strong><a class="headerlink" href="#show-warning" title="Permalink to this headline"></a></h1>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;Caution, this action is dangerous&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">app</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">title</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="show-error-box">
<h1><strong>Show error box</strong><a class="headerlink" href="#show-error-box" title="Permalink to this headline"></a></h1>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;ERROR: Contact technical support&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">app</span><span class="o">.</span><span class="n">errorbox</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">title</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="make-question">
<h1><strong>Make question</strong><a class="headerlink" href="#make-question" title="Permalink to this headline"></a></h1>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;Is easy Python?&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">app</span><span class="o">.</span><span class="n">question</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">title</span><span class="p">)</span>
<span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="inputbox">
<h1><strong>InputBox</strong><a class="headerlink" href="#inputbox" title="Permalink to this headline"></a></h1>
<ul class="simple">
<li><p>Normal data</p></li>
</ul>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;Type your name&#39;</span>
<span class="n">default</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">app</span><span class="o">.</span><span class="n">inputbox</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">default</span><span class="p">,</span> <span class="n">title</span><span class="p">)</span>
<span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
</pre></div>
</div>
<ul class="simple">
<li><p>Private data</p></li>
</ul>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;Type your password&#39;</span>
<span class="n">default</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">echochar</span> <span class="o">=</span> <span class="s2">&quot;*&quot;</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">app</span><span class="o">.</span><span class="n">inputbox</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">default</span><span class="p">,</span> <span class="n">title</span><span class="p">,</span> <span class="n">echochar</span><span class="p">)</span>
<span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
</pre></div>
</div>
</div>

View File

@ -224,6 +224,63 @@ install before call it.</p>
</pre></div>
</div>
</div>
<div class="section" id="id2">
<h3><strong>Message box</strong><a class="headerlink" href="#id2" title="Permalink to this headline"></a></h3>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">app</span><span class="o">.</span><span class="n">IS_WIN</span><span class="p">,</span> <span class="s1">&#39;My Macro&#39;</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="show-warning">
<h3><strong>Show warning</strong><a class="headerlink" href="#show-warning" title="Permalink to this headline"></a></h3>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;Caution, this action is dangerous&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">app</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">title</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="show-error-box">
<h3><strong>Show error box</strong><a class="headerlink" href="#show-error-box" title="Permalink to this headline"></a></h3>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;ERROR: Contact technical support&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">app</span><span class="o">.</span><span class="n">errorbox</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">title</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="make-question">
<h3><strong>Make question</strong><a class="headerlink" href="#make-question" title="Permalink to this headline"></a></h3>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;Is easy Python?&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">app</span><span class="o">.</span><span class="n">question</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">title</span><span class="p">)</span>
<span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
</pre></div>
</div>
</div>
<div class="section" id="inputbox">
<h3><strong>InputBox</strong><a class="headerlink" href="#inputbox" title="Permalink to this headline"></a></h3>
<ul class="simple">
<li><p>Normal data</p></li>
</ul>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;Type your name&#39;</span>
<span class="n">default</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">app</span><span class="o">.</span><span class="n">inputbox</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">default</span><span class="p">,</span> <span class="n">title</span><span class="p">)</span>
<span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
</pre></div>
</div>
<ul class="simple">
<li><p>Private data</p></li>
</ul>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">message</span> <span class="o">=</span> <span class="s1">&#39;Type your password&#39;</span>
<span class="n">default</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span>
<span class="n">title</span> <span class="o">=</span> <span class="s1">&#39;My App&#39;</span>
<span class="n">echochar</span> <span class="o">=</span> <span class="s2">&quot;*&quot;</span>
<span class="n">result</span> <span class="o">=</span> <span class="n">app</span><span class="o">.</span><span class="n">inputbox</span><span class="p">(</span><span class="n">message</span><span class="p">,</span> <span class="n">default</span><span class="p">,</span> <span class="n">title</span><span class="p">,</span> <span class="n">echochar</span><span class="p">)</span>
<span class="n">app</span><span class="o">.</span><span class="n">msgbox</span><span class="p">(</span><span class="n">result</span><span class="p">)</span>
</pre></div>
</div>
</div>
</div>
</div>

View File

@ -1 +1 @@
Search.setIndex({docnames:["index","main/00_tools","main/01_tools","main/config","main/easymacro","main/intro"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,sphinx:56},filenames:["index.rst","main/00_tools.rst","main/01_tools.rst","main/config.rst","main/easymacro.rst","main/intro.rst"],objects:{},objnames:{},objtypes:{},terms:{"2021":5,"500":[1,4],"abstract":[1,4],"extensi\u00f3n":3,"final":5,"function":[1,4,5],"import":[1,2,4],"new":[3,5],"opci\u00f3n":3,"public":3,"return":[1,4],"true":3,And:[1,4],FOR:3,For:3,Ons:3,The:3,Used:3,With:5,absolut:3,activ:[1,4],add:[1,3,4,5],addin:[3,5],addonmenu:3,all:3,along:3,alt:3,alwai:[1,2,4],ani:[1,3,4],api:[1,4],app:[1,2,4],applic:[2,3,4],apt:5,archlinux:5,argument:3,automat:[1,3,4],automaticali:[],base:3,basic:5,befor:[1,3,4],better:[1,4],between:[1,4],bin:3,blank:3,bmp:3,bool:3,box:[],calc:[3,5],can:[1,3,4,5],catch_except:[1,4],clone:5,code:[1,3,4],com:[],complex:[1,4],compon:[3,5],compress:5,con:[1,4],conf:3,configur:0,content:0,context:3,copi:[1,3,4,5],correctli:3,cours:5,creat:[3,5],ctrl:3,cuat:5,current:[2,3,4],data:[1,4],date:[1,4],debug:[],def:[1,4],descript:3,desktop:[2,4],detail:3,dev:5,develop:[1,3,4,5],dictionari:3,difficult:[1,4],directli:[1,4],directori:5,displai:3,display_nam:3,displaynam:3,distribut:3,domain:5,don:5,done:5,download:5,draw:3,each:3,easili:[1,4],easymacro:[0,1,2],edit:3,either:3,elmau:[3,5],error:[],even:3,exactli:3,exampl:3,extens:[0,1,4],extensionnam:3,file:5,file_test:3,first:0,fit:3,folder:3,forget:5,format:3,foundat:3,free:3,fresh:5,from:5,gener:[3,5],git:5,gitlab:[],gnu:[2,3,4],gran:3,great:3,happi:[1,4],have:[1,3,4],home:[1,3,4],hope:3,http:[3,5],i18n:3,idl:3,idlc:3,imag:3,impli:3,impress:3,includ:3,index:0,info:[3,5],info_debug:[],inform:[1,4],instal:[0,1,3,4],integ:3,intern:3,introduct:0,invers:3,is_win:[2,4],issu:[1,4],kei:3,keyboard:3,label:3,lang:[2,4],languag:[2,3,4],later:3,layer:[1,4],lib:3,librari:[0,1,2],libreoffic:[1,3,4,5],libreofric:[],license_:3,license_en:3,like:3,link:3,linux:[2,4],local:5,log:[],logo:3,look:3,macro:[1,3,4,5],make:5,manag:3,mau:[1,3,4],mauriciobaeza:[],menu_main:3,merchant:3,messag:[],modifi:3,modul:0,more:[1,3,4],move:[3,5],msg:[1,4],msgbox:[1,2,4],multi:3,myfirstextens:5,myfirstextension_v0:5,mygreatextens:3,name:[1,2,4],name_16:3,name_26:3,need:[1,4],net:[3,5],nombr:3,normal:3,now:5,obj:[1,4],object:[1,4],ods:3,officemenubar:3,one:[1,3,4],onli:[2,3,4],open:[1,3,4],oper:[2,4],option1:3,option:3,org:3,overview:0,oxt:5,pacman:5,page:[0,3],paramet:0,part:3,particular:3,pass:3,path_pygettext:3,planet:[1,4],pleas:[1,3,4],png:3,possibl:3,pot:[3,5],probabl:[1,4],problem:[1,4],process:[1,4],product:[1,4],project:[1,3,4,5],properti:3,provid:5,prueba:3,publish:3,purpos:3,python3:3,python:[1,4,5],pyuno:[1,4],rapid:5,rdb:3,receiv:3,recomend:[],recommend:[3,5],redistribut:3,regmerg:3,rel:3,rememb:[2,4],remerg:3,repositori:5,requir:0,same:3,save:[1,4],save_log:[1,4],script:5,sdk:[3,5],search:0,see:3,semant:3,set:3,share:3,shell:[1,4],shift:3,shortcut:3,should:3,show:[1,3,4],soffic:3,softwar:3,sometim:[1,4],sourc:5,space:3,start:[1,3,4,5],string:3,successfulli:5,sucesfulli:[],sudo:5,support:5,system:[2,4],t_shift_mod1_mod2:3,teresa:[1,4],term:3,test:[1,4,5],testext:[],text:3,thi:[1,3,4,5],three:[1,4],ticket:[1,4],time:[1,4],titl:3,too:3,tool:[0,3],toolbar:3,tupl:3,two:3,txt:[1,4],type_extens:3,ubuntu:5,under:3,uniqu:3,uno:[1,4],unopkg:[3,5],urd:3,url:3,use:3,use_local:3,used:[1,3,4,5],useful:3,user:[2,4,5],usr:3,valor:3,valu:3,variant:[2,4],verifi:[1,4],version:[2,4],vim:3,want:3,warranti:3,what:3,when:3,where:3,window:[2,4],without:3,wizard:3,writer:3,www:3,you:[1,3,4,5],your:[1,3,4],yournam:3,zaz:[3,5]},titles:["Welcome to ZAZ\u2019s documentation!","1) Tools","1.2) Tools","Configuration","Library easymacro.py","Introduction"],titleterms:{"catch":[1,4],"default":3,"function":3,"new":[],For:[1,4],author:3,box:[1,4],calc:[],call:[1,4],configur:3,creat:[],current:[],debug:[1,4],document:0,domain:3,easymacro:4,error:[1,4],except:[1,4],extens:[3,5],file:[1,3,4],first:5,from:[2,4],icon:3,indic:0,info:[1,2,4],info_debug:[1,4],inform:3,instal:5,introduct:5,librari:4,licens:3,local:3,log:[1,4],main:3,menu:3,messag:[1,4],mri:[1,4],name:3,overview:5,paramet:3,parent:3,path:3,program:3,pygettext:3,requir:5,tabl:0,test:3,tool:[1,2,4],type:3,version:3,welcom:0,zaz:0}})
Search.setIndex({docnames:["index","main/00_tools","main/01_tools","main/config","main/easymacro","main/intro"],envversion:{"sphinx.domains.c":2,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":3,"sphinx.domains.index":1,"sphinx.domains.javascript":2,"sphinx.domains.math":2,"sphinx.domains.python":2,"sphinx.domains.rst":2,"sphinx.domains.std":1,sphinx:56},filenames:["index.rst","main/00_tools.rst","main/01_tools.rst","main/config.rst","main/easymacro.rst","main/intro.rst"],objects:{},objnames:{},objtypes:{},terms:{"2021":5,"500":[1,4],"abstract":[1,4],"default":[2,4],"extensi\u00f3n":3,"final":5,"function":[1,4,5],"import":[1,2,4],"new":[3,5],"opci\u00f3n":3,"public":3,"return":[1,4],"true":3,And:[1,4],FOR:3,For:3,Ons:3,The:3,Used:3,With:5,absolut:3,action:[2,4],activ:[1,4],add:[1,3,4,5],addin:[3,5],addonmenu:3,all:3,along:3,alt:3,alwai:[1,2,4],ani:[1,3,4],api:[1,4],app:[1,2,4],applic:[2,3,4],apt:5,archlinux:5,argument:3,automat:[1,3,4],automaticali:[],base:3,basic:5,befor:[1,3,4],better:[1,4],between:[1,4],bin:3,blank:3,bmp:3,bool:3,box:[],calc:[3,5],can:[1,3,4,5],catch_except:[1,4],caution:[2,4],clone:5,code:[1,3,4],com:[],complex:[1,4],compon:[3,5],compress:5,con:[1,4],conf:3,configur:0,contact:[2,4],content:0,context:3,copi:[1,3,4,5],correctli:3,cours:5,creat:[3,5],ctrl:3,cuat:5,current:[2,3,4],danger:[2,4],data:[1,2,4],date:[1,4],debug:[],def:[1,4],descript:3,desktop:[2,4],detail:3,dev:5,develop:[1,3,4,5],dictionari:3,difficult:[1,4],directli:[1,4],directori:5,displai:3,display_nam:3,displaynam:3,distribut:3,domain:5,don:5,done:5,download:5,draw:3,each:3,easi:[2,4],easili:[1,4],easymacro:[0,1,2],echochar:[2,4],edit:3,either:3,elmau:[3,5],error:[],errorbox:[2,4],even:3,exactli:3,exampl:3,extens:[0,1,4],extensionnam:3,file:5,file_test:3,first:0,fit:3,folder:3,forget:5,format:3,foundat:3,free:3,fresh:5,from:5,gener:[3,5],git:5,gitlab:[],gnu:[2,3,4],gran:3,great:3,happi:[1,4],have:[1,3,4],home:[1,3,4],hope:3,http:[3,5],i18n:3,idl:3,idlc:3,imag:3,impli:3,impress:3,includ:3,index:0,info:[3,5],info_debug:[],inform:[1,4],instal:[0,1,3,4],integ:3,intern:3,introduct:0,invers:3,is_win:[2,4],issu:[1,4],kei:3,keyboard:3,label:3,lang:[2,4],languag:[2,3,4],later:3,layer:[1,4],lib:3,librari:[0,1,2],libreoffic:[1,3,4,5],libreofric:[],license_:3,license_en:3,like:3,link:3,linux:[2,4],local:5,log:[],logo:3,look:3,macro:[1,2,3,4,5],make:5,manag:3,mau:[1,3,4],mauriciobaeza:[],menu_main:3,merchant:3,messag:[],modifi:3,modul:0,more:[1,3,4],move:[3,5],msg:[1,4],msgbox:[1,2,4],multi:3,myfirstextens:5,myfirstextension_v0:5,mygreatextens:3,name:[1,2,4],name_16:3,name_26:3,need:[1,4],net:[3,5],nombr:3,normal:[2,3,4],now:5,obj:[1,4],object:[1,4],ods:3,officemenubar:3,one:[1,3,4],onli:[2,3,4],open:[1,3,4],oper:[2,4],option1:3,option:3,org:3,overview:0,oxt:5,pacman:5,page:[0,3],paramet:0,part:3,particular:3,pass:3,password:[2,4],path_pygettext:3,planet:[1,4],pleas:[1,3,4],png:3,possibl:3,pot:[3,5],privat:[2,4],probabl:[1,4],problem:[1,4],process:[1,4],product:[1,4],project:[1,3,4,5],properti:3,provid:5,prueba:3,publish:3,purpos:3,python3:3,python:[1,2,4,5],pyuno:[1,4],rapid:5,rdb:3,receiv:3,recomend:[],recommend:[3,5],redistribut:3,regmerg:3,rel:3,rememb:[2,4],remerg:3,repositori:5,requir:0,result:[2,4],same:3,save:[1,4],save_log:[1,4],script:5,sdk:[3,5],search:0,see:3,semant:3,set:3,share:3,shell:[1,4],shift:3,shortcut:3,should:3,show:[1,3],soffic:3,softwar:3,sometim:[1,4],sourc:5,space:3,start:[1,3,4,5],string:3,successfulli:5,sucesfulli:[],sudo:5,support:[2,4,5],system:[2,4],t_shift_mod1_mod2:3,technic:[2,4],teresa:[1,4],term:3,test:[1,4,5],testext:[],text:3,thi:[1,2,3,4,5],three:[1,4],ticket:[1,4],time:[1,4],titl:[2,3,4],too:3,tool:[0,3],toolbar:3,tupl:3,two:3,txt:[1,4],type:[2,4],type_extens:3,ubuntu:5,under:3,uniqu:3,uno:[1,4],unopkg:[3,5],urd:3,url:3,use:3,use_local:3,used:[1,3,4,5],useful:3,user:[2,4,5],usr:3,valor:3,valu:3,variant:[2,4],verifi:[1,4],version:[2,4],vim:3,want:3,warranti:3,what:3,when:3,where:3,window:[2,4],without:3,wizard:3,writer:3,www:3,you:[1,3,4,5],your:[1,2,3,4],yournam:3,zaz:[3,5]},titles:["Welcome to ZAZ\u2019s documentation!","1) Tools","1.2) Tools","Configuration","Library easymacro.py","Introduction"],titleterms:{"catch":[1,4],"default":3,"function":3,"new":[],For:[1,4],author:3,box:[1,2,4],calc:[],call:[1,4],configur:3,creat:[],current:[],debug:[1,4],document:0,domain:3,easymacro:4,error:[1,2,4],except:[1,4],extens:[3,5],file:[1,3,4],first:5,from:[2,4],icon:3,indic:0,info:[1,2,4],info_debug:[1,4],inform:3,inputbox:[2,4],instal:5,introduct:5,librari:4,licens:3,local:3,log:[1,4],main:3,make:[2,4],menu:3,messag:[1,2,4],mri:[1,4],name:3,overview:5,paramet:3,parent:3,path:3,program:3,pygettext:3,question:[2,4],requir:5,show:[2,4],tabl:0,test:3,tool:[1,2,4],type:3,version:3,warn:[2,4],welcom:0,zaz:0}})

View File

@ -67,7 +67,70 @@ Remember, always import library.
app.msgbox(app.IS_WIN)
**Message box**
^^^^^^^^^^^^^^^
.. code-block:: python
app.msgbox(app.IS_WIN, 'My Macro')
**Show warning**
^^^^^^^^^^^^^^^^
.. code-block:: python
message = 'Caution, this action is dangerous'
title = 'My App'
app.warning(message, title)
**Show error box**
^^^^^^^^^^^^^^^^^^
.. code-block:: python
message = 'ERROR: Contact technical support'
title = 'My App'
app.errorbox(message, title)
**Make question**
^^^^^^^^^^^^^^^^^
.. code-block:: python
message = 'Is easy Python?'
title = 'My App'
result = app.question(message, title)
app.msgbox(result)
**InputBox**
^^^^^^^^^^^^^^^^^
* Normal data
.. code-block:: python
message = 'Type your name'
default = ''
title = 'My App'
result = app.inputbox(message, default, title)
app.msgbox(result)
* Private data
.. code-block:: python
message = 'Type your password'
default = ''
title = 'My App'
echochar = "*"
result = app.inputbox(message, default, title, echochar)
app.msgbox(result)