Documentation/Source/eric5.E5Gui.E5Action.html

Wed, 13 Jan 2010 18:53:58 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 13 Jan 2010 18:53:58 +0000
changeset 55
b5c84934de9c
child 58
37f0444c3479
permissions
-rw-r--r--

Renamed E4Gui to E5Gui.

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>eric5.E5Gui.E5Action</title>
<style>
body {
    background:white;
    margin: 0em 1em 10em 1em;
    color: black;
}

h1 { color: white; background: #4FA4FF; }
h2 { color: white; background: #4FA4FF; }
h3 { color: white; background: #00557F; }
h4 { color: white; background: #00557F; }
    
a { color: #AA5500; }

</style>
</head>
<body><a NAME="top" ID="top"></a>
<h1>eric5.E5Gui.E5Action</h1>
<p>
&#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;.
</p><p>
&#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;
&#115;&#104;&#111;&#114;&#116;&#99;&#117;&#116;&#115;.
</p>
<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Classes</h3>
<table>
<tr>
<td><a href="#ArgumentsError">ArgumentsError</a></td>
<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>
</tr><tr>
<td><a href="#E5Action">E5Action</a></td>
<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>
</tr>
</table>
<h3>Functions</h3>
<table>
<tr>
<td><a href="#addActions">addActions</a></td>
<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>
</tr><tr>
<td><a href="#createActionGroup">createActionGroup</a></td>
<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>
</tr>
</table>
<hr /><hr />
<a NAME="ArgumentsError" ID="ArgumentsError"></a>
<h2>ArgumentsError</h2>
<p>
    &#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;.
</p>
<h3>Derived from</h3>
RuntimeError
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#ArgumentsError.__init__">ArgumentsError</a></td>
<td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
</tr><tr>
<td><a href="#ArgumentsError.__repr__">__repr__</a></td>
<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>
</tr><tr>
<td><a href="#ArgumentsError.__str__">__str__</a></td>
<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>
</tr>
</table>
<a NAME="ArgumentsError.__init__" ID="ArgumentsError.__init__"></a>
<h4>ArgumentsError (Constructor)</h4>
<b>ArgumentsError</b>(<i>error</i>)
<p>
        &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
</p><a NAME="ArgumentsError.__repr__" ID="ArgumentsError.__repr__"></a>
<h4>ArgumentsError.__repr__</h4>
<b>__repr__</b>(<i></i>)
<p>
        &#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;.
</p><dl>
<dt>Returns:</dt>
<dd>
&#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;
</dd>
</dl><a NAME="ArgumentsError.__str__" ID="ArgumentsError.__str__"></a>
<h4>ArgumentsError.__str__</h4>
<b>__str__</b>(<i></i>)
<p>
        &#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;.
</p><dl>
<dt>Returns:</dt>
<dd>
&#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;
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="E5Action" ID="E5Action"></a>
<h2>E5Action</h2>
<p>
    &#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;.
</p>
<h3>Derived from</h3>
QAction
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3>Methods</h3>
<table>
<tr>
<td><a href="#E5Action.__init__">E5Action</a></td>
<td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td>
</tr><tr>
<td><a href="#E5Action.alternateShortcut">alternateShortcut</a></td>
<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>
</tr><tr>
<td><a href="#E5Action.setAlternateShortcut">setAlternateShortcut</a></td>
<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>
</tr>
</table>
<a NAME="E5Action.__init__" ID="E5Action.__init__"></a>
<h4>E5Action (Constructor)</h4>
<b>E5Action</b>(<i>*args</i>)
<p>
        &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;
</p><dl>
<dt><i>args</i></dt>
<dd>
&#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;
            &#60;&#117;&#108;&#62;
            &#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;), 
                &#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;), 
                &#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;
            &#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;), 
                &#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;), 
                &#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;
            &#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;), 
                &#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;), 
                &#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;
            &#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;), 
                &#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;), 
                &#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;
            &#60;/&#117;&#108;&#62;
</dd>
</dl><a NAME="E5Action.alternateShortcut" ID="E5Action.alternateShortcut"></a>
<h4>E5Action.alternateShortcut</h4>
<b>alternateShortcut</b>(<i></i>)
<p>
        &#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;.
</p><dl>
<dt>Returns:</dt>
<dd>
&#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;)
</dd>
</dl><a NAME="E5Action.setAlternateShortcut" ID="E5Action.setAlternateShortcut"></a>
<h4>E5Action.setAlternateShortcut</h4>
<b>setAlternateShortcut</b>(<i>shortcut</i>)
<p>
        &#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;.
</p><dl>
<dt><i>shortcut</i></dt>
<dd>
&#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;)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="addActions" ID="addActions"></a>
<h2>addActions</h2>
<b>addActions</b>(<i>target, actions</i>)
<p>
    &#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;.
</p><dl>
<dt><i>target</i></dt>
<dd>
&#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;)
</dd><dt><i>actions</i></dt>
<dd>
&#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;
        &#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;)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr /><hr />
<a NAME="createActionGroup" ID="createActionGroup"></a>
<h2>createActionGroup</h2>
<b>createActionGroup</b>(<i>parent, name = None, exclusive = False</i>)
<p>
    &#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;.
</p><dl>
<dt><i>parent</i></dt>
<dd>
&#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;)
</dd><dt><i>name</i></dt>
<dd>
&#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;)
</dd><dt><i>exclusive</i></dt>
<dd>
&#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;)
</dd>
</dl><dl>
<dt>Returns:</dt>
<dd>
&#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;)
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial