Search code examples
pythonbitmapwxpython

wxpython bitmap adding textctrl/combobox top of it?


I was trying to find if its possible to add textctrl/combobox top of GenStaticBitmap in wxpython.

Did not find anything with the fast searches i did. Its not first in the priorities, but i feel like it would make the program usage better.

In this case i have screenshot taken from webpage and user can select inputbox and it should be textctrl over the bitmap positioned where it was selected. (i have it working already with textctrl positioned elsewhere).

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

I can not give full code example.


Solution

  • Are you searching for something like a background bitmap (controls on top of a user-defined bitmap)?

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