Jun-06-2017, 09:06 PM
I think I already know the answer to my question, but wanted a different perspective so
that I can verify that I should not do what I'd love to be able to do.
I have a widget that is part of a widget constructor class
I have a very guilty feeling like I am breaking some sort of cardinal rule.
that I can verify that I should not do what I'd love to be able to do.
I have a widget that is part of a widget constructor class
self.showdata = ShowData() ... self.search = wx.SearchCtrl(self.leftpanel, id=wx.ID_ANY) self.Bind(wx.EVT_TEXT, showdata.OnKeyDown, self.search)and in class ShowData:
def OnKeyDown(self): ...Is this OK?
I have a very guilty feeling like I am breaking some sort of cardinal rule.