mirror of
https://github.com/ksherlock/prez.git
synced 2024-11-04 06:05:17 +00:00
38 lines
774 B
Plaintext
38 lines
774 B
Plaintext
#
|
|
# text can be a python string or a bytes object.
|
|
# strings are assumed to be utf-8 encoded and will be converted to macroman
|
|
# bytes are left as-is
|
|
#
|
|
# n.b. - in Rez, \r and \n are reversed.
|
|
# In prez, they have their standard (python) meaning.
|
|
#
|
|
|
|
rText("rText")
|
|
rTextBlock(b"rTextBlock") # bytes
|
|
rTextForLETextBox2(
|
|
|
|
TBStylePlain,
|
|
"rTextForLETextBox2",
|
|
TBStyleBold, TBCenterJust,
|
|
b"rTextForLETextBox2",
|
|
|
|
)
|
|
rAlertString("rAlertString")
|
|
rErrorString("rErrorString")
|
|
|
|
|
|
from textwrap import dedent
|
|
rComment(dedent("""
|
|
rComment
|
|
|
|
multi-line python string.
|
|
""")) # remove leading space from the mult-line string.
|
|
rPString("rPString")
|
|
rCString("rCString")
|
|
rWString("rWString")
|
|
rC1InputString("rC1InputString")
|
|
|
|
rStringList('rStringList', b"rStringList", r"rStringList")
|
|
|
|
|