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
Post a Comment