~toolpart/+junk/pythoncard

« back to all changes in this revision

Viewing changes to docs/html/dialogs/multiplechoicedialog.html

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2006-11-12 17:52:13 UTC
  • mfrom: (2.1.5 feisty)
  • Revision ID: james.westby@ubuntu.com-20061112175213-tv8bnl6rtpa2qw1o
Tags: 0.8.1-8.1
* Non-maintainer upload.
* Fix path to findfiles, codeEditor and resourceEditor:
   + patch from Ernest ter Kuile <ernestjw@xs4all.nl>. (Closes: #397018)

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
            </td>
38
38
          </tr>
39
39
          <tr>
 
40
            <td valign="top">message<br>
 
41
            </td>
 
42
            <td valign="top">string to be displayed inside the dialog as
 
43
a prompt for the user<br>
 
44
            </td>
 
45
          </tr>
 
46
          <tr>
40
47
            <td valign="top">title<br>
41
48
            </td>
42
49
            <td valign="top">string to be displayed in the title bar of the
44
51
            </td>
45
52
          </tr>
46
53
          <tr>
47
 
            <td valign="top">message<br>
48
 
            </td>
49
 
            <td valign="top">string to be displayed inside the dialog as
50
 
a prompt for the user<br>
51
 
            </td>
52
 
          </tr>
53
 
          <tr>
54
 
            <td valign="top">choices<br>
 
54
            <td valign="top">lst<br>
55
55
          </td>
56
56
          <td valign="top">list of strings containing the choices to be presented
57
57
to the user<br>
65
65
      <br>
66
66
      </b>Above dialog was created with this line of code:<br>
67
67
      <br>
68
 
     <code>result = dialog.multipleChoiceDialog(self, "title", "message",
 
68
     <code>result = dialog.multipleChoiceDialog(self, "message", "title", 
69
69
['one', 'two', 'three'])</code><br>
70
70
            
71
71
<h2>Interacting With the Dialog</h2>
85
85
          <tr>
86
86
            <td valign="top">accepted<br>
87
87
            </td>
88
 
            <td valign="top">1 = user clicked OK<br>
89
 
      0 = user clicked Cancel<br>
 
88
            <td valign="top">True = user clicked OK<br>
 
89
      False = user clicked Cancel<br>
90
90
            </td>
91
91
          </tr>
92
92
          <tr>
93
93
            <td valign="top">selection<br>
94
94
            </td>
95
 
            <td valign="top">list of strings containing the&nbsp; optoins
 
95
            <td valign="top">list of strings containing the&nbsp; options
96
96
chosen by the user. <br>
97
97
            </td>
98
98
          </tr>
105
105
   </b>  The sample dialog shown at the top of this page returns the following 
106
106
 results:<b><br>
107
107
     <br>
108
 
     </b>accepted: 1<br>
109
 
Selection: ('one', 'three')<br>
 
108
     </b>accepted: True<br>
 
109
selection: ('one', 'three')<br>
110
110
   <br>
111
111
      <br>
112
112
       <br>