MCPcopy Create free account
hub / github.com/PyQt5/PyQt / showNormal

Method showNormal

Demo/Lib/FramelessWindow.py:206–210  ·  view source on GitHub ↗

还原,要保留上下左右边界,否则没有边框无法调整

(self)

Source from the content-addressed store, hash-verified

204 self.layout().setContentsMargins(0, 0, 0, 0)
205
206 def showNormal(self):
207 """还原,要保留上下左右边界,否则没有边框无法调整"""
208 super(FramelessWindow, self).showNormal()
209 self.layout().setContentsMargins(
210 self.Margins, self.Margins, self.Margins, self.Margins)
211
212 def eventFilter(self, obj, event):
213 """事件过滤器,用于解决鼠标进入其它控件后还原为标准鼠标样式"""

Callers 2

eventFilterMethod · 0.80
onShowMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected