prez/prez/rezpy.py

69 lines
1.2 KiB
Python

from base import *
from window import *
from control import *
from menu import *
from version import *
from rect import rect, point, size
from sound import *
from alert import *
rPString("hello")
rCString("goodbye")
# rMenuItem("Hello")
rMenuBar(
rMenu("@",
rMenuItem("About..."),
rMenuItem("Preferences...")
),
rMenu( " File ",
rMenuItem("New", "Nn"),
rMenuItem("Open", "Oo")
),
id=1
)
rTwoRects(rect(x=0,y=0,height=10, width=10), (1,2,3,4))
rRectList(rect(x=0,y=0,height=10, width=10), (1,2,3,4))
rSimpleButton(rect(x=10, y=10, height=13, width=90), "Save",default=True)
rWindParam1(rect(x = 20, y = 20, height=100, width=100), "hello")
rControlList(
rThermometerControl( (5, 5, 10, 55), value = 10, scale=100),
rStatTextControl( (5, 5, 10, 55),
"this is a test…",
centerJust = True,
fSquishText = True
)
)
rCString(
"this is a long string with\r\n"
"extra characters and stuff …"
)
rTextBlock(
"\t\r\a\"\\'",
id = range(10,20)
)
UndoMenuItem()
UndoMenuItem()
rVersion("1.2.3b4", verFrance, "name", "description")
rAlertString(2, "this is an alert string", awButton(awOK, default=True), awButton(awCancel))
rObject.dump_hex()
rObject.dump_rez()