231 lines
8 KiB
Markdown
231 lines
8 KiB
Markdown
|
<!DOCTYPE html>
|
||
|
<html><head>
|
||
|
<title>5.hoverMenu.U_FuncWidget.BaseElement</title>
|
||
|
<meta charset="UTF-8">
|
||
|
<style>
|
||
|
|
||
|
</style>
|
||
|
</head>
|
||
|
<body><a NAME="top" ID="top"></a>
|
||
|
<h1>5.hoverMenu.U_FuncWidget.BaseElement</h1>
|
||
|
<p>
|
||
|
description: 抽象类模块
|
||
|
</p><p>
|
||
|
Created on 2018年7月7日
|
||
|
</p><p>
|
||
|
Author: 人间白头
|
||
|
</p><p>
|
||
|
email: 625781186@qq.com
|
||
|
</p>
|
||
|
<h3>Global Attributes</h3>
|
||
|
<table>
|
||
|
<tr><td>ENTERMENU</td></tr><tr><td>SHOWMENU</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="#SingeleWidget">SingeleWidget</a></td>
|
||
|
<td>菜单栏的每个框。</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
<h3>Functions</h3>
|
||
|
<table>
|
||
|
<tr><td>None</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>
|
||
|
QTableWidget
|
||
|
<h3>Class Attributes</h3>
|
||
|
<table>
|
||
|
<tr><td>Menu_hideFlag</td></tr><tr><td>m_currentCol</td></tr><tr><td>m_currentRow</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>Menu_hideFlag: 0时隐藏,1时显示;</td>
|
||
|
</tr><tr>
|
||
|
<td><a href="#BaseMenuWidget.__initUI">__initUI</a></td>
|
||
|
<td></td>
|
||
|
</tr><tr>
|
||
|
<td><a href="#BaseMenuWidget._addAction">_addAction</a></td>
|
||
|
<td>obj : QPushButton对象; text:obj的字; func:obj点击链接的信号; MyWidget:想要显示的窗体对象;</td>
|
||
|
</tr><tr>
|
||
|
<td><a href="#BaseMenuWidget._findParent">_findParent</a></td>
|
||
|
<td>递归找父窗口。</td>
|
||
|
</tr><tr>
|
||
|
<td><a href="#BaseMenuWidget._setHeight">_setHeight</a></td>
|
||
|
<td></td>
|
||
|
</tr><tr>
|
||
|
<td><a href="#BaseMenuWidget.changeTab">changeTab</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>
|
||
|
Menu_hideFlag: 0时隐藏,1时显示;
|
||
|
</p><a NAME="BaseMenuWidget.__initUI" ID="BaseMenuWidget.__initUI"></a>
|
||
|
<h4>BaseMenuWidget.__initUI</h4>
|
||
|
<b>__initUI</b>(<i></i>)
|
||
|
<a NAME="BaseMenuWidget._addAction" ID="BaseMenuWidget._addAction"></a>
|
||
|
<h4>BaseMenuWidget._addAction</h4>
|
||
|
<b>_addAction</b>(<i>text, MyWidget=None, func=None, *args, **kwags</i>)
|
||
|
<p>
|
||
|
obj : QPushButton对象;
|
||
|
text:obj的字;
|
||
|
func:obj点击链接的信号;
|
||
|
MyWidget:想要显示的窗体对象;
|
||
|
</p><a NAME="BaseMenuWidget._findParent" ID="BaseMenuWidget._findParent"></a>
|
||
|
<h4>BaseMenuWidget._findParent</h4>
|
||
|
<b>_findParent</b>(<i>currentObj</i>)
|
||
|
<p>
|
||
|
递归找父窗口。
|
||
|
</p><a NAME="BaseMenuWidget._setHeight" ID="BaseMenuWidget._setHeight"></a>
|
||
|
<h4>BaseMenuWidget._setHeight</h4>
|
||
|
<b>_setHeight</b>(<i></i>)
|
||
|
<a NAME="BaseMenuWidget.changeTab" ID="BaseMenuWidget.changeTab"></a>
|
||
|
<h4>BaseMenuWidget.changeTab</h4>
|
||
|
<b>changeTab</b>(<i>text, MyWidget, *args, **kwags</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="SingeleWidget" ID="SingeleWidget"></a>
|
||
|
<h2>SingeleWidget</h2>
|
||
|
<p>
|
||
|
菜单栏的每个框。
|
||
|
</p>
|
||
|
<h3>Derived from</h3>
|
||
|
QWidget
|
||
|
<h3>Class Attributes</h3>
|
||
|
<table>
|
||
|
<tr><td>Button_hideFlag</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>Button_hideFlag: 0 表明没有显示弹窗;1表示显示了弹窗。</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></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>
|
||
|
Button_hideFlag: 0 表明没有显示弹窗;1表示显示了弹窗。
|
||
|
</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>)
|
||
|
<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 />
|
||
|
</body></html>
|