I think you should treat the MainEditorPanel as your pyglet window as far as wxPython is concerned. That means keeping the canvas inside the panel and not adding any more to that panel. If you want to have additional, "regular", wxPython controls, they should be layed out in another panel altogether. If for example you need a tree control alongside the pyglet window, you would add the tree control to your main frame, and the MainEditorPanel also to the main frame, then use your favourite sizer to position the tree control and the MainEditorPanel.
I hope that makes more sense. Or may be I've completely misunderstood you? In any case, choosing a sizer that lets controls be overlapped, is probably a wxPython question which I'm not the right person to answer. -Simon On Feb 25, 5:44 am, Lynx <[email protected]> wrote: > On Feb 24, 9:46 am, Simon Veith Reinholt <[email protected]> wrote: > > > I solved this by creating a Panel to which I only add 1 element, the > > wxCanvas in a boxsizer. In a sense, you can hide the wxCanvas from the > > wxPython by adding it to a Panel in this way. No other code needs to > > know that the panel contains a pyglet window. > > I'm a little lost - how do you then add another sizer that lets you > overlay elements on top of the WxCanvas? I've tried a few variations > but it seems like wxBoxSizer always intends that controls be laid out > in separate boxes that may not overlap each other. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
