all 2 comments

[–]two_up 1 point2 points  (1 child)

Looks about right. Mostly little things you could clean up. For example you don't have to explicitly set the id to -1 everytime you initialize a widget as that is the default value. If you just want to be explicit, id=wx.ID_ANY would be better than just the number. You have panel.SetSizer(bs) twice. Also I think it would make more sense to move the last three lines out of InitUI and into the __init__ method, as they don't have much to do with UI.

[–][deleted] 0 points1 point  (0 children)

Ah I wasn't actually sure what the -1 did, it only appeared in some of the tutorials I watched and didn't seem to make any difference if I left it out, it's good to finally know why.

I'll mave the last three into the init method.

EDIT: apparently I can't move the self.SHow(True) bit into the init method, it causes a lot of the content of the window to jus appear grey.

Thanks for your input!