Python - Create() function in wxPython Last Updated : 10 May, 2020 Comments Improve Suggest changes Like Article Like Report 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, size=DefaultSize, style=DEFAULT_FRAME_STYLE, name=FrameNameStr) Parameters : Parameter Input Type Description parent wx.Window Parent window. Should not be None. id wx.WindowID Control identifier. A value of -1 denotes a default value. title string Title to the frame. pos wx.Point Window position. size wx.Window Window size. style long Window style. name string Window name. Code Example: Python3 # import wxPython import wx class Example(wx.Frame): def __init__(self, *args, **kw): super(Example, self).__init__(*args, **kw) self.InitUI() def InitUI(self): pnl = wx.Panel(self) Button = wx.Button(pnl, label ='New Frame', pos =(20, 20)) Button.Bind(wx.EVT_BUTTON, self.OnNewFrame) self.SetSize((350, 250)) self.SetTitle('wx.Button') def OnNewFrame(self, e): app = wx.App() frm = wx.Frame() frm.Create(None, title ="Frame using Create()") frm.Show() app.MainLoop() def main(): app = wx.App() ex = Example(None) ex.Show() app.MainLoop() if __name__ == '__main__': main() Output : Before clicking New Frame button: After clicking New Frame button: Comment More infoAdvertise with us Next Article Python - Create() function in wxPython R RahulSabharwal Follow Improve Article Tags : Python Python-gui Python-wxPython Practice Tags : python Similar Reads 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 | EnableTool() function in wxPython In this article we are going to learn about EnableTool() function of wx.ToolBar class of wxPython. It is another important function in wx.Toolbar class. EnableTool() function is used to enable or disable a particular tool in Toolbar. It takes 'enable' bool parameter which is when true enable the too 2 min read Python - AddCheckTool() function in wxPython In this article we are going to learn about AddCheckTool() in wx.ToolBar class of wxPython. AddCheckTool() function is used to add check tools. A checktool is a kind of toggle button. A checktool have a on and off state. Syntax : wx.ToolBar.AddCheckTool(self, toolId, label, bitmap1, bmpDisabled=Null 2 min read Python - CreateToolBar() in wxPython In this article we will learn how can we add a toolbar in a frame. A toolbar in a gui application provides quick access to various important tools. We can create toolbar using CreateToolBar() function in wx.Frame class of wxPython. Syntax : wx.Frame.CreateToolBar(self, style=TB_DEFAULT_STYLE, id=ID_ 1 min read Python - Move() function in wxPython 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) Parameter 1 min read wxPython | FindControl() function in Python In this particular article we are going to learn about FindControl() function of wx.ToolBar class of wxPython. FindControl() function is used to returns a pointer to the control identified by id or None if no corresponding control is found. It takes only one parameter 'id'. Syntax : wx.ToolBar.FindC 2 min read wxPython| FindById() function in python In this article we are going to learn a simple function that is FindById() in wx.ToolBar class of wxPython. FindById is a simple function and returns a pointer to the tool identified by id or None if no corresponding tool is found. FindById() takes only single parameter that is id of a particular to 2 min read wxPython - Create() function in wx.Button In this article we are going to learn about Create() function associated with wx.Button class of wxPython. Create() function is used for button creation function for two-step creation. It takes attributes of a button as arguments. Syntax: wx.Button.Create(self, parent, id=ID_ANY, label="", pos=Defau 1 min read wxPython | CreateTool() function in wx.Toolbar In this particular article we are going to learn about CreateTool() function in wx.ToolBar class in wxPython. CreateTool() function is a factory function to create a new toolbar tool. CreateTool() function only creates a tool which is further added using AddTool() function. Syntax: wx.ToolBar.Create 2 min read wxPython - Create() function in wx.StatusBar In this article, we are going to learn about Create() function associated with wx.StatusBar class of wxPython. Similar to StatusBar() constructor Create is used to add attributes to the status bar provided status bar variable should be initialized using StatusBar() constructor without any parameters 1 min read Like