Sun, 04 Nov 2018 18:35:18 +0100
UserInterface: added a method to retrieve the clean PATH environment variable.
--- a/APIs/Python3/eric6.api Sun Nov 04 18:12:25 2018 +0100 +++ b/APIs/Python3/eric6.api Sun Nov 04 18:35:18 2018 +0100 @@ -9967,6 +9967,7 @@ eric6.UI.UserInterface.UserInterface.getMenu?4(name) eric6.UI.UserInterface.UserInterface.getMenuAction?4(menuName, actionName) eric6.UI.UserInterface.UserInterface.getMenuBarAction?4(menuName) +eric6.UI.UserInterface.UserInterface.getOriginalPathString?4() eric6.UI.UserInterface.UserInterface.getToolBarIconSize?4() eric6.UI.UserInterface.UserInterface.getToolbar?4(name) eric6.UI.UserInterface.UserInterface.getViewProfile?4()
--- a/Documentation/Help/source.qhp Sun Nov 04 18:12:25 2018 +0100 +++ b/Documentation/Help/source.qhp Sun Nov 04 18:35:18 2018 +0100 @@ -16976,6 +16976,7 @@ <keyword name="UserInterface.getMenu" id="UserInterface.getMenu" ref="eric6.UI.UserInterface.html#UserInterface.getMenu" /> <keyword name="UserInterface.getMenuAction" id="UserInterface.getMenuAction" ref="eric6.UI.UserInterface.html#UserInterface.getMenuAction" /> <keyword name="UserInterface.getMenuBarAction" id="UserInterface.getMenuBarAction" ref="eric6.UI.UserInterface.html#UserInterface.getMenuBarAction" /> + <keyword name="UserInterface.getOriginalPathString" id="UserInterface.getOriginalPathString" ref="eric6.UI.UserInterface.html#UserInterface.getOriginalPathString" /> <keyword name="UserInterface.getToolBarIconSize" id="UserInterface.getToolBarIconSize" ref="eric6.UI.UserInterface.html#UserInterface.getToolBarIconSize" /> <keyword name="UserInterface.getToolbar" id="UserInterface.getToolbar" ref="eric6.UI.UserInterface.html#UserInterface.getToolbar" /> <keyword name="UserInterface.getViewProfile" id="UserInterface.getViewProfile" ref="eric6.UI.UserInterface.html#UserInterface.getViewProfile" />
--- a/Documentation/Source/eric6.UI.UserInterface.html Sun Nov 04 18:12:25 2018 +0100 +++ b/Documentation/Source/eric6.UI.UserInterface.html Sun Nov 04 18:35:18 2018 +0100 @@ -750,6 +750,9 @@ <td><a href="#UserInterface.getMenuBarAction">getMenuBarAction</a></td> <td>Public method to get a reference to an action of the main menu.</td> </tr><tr> +<td><a href="#UserInterface.getOriginalPathString">getOriginalPathString</a></td> +<td>Public method to get the original PATH environment variable (i.e.</td> +</tr><tr> <td><a href="#UserInterface.getToolBarIconSize">getToolBarIconSize</a></td> <td>Public method to get the toolbar icon size.</td> </tr><tr> @@ -2379,6 +2382,22 @@ <dd> reference to the menu bar action (QAction) </dd> +</dl><a NAME="UserInterface.getOriginalPathString" ID="UserInterface.getOriginalPathString"></a> +<h4>UserInterface.getOriginalPathString</h4> +<b>getOriginalPathString</b>(<i></i>) +<p> + Public method to get the original PATH environment variable (i.e. + before modifications by eric6 and PyQt5) +</p><dl> +<dt>Returns:</dt> +<dd> +original PATH environment variable +</dd> +</dl><dl> +<dt>Return Type:</dt> +<dd> +str +</dd> </dl><a NAME="UserInterface.getToolBarIconSize" ID="UserInterface.getToolBarIconSize"></a> <h4>UserInterface.getToolBarIconSize</h4> <b>getToolBarIconSize</b>(<i></i>)
--- a/UI/UserInterface.py Sun Nov 04 18:12:25 2018 +0100 +++ b/UI/UserInterface.py Sun Nov 04 18:35:18 2018 +0100 @@ -7050,6 +7050,16 @@ p = w.pos() return [p.x(), p.y(), s.width(), s.height(), not w.isHidden()] + def getOriginalPathString(self): + """ + Public method to get the original PATH environment variable (i.e. + before modifications by eric6 and PyQt5) + + @return original PATH environment variable + @rtype str + """ + return self.__originalPathString + ############################ ## some event handlers below ############################