Did I find the right examples for you? yes no

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

src/r/o/robotframework-python3-2.8.3/src/robot/libraries/dialogs_py.py   robotframework-python3(Download)
    def _get_center_location(self):
        x = (self.winfo_screenwidth() - self.winfo_reqwidth()) / 2
        y = (self.winfo_screenheight() - self.winfo_reqheight()) / 2
        return x, y
 

src/p/m/Pmw-2.0.0/Pmw/Pmw_2_0_0/demos/All.py   Pmw(Download)
 
width = splash.winfo_reqwidth()
height = splash.winfo_reqheight()
x = (root.winfo_screenwidth() - width) / 2 - root.winfo_vrootx()
y = (root.winfo_screenheight() - height) / 3 - root.winfo_vrooty()