python - Why does the use of *args and **kwargs throw an error in wxpython? -


running code results in error

import wx  class myframe(wx.frame):     def __init__(self, *args, **kwargs):         wx.frame.__init__(self, args, kwargs)         self.show()  app = wx.app() frame = myframe(none) app.mainloop()   traceback (most recent call last):   file "testing.py", line 10, in <module>     frame = myframe(none)   file "testing.py", line 6, in __init__     wx.frame.__init__(self, args, kwargs)   file "c:\python27\lib\site-packages\wx-2.9.4-msw\wx\_windows.py", line 580, in __init__     _windows_.frame_swiginit(self,_windows_.new_frame(*args, **kwargs)) typeerror: in method 'new_frame', expected argument 1 of type 'wxwindow *' 

is possible use *args , **kwargs positional , named arguments in wxpython?

wx.frame.__init__(self, *args, **kwargs) 

it works fine ... btu need pass them correctly


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

html - Building a fluid horizontal navigation -