Ok, folks,
I will answer my own question for completion's sake. Afaik, it is not possible to add a platebutton to the XRC file, but as Mike Driscoll suggested (thanks a bundle, man!), it is possible to insert an "unknown" variable, a placeholder if you want, into the XRC file at the place you want. like shown just below:
<object class="unknown" name="A_Name">
<variables></variables>
</object>
Afterwards, I went into my code example and entered code, not unlike the one below (obviously made general for your viewing pleasure). It seems to work so far, but I was not able to change any settings made to self.MyBtn and only the flags seemed to have any effect, but that could also be something specific to my sizer settings. If you don't think that is the case, feel free to let me know. I'm always interested in better, more efficient or more elegant solutions.
class MyFrame(wx.Frame):
def __init__(self, parent):
self.res = xrc.XmlResource("my_xrc_file.xrc")
self.frame = self.res.LoadFrame("MyFrame")
imageFile = "/a/path/to/your/file"
png = wx.Image(imageFile, wx.BITMAP_TYPE_ANY).ConvertToBitmap()
self.MyBtn = wx.lib.platebtn.PlateButton(self.frame, bmp=png,
style=platebtn.PB_STYLE_TOGGLE|platebtn.PB_STYLE_DEFAULT)
self.PlateBtn = self.res.AttachUnknownControl("MyBtn",
self.MyBtn, self.frame) # this returns a bool
I hope it helps some of you.