Exception while generating perl code

Johan Vromans <[email protected]>
Newsgroups gmane.comp.python.wxglade
Organization Squirrel Consultancy
Message-ID <[email protected]>
ERROR   : None
An unexpected error occurred!

Date and time:       2017-01-16T13:33:21.178111
Python version:      2.7.11
wxPython version:    3.0.2.0
wxWidgets platform:  __WXGTK__
wxGlade version:     54d1f9647f48
Language code:       en_US
Encoding:            UTF-8
Filesystem encoding: UTF-8

Exception type:      <type 'exceptions.TypeError'>
Exception details:   generate_code() takes exactly 1 argument (0 given)
Application stack trace:
Stack frame at level 0
======================
  File "/home/jv/wrk/wxGlade/wxGlade-hg/misc.py", line 392
  Function "handler(event=<wx._core.CommandEvent; proxy of <Swig Object of
type 'wxCommandEvent *' at 0x7ffec44c2fc0> >)" Source code context:
      def bind_menu_item(widget, item, func, *args, **kwargs):
          "Bind a menu handler with immediate callback"
          def handler(event):
  ->          func( *args, **kwargs )
          widget.Bind(wx.EVT_MENU, handler, item )
      
      def bind_menu_item_after(widget, item, func, *args, **kwargs):
  Local variables:
  -> args (<type 'tuple'>): ()
  -> event (<class 'wx._core.CommandEvent'>): <wx._core.CommandEvent; proxy
of <Swig Object of type 'wxCommandEvent *' at 0x7ffec44c2fc0> > -> func
(<type 'function'>): <function generate_code at 0x7fe15b112500> -> kwargs
(<type 'dict'>): {}

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.