Esempio n. 1
0
 def staysOnTop(self, onTop):
     self._staysOnTop = onTop
     action = 1 if onTop else 0
     request_wm_state_checked(self.winId().__int__(),
         action, atom("_NET_WM_STATE_ABOVE")).check()
     self.staysOnTopChanged.emit()
Esempio n. 2
0
 def setDeepinWindowShadowHint(self, width):
     width = str(width)
     window = self.winId().__int__()
     return c.core.ChangeProperty(xcb.xproto.PropMode.Replace, window,
                                  atom('DEEPIN_WINDOW_SHADOW'),
                                  atom('STRING'), 8, len(width), width)