Python - Move() function in wxPython Last Updated : 10 May, 2020 Suggest changes Share Like Article Like Report In this particular article we will learn, how can we move our window to a particular point. This can be achieved using Move() function in wx.Window class of wxPython. Move() takes x and y points to move window to a particularx, y point. Syntax : wx.Move(self, x, y, flags=SIZE_USE_EXISTING) Parameters : Parameter Input Type Description x int Required x position. y int Required y position. flag int flag for SetSize. Code Example #1: Python3 # import wxPython import wx # frame class class MoveWindow(wx.Frame): def __init__(self, parent, title): super(MoveWindow, self).__init__(parent, title = title, size =(300, 200)) # move window using Move() function self.Move((500, 250)) def main(): app = wx.App() move = MoveWindow(None, title ='Move()') move.Show() app.MainLoop() if __name__ == '__main__': main() Output: Code Example #2: Python3 # import wxPython import wx # frame class class MoveWindow(wx.Frame): def __init__(self, parent, title): super(MoveWindow, self).__init__(parent, title = title, size =(300, 200)) # move window to (900, 600) using Move() function self.Move((900, 600)) def main(): app = wx.App() move = MoveWindow(None, title ='Move()') move.Show() app.MainLoop() if __name__ == '__main__': main() Output: Advertise with us Next Article Python - Move() function in wxPython R RahulSabharwal Follow Similar Reads wxPython - Replace() function in wxPython Another function in wx.MenuBar class is Replace() function. If we ever want to replace a menu from menubar we use Replace() function. It takes three main parameters that is position of menu we want to replace, menu we want to add, title of new menu. Syntax : wx.MenuBar.Replace(self, pos, menu, title 2 min read Python - Create() function in wxPython In this particular article we are going to learn about Create() function present in wx.Frame class. Create function is similar to Frame() constructor of wx.Frame class. Create function is used in two-step frame construction. Syntax : wx.Frame.Create(parent, id=ID_ANY, title="", pos=DefaultPosition, 1 min read wxPython | Exit() function in wxPython In this article we are going to learn about wx.Exit() which is a inbuilt parent function present in wxPython.Exit() function exits application after calling wx.App.OnExit . Should only be used in an emergency: normally the top-level frame should be deleted (after deleting all other frames) to termin 1 min read wxPython - SetBitmap() function in wxPython In this article we are going we are going to learn about SetBitmap() function associated with wx.MenuItem class of wxPython. SetBitmap() sets the bitmap for the menu item. SetBitmap must be called before the item is appended to the menu, i.e. appending the item without a bitmap and setting one later 1 min read Button in wxPython - Python In this article we are going to learn how can we add buttons to a frame in wxPython. This can be done by using the Button() constructor of wx.Button class. Following styles are supported in this class: wx.BU_LEFT: Left-justifies the label. Windows and GTK+ only.wx.BU_TOP: Aligns the label to the top 2 min read Article Tags : Python Python-gui Python-wxPython Practice Tags : python Like