Documentation/Source/eric5.E5Gui.E5Action.html

changeset 58
37f0444c3479
parent 55
b5c84934de9c
child 267
f4cd9c07da76
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.E5Gui.E5Action</h1> 23 <h1>eric5.E5Gui.E5Action</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97;&#110; &#65;&#99;&#116;&#105;&#111;&#110; &#99;&#108;&#97;&#115;&#115; &#101;x&#116;&#101;&#110;&#100;&#105;&#110;&#103; &#81;&#65;&#99;&#116;&#105;&#111;&#110;. 25 Module implementing an Action class extending QAction.
26 </p><p> 26 </p><p>
27 &#84;&#104;&#105;&#115; &#101;x&#116;&#101;&#110;&#115;&#105;&#111;&#110; &#105;&#115; &#110;&#101;&#99;&#101;&#115;&#115;&#97;&#114;y &#105;&#110; &#111;&#114;&#100;&#101;&#114; &#116;&#111; &#115;&#117;&#112;&#112;&#111;&#114;&#116; &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#101; &#107;&#101;y&#98;&#111;&#97;&#114;&#100; 27 This extension is necessary in order to support alternate keyboard
28 &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;&#115;. 28 shortcuts.
29 </p> 29 </p>
30 <h3>Global Attributes</h3> 30 <h3>Global Attributes</h3>
31 <table> 31 <table>
32 <tr><td>None</td></tr> 32 <tr><td>None</td></tr>
33 </table> 33 </table>
34 <h3>Classes</h3> 34 <h3>Classes</h3>
35 <table> 35 <table>
36 <tr> 36 <tr>
37 <td><a href="#ArgumentsError">ArgumentsError</a></td> 37 <td><a href="#ArgumentsError">ArgumentsError</a></td>
38 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97;&#110; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;, w&#104;&#105;&#99;&#104; &#105;&#115; &#114;&#97;&#105;&#115;&#101;&#100;, &#105;&#102; &#116;&#104;&#101; w&#114;&#111;&#110;&#103; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#97;&#114;&#103;&#117;&#109;&#101;&#110;&#116;&#115; &#97;&#114;&#101; &#103;&#105;v&#101;&#110;.</td> 38 <td>Class implementing an exception, which is raised, if the wrong number of arguments are given.</td>
39 </tr><tr> 39 </tr><tr>
40 <td><a href="#E5Action">E5Action</a></td> 40 <td><a href="#E5Action">E5Action</a></td>
41 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97;&#110; &#65;&#99;&#116;&#105;&#111;&#110; &#99;&#108;&#97;&#115;&#115; &#101;x&#116;&#101;&#110;&#100;&#105;&#110;&#103; &#81;&#65;&#99;&#116;&#105;&#111;&#110;.</td> 41 <td>Class implementing an Action class extending QAction.</td>
42 </tr> 42 </tr>
43 </table> 43 </table>
44 <h3>Functions</h3> 44 <h3>Functions</h3>
45 <table> 45 <table>
46 <tr> 46 <tr>
47 <td><a href="#addActions">addActions</a></td> 47 <td><a href="#addActions">addActions</a></td>
48 <td>&#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#97;&#100;&#100; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#97;&#99;&#116;&#105;&#111;&#110;&#115; &#116;&#111; &#97; w&#105;&#100;&#103;&#101;&#116;.</td> 48 <td>Module function to add a list of actions to a widget.</td>
49 </tr><tr> 49 </tr><tr>
50 <td><a href="#createActionGroup">createActionGroup</a></td> 50 <td><a href="#createActionGroup">createActionGroup</a></td>
51 <td>&#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110; &#103;&#114;&#111;&#117;&#112;.</td> 51 <td>Module function to create an action group.</td>
52 </tr> 52 </tr>
53 </table> 53 </table>
54 <hr /><hr /> 54 <hr /><hr />
55 <a NAME="ArgumentsError" ID="ArgumentsError"></a> 55 <a NAME="ArgumentsError" ID="ArgumentsError"></a>
56 <h2>ArgumentsError</h2> 56 <h2>ArgumentsError</h2>
57 <p> 57 <p>
58 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97;&#110; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;, w&#104;&#105;&#99;&#104; &#105;&#115; &#114;&#97;&#105;&#115;&#101;&#100;, &#105;&#102; &#116;&#104;&#101; w&#114;&#111;&#110;&#103; &#110;&#117;&#109;&#98;&#101;&#114; &#111;&#102; &#97;&#114;&#103;&#117;&#109;&#101;&#110;&#116;&#115; 58 Class implementing an exception, which is raised, if the wrong number of arguments
59 &#97;&#114;&#101; &#103;&#105;v&#101;&#110;. 59 are given.
60 </p> 60 </p>
61 <h3>Derived from</h3> 61 <h3>Derived from</h3>
62 RuntimeError 62 RuntimeError
63 <h3>Class Attributes</h3> 63 <h3>Class Attributes</h3>
64 <table> 64 <table>
66 </table> 66 </table>
67 <h3>Methods</h3> 67 <h3>Methods</h3>
68 <table> 68 <table>
69 <tr> 69 <tr>
70 <td><a href="#ArgumentsError.__init__">ArgumentsError</a></td> 70 <td><a href="#ArgumentsError.__init__">ArgumentsError</a></td>
71 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 71 <td>Constructor</td>
72 </tr><tr> 72 </tr><tr>
73 <td><a href="#ArgumentsError.__repr__">__repr__</a></td> 73 <td><a href="#ArgumentsError.__repr__">__repr__</a></td>
74 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#114;&#101;&#116;&#117;&#114;&#110;&#105;&#110;&#103; &#97; &#114;&#101;&#112;&#114;&#101;&#115;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;.</td> 74 <td>Private method returning a representation of the exception.</td>
75 </tr><tr> 75 </tr><tr>
76 <td><a href="#ArgumentsError.__str__">__str__</a></td> 76 <td><a href="#ArgumentsError.__str__">__str__</a></td>
77 <td>&#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#114;&#101;&#116;&#117;&#114;&#110;&#105;&#110;&#103; &#97; &#115;&#116;&#114;&#105;&#110;&#103; &#114;&#101;&#112;&#114;&#101;&#115;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;.</td> 77 <td>Private method returning a string representation of the exception.</td>
78 </tr> 78 </tr>
79 </table> 79 </table>
80 <a NAME="ArgumentsError.__init__" ID="ArgumentsError.__init__"></a> 80 <a NAME="ArgumentsError.__init__" ID="ArgumentsError.__init__"></a>
81 <h4>ArgumentsError (Constructor)</h4> 81 <h4>ArgumentsError (Constructor)</h4>
82 <b>ArgumentsError</b>(<i>error</i>) 82 <b>ArgumentsError</b>(<i>error</i>)
83 <p> 83 <p>
84 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 84 Constructor
85 </p><a NAME="ArgumentsError.__repr__" ID="ArgumentsError.__repr__"></a> 85 </p><a NAME="ArgumentsError.__repr__" ID="ArgumentsError.__repr__"></a>
86 <h4>ArgumentsError.__repr__</h4> 86 <h4>ArgumentsError.__repr__</h4>
87 <b>__repr__</b>(<i></i>) 87 <b>__repr__</b>(<i></i>)
88 <p> 88 <p>
89 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#114;&#101;&#116;&#117;&#114;&#110;&#105;&#110;&#103; &#97; &#114;&#101;&#112;&#114;&#101;&#115;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;. 89 Private method returning a representation of the exception.
90 </p><dl> 90 </p><dl>
91 <dt>Returns:</dt> 91 <dt>Returns:</dt>
92 <dd> 92 <dd>
93 &#115;&#116;&#114;&#105;&#110;&#103; &#114;&#101;&#112;&#114;&#101;&#115;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#101;&#114;&#114;&#111;&#114; &#109;&#101;&#115;&#115;&#97;&#103;&#101; 93 string representing the error message
94 </dd> 94 </dd>
95 </dl><a NAME="ArgumentsError.__str__" ID="ArgumentsError.__str__"></a> 95 </dl><a NAME="ArgumentsError.__str__" ID="ArgumentsError.__str__"></a>
96 <h4>ArgumentsError.__str__</h4> 96 <h4>ArgumentsError.__str__</h4>
97 <b>__str__</b>(<i></i>) 97 <b>__str__</b>(<i></i>)
98 <p> 98 <p>
99 &#80;&#114;&#105;v&#97;&#116;&#101; &#109;&#101;&#116;&#104;&#111;&#100; &#114;&#101;&#116;&#117;&#114;&#110;&#105;&#110;&#103; &#97; &#115;&#116;&#114;&#105;&#110;&#103; &#114;&#101;&#112;&#114;&#101;&#115;&#101;&#110;&#116;&#97;&#116;&#105;&#111;&#110; &#111;&#102; &#116;&#104;&#101; &#101;x&#99;&#101;&#112;&#116;&#105;&#111;&#110;. 99 Private method returning a string representation of the exception.
100 </p><dl> 100 </p><dl>
101 <dt>Returns:</dt> 101 <dt>Returns:</dt>
102 <dd> 102 <dd>
103 &#115;&#116;&#114;&#105;&#110;&#103; &#114;&#101;&#112;&#114;&#101;&#115;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#101;&#114;&#114;&#111;&#114; &#109;&#101;&#115;&#115;&#97;&#103;&#101; 103 string representing the error message
104 </dd> 104 </dd>
105 </dl> 105 </dl>
106 <div align="right"><a href="#top">Up</a></div> 106 <div align="right"><a href="#top">Up</a></div>
107 <hr /><hr /> 107 <hr /><hr />
108 <a NAME="E5Action" ID="E5Action"></a> 108 <a NAME="E5Action" ID="E5Action"></a>
109 <h2>E5Action</h2> 109 <h2>E5Action</h2>
110 <p> 110 <p>
111 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#97;&#110; &#65;&#99;&#116;&#105;&#111;&#110; &#99;&#108;&#97;&#115;&#115; &#101;x&#116;&#101;&#110;&#100;&#105;&#110;&#103; &#81;&#65;&#99;&#116;&#105;&#111;&#110;. 111 Class implementing an Action class extending QAction.
112 </p> 112 </p>
113 <h3>Derived from</h3> 113 <h3>Derived from</h3>
114 QAction 114 QAction
115 <h3>Class Attributes</h3> 115 <h3>Class Attributes</h3>
116 <table> 116 <table>
118 </table> 118 </table>
119 <h3>Methods</h3> 119 <h3>Methods</h3>
120 <table> 120 <table>
121 <tr> 121 <tr>
122 <td><a href="#E5Action.__init__">E5Action</a></td> 122 <td><a href="#E5Action.__init__">E5Action</a></td>
123 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 123 <td>Constructor</td>
124 </tr><tr> 124 </tr><tr>
125 <td><a href="#E5Action.alternateShortcut">alternateShortcut</a></td> 125 <td><a href="#E5Action.alternateShortcut">alternateShortcut</a></td>
126 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#107;&#101;y&#98;&#111;&#97;&#114;&#100; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;.</td> 126 <td>Public method to retrieve the alternative keyboard shortcut.</td>
127 </tr><tr> 127 </tr><tr>
128 <td><a href="#E5Action.setAlternateShortcut">setAlternateShortcut</a></td> 128 <td><a href="#E5Action.setAlternateShortcut">setAlternateShortcut</a></td>
129 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#107;&#101;y&#98;&#111;&#97;&#114;&#100; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;.</td> 129 <td>Public slot to set the alternative keyboard shortcut.</td>
130 </tr> 130 </tr>
131 </table> 131 </table>
132 <a NAME="E5Action.__init__" ID="E5Action.__init__"></a> 132 <a NAME="E5Action.__init__" ID="E5Action.__init__"></a>
133 <h4>E5Action (Constructor)</h4> 133 <h4>E5Action (Constructor)</h4>
134 <b>E5Action</b>(<i>*args</i>) 134 <b>E5Action</b>(<i>*args</i>)
135 <p> 135 <p>
136 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 136 Constructor
137 </p><dl> 137 </p><dl>
138 <dt><i>args</i></dt> 138 <dt><i>args</i></dt>
139 <dd> 139 <dd>
140 &#97;&#114;&#103;&#117;&#109;&#101;&#110;&#116; &#108;&#105;&#115;&#116; &#111;&#102; &#116;&#104;&#101; &#99;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;. &#84;&#104;&#105;&#115; &#108;&#105;&#115;&#116; &#105;&#115; &#111;&#110;&#101; &#111;&#102; 140 argument list of the constructor. This list is one of
141 &#60;&#117;&#108;&#62; 141 <ul>
142 &#60;&#108;&#105;&#62;&#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;), &#105;&#99;&#111;&#110; (&#81;&#73;&#99;&#111;&#110;), &#109;&#101;&#110;&#117; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;), 142 <li>text (string), icon (QIcon), menu text (string),
143 &#97;&#99;&#99;&#101;&#108;&#97;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;), &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#97;&#99;&#99;&#101;&#108;&#101;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;), 143 accelarator (QKeySequence), alternative accelerator (QKeySequence),
144 &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;), &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;), &#116;&#111;&#103;&#103;&#108;&#101; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)&#60;/&#108;&#105;&#62; 144 parent (QObject), name (string), toggle (boolean)</li>
145 &#60;&#108;&#105;&#62;&#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;), &#105;&#99;&#111;&#110; (&#81;&#73;&#99;&#111;&#110;), &#109;&#101;&#110;&#117; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;), 145 <li>text (string), icon (QIcon), menu text (string),
146 &#97;&#99;&#99;&#101;&#108;&#97;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;), &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#97;&#99;&#99;&#101;&#108;&#101;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;), 146 accelarator (QKeySequence), alternative accelerator (QKeySequence),
147 &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;), &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;)&#60;/&#108;&#105;&#62; 147 parent (QObject), name (string)</li>
148 &#60;&#108;&#105;&#62;&#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;), &#109;&#101;&#110;&#117; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;), 148 <li>text (string), menu text (string),
149 &#97;&#99;&#99;&#101;&#108;&#97;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;), &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#97;&#99;&#99;&#101;&#108;&#101;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;), 149 accelarator (QKeySequence), alternative accelerator (QKeySequence),
150 &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;), &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;), &#116;&#111;&#103;&#103;&#108;&#101; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;)&#60;/&#108;&#105;&#62; 150 parent (QObject), name (string), toggle (boolean)</li>
151 &#60;&#108;&#105;&#62;&#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;), &#109;&#101;&#110;&#117; &#116;&#101;x&#116; (&#115;&#116;&#114;&#105;&#110;&#103;), 151 <li>text (string), menu text (string),
152 &#97;&#99;&#99;&#101;&#108;&#97;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;), &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#97;&#99;&#99;&#101;&#108;&#101;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;), 152 accelarator (QKeySequence), alternative accelerator (QKeySequence),
153 &#112;&#97;&#114;&#101;&#110;&#116; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;), &#110;&#97;&#109;&#101; (&#115;&#116;&#114;&#105;&#110;&#103;)&#60;/&#108;&#105;&#62; 153 parent (QObject), name (string)</li>
154 &#60;/&#117;&#108;&#62; 154 </ul>
155 </dd> 155 </dd>
156 </dl><a NAME="E5Action.alternateShortcut" ID="E5Action.alternateShortcut"></a> 156 </dl><a NAME="E5Action.alternateShortcut" ID="E5Action.alternateShortcut"></a>
157 <h4>E5Action.alternateShortcut</h4> 157 <h4>E5Action.alternateShortcut</h4>
158 <b>alternateShortcut</b>(<i></i>) 158 <b>alternateShortcut</b>(<i></i>)
159 <p> 159 <p>
160 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#116;&#114;&#105;&#101;v&#101; &#116;&#104;&#101; &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#107;&#101;y&#98;&#111;&#97;&#114;&#100; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;. 160 Public method to retrieve the alternative keyboard shortcut.
161 </p><dl> 161 </p><dl>
162 <dt>Returns:</dt> 162 <dt>Returns:</dt>
163 <dd> 163 <dd>
164 &#116;&#104;&#101; &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#97;&#99;&#99;&#101;&#108;&#101;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;) 164 the alternative accelerator (QKeySequence)
165 </dd> 165 </dd>
166 </dl><a NAME="E5Action.setAlternateShortcut" ID="E5Action.setAlternateShortcut"></a> 166 </dl><a NAME="E5Action.setAlternateShortcut" ID="E5Action.setAlternateShortcut"></a>
167 <h4>E5Action.setAlternateShortcut</h4> 167 <h4>E5Action.setAlternateShortcut</h4>
168 <b>setAlternateShortcut</b>(<i>shortcut</i>) 168 <b>setAlternateShortcut</b>(<i>shortcut</i>)
169 <p> 169 <p>
170 &#80;&#117;&#98;&#108;&#105;&#99; &#115;&#108;&#111;&#116; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#107;&#101;y&#98;&#111;&#97;&#114;&#100; &#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;. 170 Public slot to set the alternative keyboard shortcut.
171 </p><dl> 171 </p><dl>
172 <dt><i>shortcut</i></dt> 172 <dt><i>shortcut</i></dt>
173 <dd> 173 <dd>
174 &#116;&#104;&#101; &#97;&#108;&#116;&#101;&#114;&#110;&#97;&#116;&#105;v&#101; &#97;&#99;&#99;&#101;&#108;&#101;&#114;&#97;&#116;&#111;&#114; (&#81;&#75;&#101;y&#83;&#101;&#113;&#117;&#101;&#110;&#99;&#101;) 174 the alternative accelerator (QKeySequence)
175 </dd> 175 </dd>
176 </dl> 176 </dl>
177 <div align="right"><a href="#top">Up</a></div> 177 <div align="right"><a href="#top">Up</a></div>
178 <hr /><hr /> 178 <hr /><hr />
179 <a NAME="addActions" ID="addActions"></a> 179 <a NAME="addActions" ID="addActions"></a>
180 <h2>addActions</h2> 180 <h2>addActions</h2>
181 <b>addActions</b>(<i>target, actions</i>) 181 <b>addActions</b>(<i>target, actions</i>)
182 <p> 182 <p>
183 &#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#97;&#100;&#100; &#97; &#108;&#105;&#115;&#116; &#111;&#102; &#97;&#99;&#116;&#105;&#111;&#110;&#115; &#116;&#111; &#97; w&#105;&#100;&#103;&#101;&#116;. 183 Module function to add a list of actions to a widget.
184 </p><dl> 184 </p><dl>
185 <dt><i>target</i></dt> 185 <dt><i>target</i></dt>
186 <dd> 186 <dd>
187 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#116;&#97;&#114;&#103;&#101;&#116; w&#105;&#100;&#103;&#101;&#116; (&#81;&#87;&#105;&#100;&#103;&#101;&#116;) 187 reference to the target widget (QWidget)
188 </dd><dt><i>actions</i></dt> 188 </dd><dt><i>actions</i></dt>
189 <dd> 189 <dd>
190 &#108;&#105;&#115;&#116; &#111;&#102; &#97;&#99;&#116;&#105;&#111;&#110;&#115; &#116;&#111; &#98;&#101; &#97;&#100;&#100;&#101;&#100; &#116;&#111; &#116;&#104;&#101; &#116;&#97;&#114;&#103;&#101;&#116;. &#65; 190 list of actions to be added to the target. A
191 &#78;&#111;&#110;&#101; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#101;&#115; &#97; &#115;&#101;&#112;&#97;&#114;&#97;&#116;&#111;&#114; (&#108;&#105;&#115;&#116; &#111;&#102; &#81;&#65;&#99;&#116;&#105;&#111;&#110;&#115;) 191 None indicates a separator (list of QActions)
192 </dd> 192 </dd>
193 </dl> 193 </dl>
194 <div align="right"><a href="#top">Up</a></div> 194 <div align="right"><a href="#top">Up</a></div>
195 <hr /><hr /> 195 <hr /><hr />
196 <a NAME="createActionGroup" ID="createActionGroup"></a> 196 <a NAME="createActionGroup" ID="createActionGroup"></a>
197 <h2>createActionGroup</h2> 197 <h2>createActionGroup</h2>
198 <b>createActionGroup</b>(<i>parent, name = None, exclusive = False</i>) 198 <b>createActionGroup</b>(<i>parent, name = None, exclusive = False</i>)
199 <p> 199 <p>
200 &#77;&#111;&#100;&#117;&#108;&#101; &#102;&#117;&#110;&#99;&#116;&#105;&#111;&#110; &#116;&#111; &#99;&#114;&#101;&#97;&#116;&#101; &#97;&#110; &#97;&#99;&#116;&#105;&#111;&#110; &#103;&#114;&#111;&#117;&#112;. 200 Module function to create an action group.
201 </p><dl> 201 </p><dl>
202 <dt><i>parent</i></dt> 202 <dt><i>parent</i></dt>
203 <dd> 203 <dd>
204 &#112;&#97;&#114;&#101;&#110;&#116; &#111;&#98;&#106;&#101;&#99;&#116; &#111;&#102; &#116;&#104;&#101; &#97;&#99;&#116;&#105;&#111;&#110; &#103;&#114;&#111;&#117;&#112; (&#81;&#79;&#98;&#106;&#101;&#99;&#116;) 204 parent object of the action group (QObject)
205 </dd><dt><i>name</i></dt> 205 </dd><dt><i>name</i></dt>
206 <dd> 206 <dd>
207 &#110;&#97;&#109;&#101; &#111;&#102; &#116;&#104;&#101; &#97;&#99;&#116;&#105;&#111;&#110; &#103;&#114;&#111;&#117;&#112; &#111;&#98;&#106;&#101;&#99;&#116; (&#115;&#116;&#114;&#105;&#110;&#103;) 207 name of the action group object (string)
208 </dd><dt><i>exclusive</i></dt> 208 </dd><dt><i>exclusive</i></dt>
209 <dd> 209 <dd>
210 &#102;&#108;&#97;&#103; &#105;&#110;&#100;&#105;&#99;&#97;&#116;&#105;&#110;&#103; &#97;&#110; &#101;x&#99;&#108;&#117;&#115;&#105;v&#101; &#97;&#99;&#116;&#105;&#111;&#110; &#103;&#114;&#111;&#117;&#112; (&#98;&#111;&#111;&#108;&#101;&#97;&#110;) 210 flag indicating an exclusive action group (boolean)
211 </dd> 211 </dd>
212 </dl><dl> 212 </dl><dl>
213 <dt>Returns:</dt> 213 <dt>Returns:</dt>
214 <dd> 214 <dd>
215 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#99;&#114;&#101;&#97;&#116;&#101;&#100; &#97;&#99;&#116;&#105;&#111;&#110; &#103;&#114;&#111;&#117;&#112; (&#81;&#65;&#99;&#116;&#105;&#111;&#110;&#71;&#114;&#111;&#117;&#112;) 215 reference to the created action group (QActionGroup)
216 </dd> 216 </dd>
217 </dl> 217 </dl>
218 <div align="right"><a href="#top">Up</a></div> 218 <div align="right"><a href="#top">Up</a></div>
219 <hr /> 219 <hr />
220 </body></html> 220 </body></html>

eric ide

mercurial