File: dialog.rst

package info (click to toggle)
neuron 8.2.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,768 kB
  • sloc: cpp: 149,571; python: 58,449; ansic: 50,329; sh: 3,510; xml: 213; pascal: 51; makefile: 35; sed: 5
file content (39 lines) | stat: -rw-r--r-- 823 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Dialog Boxes
------------

.. hoc:function:: boolean_dialog

    Syntax:
        ``boolean_dialog("label", ["accept", "cancel"])``

    Description:
        Pops up a dialog window at the center of the screen and blocks
        everything until dealt with.
        Returns 1 or 0.

.. seealso::
    :hoc:class:`SymChooser`, :hoc:meth:`VBox.dialog`

----

.. hoc:function:: continue_dialog

    Syntax:
        ``continue_dialog("label")``

    Description:
        Provides info to the user.
        Like :hoc:func:`boolean_dialog`, blocks everything until dealt with.


----

.. hoc:function:: string_dialog

    Syntax:
        ``string_dialog("label", strdef)``

    Description:
        Returns 0 if canceled and *strdef* remains unchanged.
        Like :hoc:func:`boolean_dialog`, blocks everything until dealt with.