Movatterモバイル変換


[0]ホーム

URL:


Previous PageUp One LevelNext PagePython Library ReferenceContentsModule IndexIndex
Previous:20.4.2 Form ObjectsUp:20.4 flNext:20.5 FL

 
20.4.3 FORMS Objects

Besides methods specific to particular kinds of FORMS objects, allFORMS objects also have the following methods:

set_call_back(function, argument)
Set the object's callback function and argument. When the objectneeds interaction, the callback function will be called with twoarguments: the object, and the callback argument. (FORMS objectswithout a callback function are returned byfl.do_forms()orfl.check_forms() when they need interaction.) Call thismethod without arguments to remove the callback function.

delete_object()
Delete the object.

show_object()
Show the object.

hide_object()
Hide the object.

redraw_object()
Redraw the object.

freeze_object()
Freeze the object.

unfreeze_object()
Unfreeze the object.

FORMS objects have these data attributes; see the FORMS documentation:

Name C Type Meaning 
objclassint (read-only)object class
typeint (read-only)object type
boxtypeintbox type
xfloatx origin
yfloaty origin
wfloatwidth
hfloatheight
col1intprimary color
col2intsecondary color
alignintalignment
lcolintlabel color
lsizefloatlabel font size
labelstringlabel string
lstyleintlabel style
pushedint (read-only)(see FORMS docs)
focusint (read-only)(see FORMS docs)
belowmouseint (read-only)(see FORMS docs)
frozenint (read-only)(see FORMS docs)
activeint (read-only)(see FORMS docs)
inputint (read-only)(see FORMS docs)
visibleint (read-only)(see FORMS docs)
radioint (read-only)(see FORMS docs)
automaticint (read-only)(see FORMS docs)


Previous PageUp One LevelNext PagePython Library ReferenceContentsModule IndexIndex
Previous:20.4.2 Form ObjectsUp:20.4 flNext:20.5 FL
Release 2.2.3, documentation updated on 30 May 2003.
SeeAbout this document... for information on suggesting changes.
[8]ページ先頭

©2009-2026 Movatter.jp