wxpython位图在上面加入textctrl/combobox吗?

wxpython bitmap adding textctrl/combobox top of it?

我试图找到是否可以在 wxpython 中添加 textctrl/combobox GenStaticBitmap 的顶部。

我进行的快速搜索没有找到任何内容。它不是优先事项,但我觉得它会使程序的使用更好。

在这种情况下,我从网页截取了屏幕截图,用户可以 select 输入框,它应该是位图上的 textctrl,它位于 selected 的位置。 (我已经在其他地方使用了 textctrl)。

# example something like this
self.staticbitmap = GenStaticBitmap(self.panel, self.bitmap)
text = wx.textctrl(self.panel)
# Have sizer position it here?

我无法给出完整的代码示例。

您是否在搜索背景位图(用户定义位图上的控件)之类的东西?

Mike Driscoll has described a solution for this in his Blog.