• Yeah, that's exactly the error I was getting. Got it when trying to reuse a popover view as well.
    The result I have by creating my own title bar is actually better for my purposes, so I'll stick with it.

    Interesting to know about removing the view controller to disconnect the closed view from the animation state of the presenting controller.

  • @shinyformica try this, it is the way omz wrote dialog: using wait_modal and resetting the view just after.

    import ui from objc_util import * class Popover(ui.View): def __init__(self, *args, **kws): ui.View.__init__(self, *args, **kws) self.width = 200 self.height = 50 self.label = ui.Label() self.label.text = "test" self.add_subview(self.label) self.label.x = 0 self.label.y = 0 self.label.width = self.width self.label.height = self.height def will_close(self): print("popover closing") class MyView(ui.View): def __init__(self, *args, **kws): ui.View.__init__(self, *args, **kws) self.popover = None self.button = ui.ButtonItem() self.button.title = "Show Popover" self.button.action = self.showPopover self.right_button_items = (self.button,) def showPopover(self, sender): print("show popover") if self.popover is None: self.popover = Popover() self.popover.present(style="popover", popover_location=(self.width-100,50), hide_title_bar=True) self.popover.wait_modal() self.popover = None def run(): v = MyView() v.present('full_screen') if __name__ == '__main__': run()```
  • @struct_engr_ , I think the problem is that for the past 6 months or so, no emails from this forum get actually sent. Neither the password resets or other notifications. @omz, any chance you could take a look?

  • Yeah. I haven't tested my repo on these custom themes specifically, but it worked on the old kind

  • One nice thing about the sidebar was that it could be narrower than 200 pt, so a 30 or 40 pix wide sidebar worked well for creating custom auxilary shortcut bars in the editor without sacrificing too much width. But so much more can now be done in objc, I am not complaining.

Internal error.

Oops! Looks like something went wrong!