WxPython: What is the difference between wx.Panel and wx.Window?

I got the impression that Panel is better. It's true?

What is the advantage over the other? What reason is using one over the other?

+4
source share
1 answer

wx.Window is the base class for all widgets (not necessarily all windows - this is misleading).

wx.Panel is a subclass of wx.Window that is more modest considering widgets inside it. For example, it by default allows you to navigate between widgets using the β€œtab”, and handles the focus event in a way that is more useful with child widgets.

+18
source

All Articles