forked from amazingfate/help
Python console examples work better this way
Change-Id: I0c325b7fed727f398c11eea41d7c46a061c3a837 Reviewed-on: https://gerrit.libreoffice.org/77598 Tested-by: Jenkins Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
This commit is contained in:
committed by
Olivier Hallot
parent
f8fc25c072
commit
1e20b35158
@ -32,7 +32,7 @@
|
||||
<paragraph role="code" id="N0441" localize="false">Print(txt)</paragraph>
|
||||
<h2 id="N0442">Examples:</h2>
|
||||
<paragraph role="paragraph" localize="false" id="N0443"><literal>>>> import screen_io as ui</literal></paragraph>
|
||||
<paragraph role="paragraph" localize="false" id="N0445"><literal>>>> reply = ui.InputBox('Please enter a phrase', title='Dear user', default="here..")</literal></paragraph>
|
||||
<paragraph role="paragraph" localize="false" id="N0445"><literal>>>> reply = ui.InputBox('Please enter a phrase', title='Dear user', defaultValue="here..")</literal></paragraph>
|
||||
<paragraph role="paragraph" localize="false" id="N0446"><literal>>>> rc = ui.MsgBox(reply, title="Confirmation of phrase")</literal></paragraph>
|
||||
<paragraph role="paragraph" localize="false" id="N0447"><literal>>>> age = ui.InputBox('How old are you?', title="Hi")</literal></paragraph>
|
||||
<paragraph role="paragraph" localize="false" id="N0448"><literal>>>> ui.Print(age)</literal></paragraph>
|
||||
|
||||
Reference in New Issue
Block a user