Commit fbc15b68 by Christophe Geuzaine

pp

parent 6c1f01f9
......@@ -472,7 +472,7 @@ fltk = gmsh.add_module('fltk','Fltk graphical user interface functions')
doc = '''Creates the Fltk graphical user interface.'''
fltk.add('initialize',doc,None)
doc = '''Waits at most `time' seconds for user interface events and returns. If `time' < 0, wait indefinitely.'''
doc = '''Waits at most `time' seconds for user interface events and returns. If `time' < 0, waits indefinitely. First automatically creates the user interface if it has not yet been initialized.'''
fltk.add('wait',doc,None,idouble('time', '-1.'))
doc = '''Runs the event loop of the Fltk graphical user interface, i.e. repeatedly calls `wait()`. First automatically creates the user interface if it has not yet been initialized.'''
......
......@@ -1195,7 +1195,8 @@ namespace gmsh { // Top-level functions
GMSH_API void initialize();
// Waits at most `time' seconds for user interface events and returns. If
// `time' < 0, wait indefinitely.
// `time' < 0, waits indefinitely. First automatically creates the user
// interface if it has not yet been initialized.
GMSH_API void wait(const double time = -1.);
// Runs the event loop of the Fltk graphical user interface, i.e. repeatedly
......
......@@ -3129,7 +3129,8 @@ class fltk:
def wait(time=-1.):
"""
Waits at most `time' seconds for user interface events and returns. If
`time' < 0, wait indefinitely.
`time' < 0, waits indefinitely. First automatically creates the user
interface if it has not yet been initialized.
"""
ierr = c_int()
lib.gmshFltkWait(
......
......@@ -1264,7 +1264,8 @@ GMSH_API void gmshGraphicsDraw(int * ierr);
GMSH_API void gmshFltkInitialize(int * ierr);
/* Waits at most `time' seconds for user interface events and returns. If
* `time' < 0, wait indefinitely. */
* `time' < 0, waits indefinitely. First automatically creates the user
* interface if it has not yet been initialized. */
GMSH_API void gmshFltkWait(const double time,
int * ierr);
......
......@@ -28,7 +28,7 @@ int main(int argc, char **argv)
gmsh::model::occ::synchronize();
// ...end of copy
// this would be equivalent to gmsh.fltk.run():
// this would be equivalent to gmsh::fltk::run():
//
// gmsh::graphics::draw();
// while(1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment