5.hoverMenu.BaseElement
description: 抽象类模块
Created on 2018年7月7日
email: 625781186@qq.com
Global Attributes
Classes
Functions
BaseButton
Derived from
QPushButton
Class Attributes
Class Methods
Methods
Static Methods
BaseButton (Constructor)
BaseButton(parent=None)
BaseButton._createLabel
_createLabel(path)
path:主菜单图标的路径。
BaseButton._todo
_todo(*args, **kwgs)
每个按钮要重新实现的功能函数。
BaseButton.resizeEvent
resizeEvent(e)
BaseMenuWidget
Derived from
QWidget
Class Attributes
Class Methods
Methods
Static Methods
BaseMenuWidget (Constructor)
BaseMenuWidget(parent=None)
_hideFlag__Menu: 0时隐藏,1时显示;
BaseMenuWidget._deleteSomething
_deleteSomething()
BaseMenuWidget._showSomething
_showSomething(**kwgs)
BaseMenuWidget.enterEvent
enterEvent(e)
BaseMenuWidget.leaveEvent
leaveEvent(e)
BaseTable
Derived from
QTableWidget
Class Attributes
Class Methods
Methods
Static Methods
BaseTable (Constructor)
BaseTable(parent=None)
SingeleWidget
菜单条的每个框。
Derived from
QWidget
Class Attributes
Class Methods
Methods
Static Methods
SingeleWidget (Constructor)
SingeleWidget(parent=None)
_hideFlag__Button: 0 表明没有显示弹窗;1表示显示了弹窗。
SingeleWidget._creatMenu
_creatMenu(L_Name, parent)
Main.py中被调用。把LX类实例化。
SingeleWidget._jugement
_jugement()
离开上面窗体之后80ms, 1:进入旁边的菜单框;2:进入弹出的菜单。
SingeleWidget.enterEvent
enterEvent(e)
鼠标移入label后 , _hideFlag__Button=1,表明显示了弹窗。
SingeleWidget.leaveEvent
leaveEvent(e)
离开时判断是否显示了窗体,80ms后发射到_jugement去检测。
showERROR
showERROR()