pyqt4 place window in the center of screen
2017-03-30 14:38
344 查看
def center(self): screen = QtGui.QDesktopWidget().screenGeometry() size = self.geometry() self.move((screen.width()-size.width())/2, (screen.height()-size.height())/2)
相关文章推荐
- print 'welcome to masm!' in the center of the screen.
- 3.1 Placing UI Components in the Center of the Screen
- Animate to display a dialog message box in the right-bottom of the window screen
- place content in the center of pdf
- [软件哲理][转]A piece with a lot of screenshots about the close tab behaviour in Google Chrome
- How to make an SDL window the child of another window in Win32
- Get the F4 help of a field based on the value of another field in the selction screen(联动的搜索帮助)
- Android NDK – hello catcake ~ Move the scene into the center of the screen
- remove the title bar of a window in Android
- Quickly place a window to another screen using only the keyboard
- How to alignment the center position of the button in Android?
- The Maximum Number of Bytes Per Row in SQL Server 2000 -- 8060.
- Meaning Of Names In The Lord Of The Ring
- [If I were in charge of the Big Company.. ]
- Tomorrow I will fly......but I will return in the future, of course, to be by your side
- Trick:Checking the Contents of Descriptors in MSVC6(Symbian)
- how to get the space size of some tables in one database?
- In search of the perfect market
- The Implement of Cache in Hibernate
- A friends walks in when the rest of the world walks out