252 lines
No EOL
8 KiB
Markdown
252 lines
No EOL
8 KiB
Markdown
<!DOCTYPE html>
|
|
<html><head>
|
|
|
|
</head>
|
|
<body><a NAME="top" ID="top"></a>
|
|
<h1>5.hoverMenu.BaseElement</h1>
|
|
<p>
|
|
description: 抽象类模块
|
|
</p><p>
|
|
Created on 2018年7月7日
|
|
</p><p>
|
|
email: 625781186@qq.com
|
|
</p>
|
|
<h3>Global Attributes</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Classes</h3>
|
|
<table>
|
|
<tr>
|
|
<td><a href="#BaseButton">BaseButton</a></td>
|
|
<td></td>
|
|
</tr><tr>
|
|
<td><a href="#BaseMenuWidget">BaseMenuWidget</a></td>
|
|
<td></td>
|
|
</tr><tr>
|
|
<td><a href="#BaseTable">BaseTable</a></td>
|
|
<td></td>
|
|
</tr><tr>
|
|
<td><a href="#SingeleWidget">SingeleWidget</a></td>
|
|
<td>菜单条的每个框。</td>
|
|
</tr>
|
|
</table>
|
|
<h3>Functions</h3>
|
|
<table>
|
|
<tr>
|
|
<td><a href="#showERROR">showERROR</a></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
<hr /><hr />
|
|
<a NAME="BaseButton" ID="BaseButton"></a>
|
|
<h2>BaseButton</h2>
|
|
|
|
<h3>Derived from</h3>
|
|
QPushButton
|
|
<h3>Class Attributes</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Class Methods</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Methods</h3>
|
|
<table>
|
|
<tr>
|
|
<td><a href="#BaseButton.__init__">BaseButton</a></td>
|
|
<td></td>
|
|
</tr><tr>
|
|
<td><a href="#BaseButton._createLabel">_createLabel</a></td>
|
|
<td>path:主菜单图标的路径。</td>
|
|
</tr><tr>
|
|
<td><a href="#BaseButton._todo">_todo</a></td>
|
|
<td>每个按钮要重新实现的功能函数。</td>
|
|
</tr><tr>
|
|
<td><a href="#BaseButton.resizeEvent">resizeEvent</a></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
<h3>Static Methods</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<a NAME="BaseButton.__init__" ID="BaseButton.__init__"></a>
|
|
<h4>BaseButton (Constructor)</h4>
|
|
<b>BaseButton</b>(<i>parent=None</i>)
|
|
<a NAME="BaseButton._createLabel" ID="BaseButton._createLabel"></a>
|
|
<h4>BaseButton._createLabel</h4>
|
|
<b>_createLabel</b>(<i>path</i>)
|
|
<p>
|
|
path:主菜单图标的路径。
|
|
</p><a NAME="BaseButton._todo" ID="BaseButton._todo"></a>
|
|
<h4>BaseButton._todo</h4>
|
|
<b>_todo</b>(<i>*args, **kwgs</i>)
|
|
<p>
|
|
每个按钮要重新实现的功能函数。
|
|
</p><a NAME="BaseButton.resizeEvent" ID="BaseButton.resizeEvent"></a>
|
|
<h4>BaseButton.resizeEvent</h4>
|
|
<b>resizeEvent</b>(<i>e</i>)
|
|
|
|
<div align="right"><a href="#top">Up</a></div>
|
|
<hr /><hr />
|
|
<a NAME="BaseMenuWidget" ID="BaseMenuWidget"></a>
|
|
<h2>BaseMenuWidget</h2>
|
|
|
|
<h3>Derived from</h3>
|
|
QWidget
|
|
<h3>Class Attributes</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Class Methods</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Methods</h3>
|
|
<table>
|
|
<tr>
|
|
<td><a href="#BaseMenuWidget.__init__">BaseMenuWidget</a></td>
|
|
<td>_hideFlag__Menu: 0时隐藏,1时显示;</td>
|
|
</tr><tr>
|
|
<td><a href="#BaseMenuWidget._deleteSomething">_deleteSomething</a></td>
|
|
<td></td>
|
|
</tr><tr>
|
|
<td><a href="#BaseMenuWidget._showSomething">_showSomething</a></td>
|
|
<td></td>
|
|
</tr><tr>
|
|
<td><a href="#BaseMenuWidget.enterEvent">enterEvent</a></td>
|
|
<td></td>
|
|
</tr><tr>
|
|
<td><a href="#BaseMenuWidget.leaveEvent">leaveEvent</a></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
<h3>Static Methods</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<a NAME="BaseMenuWidget.__init__" ID="BaseMenuWidget.__init__"></a>
|
|
<h4>BaseMenuWidget (Constructor)</h4>
|
|
<b>BaseMenuWidget</b>(<i>parent=None</i>)
|
|
<p>
|
|
_hideFlag__Menu: 0时隐藏,1时显示;
|
|
</p><a NAME="BaseMenuWidget._deleteSomething" ID="BaseMenuWidget._deleteSomething"></a>
|
|
<h4>BaseMenuWidget._deleteSomething</h4>
|
|
<b>_deleteSomething</b>(<i></i>)
|
|
<a NAME="BaseMenuWidget._showSomething" ID="BaseMenuWidget._showSomething"></a>
|
|
<h4>BaseMenuWidget._showSomething</h4>
|
|
<b>_showSomething</b>(<i>**kwgs</i>)
|
|
<a NAME="BaseMenuWidget.enterEvent" ID="BaseMenuWidget.enterEvent"></a>
|
|
<h4>BaseMenuWidget.enterEvent</h4>
|
|
<b>enterEvent</b>(<i>e</i>)
|
|
<a NAME="BaseMenuWidget.leaveEvent" ID="BaseMenuWidget.leaveEvent"></a>
|
|
<h4>BaseMenuWidget.leaveEvent</h4>
|
|
<b>leaveEvent</b>(<i>e</i>)
|
|
|
|
<div align="right"><a href="#top">Up</a></div>
|
|
<hr /><hr />
|
|
<a NAME="BaseTable" ID="BaseTable"></a>
|
|
<h2>BaseTable</h2>
|
|
|
|
<h3>Derived from</h3>
|
|
QTableWidget
|
|
<h3>Class Attributes</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Class Methods</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Methods</h3>
|
|
<table>
|
|
<tr>
|
|
<td><a href="#BaseTable.__init__">BaseTable</a></td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
<h3>Static Methods</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<a NAME="BaseTable.__init__" ID="BaseTable.__init__"></a>
|
|
<h4>BaseTable (Constructor)</h4>
|
|
<b>BaseTable</b>(<i>parent=None</i>)
|
|
|
|
<div align="right"><a href="#top">Up</a></div>
|
|
<hr /><hr />
|
|
<a NAME="SingeleWidget" ID="SingeleWidget"></a>
|
|
<h2>SingeleWidget</h2>
|
|
<p>
|
|
菜单条的每个框。
|
|
</p>
|
|
<h3>Derived from</h3>
|
|
QWidget
|
|
<h3>Class Attributes</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Class Methods</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<h3>Methods</h3>
|
|
<table>
|
|
<tr>
|
|
<td><a href="#SingeleWidget.__init__">SingeleWidget</a></td>
|
|
<td>_hideFlag__Button: 0 表明没有显示弹窗;1表示显示了弹窗。</td>
|
|
</tr><tr>
|
|
<td><a href="#SingeleWidget._creatMenu">_creatMenu</a></td>
|
|
<td>Main.py中被调用。把LX类实例化。</td>
|
|
</tr><tr>
|
|
<td><a href="#SingeleWidget._jugement">_jugement</a></td>
|
|
<td>离开上面窗体之后80ms, 1:进入旁边的菜单框;2:进入弹出的菜单。</td>
|
|
</tr><tr>
|
|
<td><a href="#SingeleWidget.enterEvent">enterEvent</a></td>
|
|
<td>鼠标移入label后 , _hideFlag__Button=1,表明显示了弹窗。</td>
|
|
</tr><tr>
|
|
<td><a href="#SingeleWidget.leaveEvent">leaveEvent</a></td>
|
|
<td>离开时判断是否显示了窗体,80ms后发射到_jugement去检测。</td>
|
|
</tr>
|
|
</table>
|
|
<h3>Static Methods</h3>
|
|
<table>
|
|
<tr><td>None</td></tr>
|
|
</table>
|
|
<a NAME="SingeleWidget.__init__" ID="SingeleWidget.__init__"></a>
|
|
<h4>SingeleWidget (Constructor)</h4>
|
|
<b>SingeleWidget</b>(<i>parent=None</i>)
|
|
<p>
|
|
_hideFlag__Button: 0 表明没有显示弹窗;1表示显示了弹窗。
|
|
</p><a NAME="SingeleWidget._creatMenu" ID="SingeleWidget._creatMenu"></a>
|
|
<h4>SingeleWidget._creatMenu</h4>
|
|
<b>_creatMenu</b>(<i>L_Name, parent</i>)
|
|
<p>
|
|
Main.py中被调用。把LX类实例化。
|
|
</p><a NAME="SingeleWidget._jugement" ID="SingeleWidget._jugement"></a>
|
|
<h4>SingeleWidget._jugement</h4>
|
|
<b>_jugement</b>(<i></i>)
|
|
<p>
|
|
离开上面窗体之后80ms, 1:进入旁边的菜单框;2:进入弹出的菜单。
|
|
</p><a NAME="SingeleWidget.enterEvent" ID="SingeleWidget.enterEvent"></a>
|
|
<h4>SingeleWidget.enterEvent</h4>
|
|
<b>enterEvent</b>(<i>e</i>)
|
|
<p>
|
|
鼠标移入label后 , _hideFlag__Button=1,表明显示了弹窗。
|
|
</p><a NAME="SingeleWidget.leaveEvent" ID="SingeleWidget.leaveEvent"></a>
|
|
<h4>SingeleWidget.leaveEvent</h4>
|
|
<b>leaveEvent</b>(<i>e</i>)
|
|
<p>
|
|
离开时判断是否显示了窗体,80ms后发射到_jugement去检测。
|
|
</p>
|
|
<div align="right"><a href="#top">Up</a></div>
|
|
<hr /><hr />
|
|
<a NAME="showERROR" ID="showERROR"></a>
|
|
<h2>showERROR</h2>
|
|
<b>showERROR</b>(<i></i>)
|
|
|
|
<div align="right"><a href="#top">Up</a></div>
|
|
<hr />
|
|
</body></html> |