python - How can I create a wx.Frame without a parent? -


when try make new frame wx.frame(false), error, passed down through callstack:

typeerror: in method 'new_frame', expected argument 1 of type 'wxwindow *' 

i argument should parent window, @ least in c++ can pass null pointer if don't want window have parent.

how can create wx.frame without parent?

you can pass none. seen in example.

#!/usr/bin/python  # simple.py  import wx  app = wx.app()  frame = wx.frame(none, -1, 'simple.py') frame.show()  app.mainloop() 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -