Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/d/e/deepin-talk-HEAD/src/dtalk/controls/trayicon.py   deepin-talk(Download)
    def getPos(self, width, height):        
        offset = 12
        screenSize = QtWidgets.QApplication.desktop().geometry().size()
        geometry = self.geometry()
        mouseX = int(geometry.x() + geometry.width() / 2)
    def getNormalGeometry(self):
        geometry = self.geometry()
        return QtCore.QRect(geometry.x(), geometry.y(), geometry.width(), geometry.height())
 
    def flash(self):    

src/d/e/deepin-translator-HEAD/src/system_tray.py   deepin-translator(Download)
    def on_activated(self, reason):
        if not self.menu_is_visible:
            if reason in [QSystemTrayIcon.Context, QSystemTrayIcon.Trigger]:
                geometry = self.geometry()
                if QT_VERSION == "5.1":
    def get_trayarea(self):
        geometry = self.geometry()
        return (geometry.y() / 2, geometry.y() / 2 + geometry.height())