In this article we are going to learn that, how can we show window in the centre of the screen. We can do this by using Centre() function in wx.Frame module.
wx.Frame.Centre(self, direction = wx.BOTH)
Parameter Input Type Description direction int The parameter may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course