I tried to follow wxPython Demo examples to understand it better. I
used wxGlade to generate my code from the GUI builder.
When I try to see the code for Menu and Menubar I see a little mismatch
in the way functions are being used.
For example, wxGlade produces code like this
self.Action = wx.Menu()
self.AddCompute r = wx.MenuItem(sel f.Action, wx.NewId(), _("Add
Computer"), "",wx.ITEM_NORM AL)
self.Action.App endItem(self.Ad dComputer)
## Code end
and in the demo it is gives as
self.Action = wx.Menu()
Action.append(2 01, "Add Computer")
# Code end
Can somebody please explain this discrepancy ?
Thanks, every help is appreciated.
used wxGlade to generate my code from the GUI builder.
When I try to see the code for Menu and Menubar I see a little mismatch
in the way functions are being used.
For example, wxGlade produces code like this
self.Action = wx.Menu()
self.AddCompute r = wx.MenuItem(sel f.Action, wx.NewId(), _("Add
Computer"), "",wx.ITEM_NORM AL)
self.Action.App endItem(self.Ad dComputer)
## Code end
and in the demo it is gives as
self.Action = wx.Menu()
Action.append(2 01, "Add Computer")
# Code end
Can somebody please explain this discrepancy ?
Thanks, every help is appreciated.
Comment