Movatterモバイル変換


[0]ホーム

URL:


Up one LevelPython Library ReferenceContentsModule IndexIndex

34.4.1 Functions Defined in Modulefl

Modulefl defines the following functions. For moreinformation about what they do, see the description of the equivalentC function in the FORMS documentation:

make_form(type, width, height)
Create a form with given type, width and height. This returns aform object, whose methods are described below.

do_forms()
The standard FORMS main loop. Returns a Python object representingthe FORMS object needing interaction, or the special valueFL.EVENT.

check_forms()
Check for FORMS events. Returns whatdo_forms() abovereturns, orNone if there is no event that immediately needsinteraction.

set_event_call_back(function)
Set the event callback function.

set_graphics_mode(rgbmode, doublebuffering)
Set the graphics modes.

get_rgbmode()
Return the current rgb mode. This is the value of the C globalvariablefl_rgbmode.

show_message(str1, str2, str3)
Show a dialog box with a three-line message and an OK button.

show_question(str1, str2, str3)
Show a dialog box with a three-line message and YES and NO buttons.It returns1 if the user pressed YES,0 if NO.

show_choice(str1, str2, str3, but1[, but2[, but3]])
Show a dialog box with a three-line message and up to three buttons.It returns the number of the button clicked by the user(1,2 or3).

show_input(prompt, default)
Show a dialog box with a one-line prompt message and text field inwhich the user can enter a string. The second argument is the defaultinput string. It returns the string value as edited by the user.

show_file_selector(message, directory, pattern, default)
Show a dialog box in which the user can select a file. It returnsthe absolute filename selected by the user, orNone if the userpresses Cancel.

get_directory()
get_pattern()
get_filename()
These functions return the directory, pattern and filename (the tailpart only) selected by the user in the lastshow_file_selector() call.

qdevice(dev)
unqdevice(dev)
isqueued(dev)
qtest()
qread()
qreset()
qenter(dev, val)
get_mouse()
tie(button, valuator1, valuator2)
These functions are the FORMS interfaces to the corresponding GLfunctions. Use these if you want to handle some GL events yourselfwhen usingfl.do_events(). When a GL event is detected thatFORMS cannot handle,fl.do_forms() returns the special valueFL.EVENT and you should callfl.qread() to readthe event from the queue. Don't use the equivalent GL functions!

color()
mapcolor()
getmcolor()
See the description in the FORMS documentation offl_color(),fl_mapcolor() andfl_getmcolor().


Up one LevelPython Library ReferenceContentsModule IndexIndex

Release 2.5.2, documentation updated on 21st February, 2008.
SeeAbout this document... for information on suggesting changes.
[8]ページ先頭

©2009-2025 Movatter.jp