Xsection snapshot pop up default location location

You can see that the default pop up location always locate at the center of the Xsection, which always happen to be the important location that I want to view. In the script, I'm doing multiple snapshot so that I can check how the Xsection looks at different process steps. But since this popup always block the view, I have to move it away and then click the Yes button so that It can continue. But the next popup will again appear at the center location. Is there away to automatically adjust the popup position to a edge location, so that I can only need to click the YES button without the need to drag this to the edge from the center location?

thank you.

Comments

  • XSection is a separate project hosted here: https://codeberg.org/klayoutmatthias/xsection

    But I don't attend it currently.

    So as of now it is "as is", unless someone wants to maintain this project.

    Matthias

  • Basically it's the below pause method, but I'm not sure how to modify that. Tried using CoPilot to modify this method, but requires using QT or TK. But once I included QT, the Xsection disappeared from the "Tools" tab in KLayout... Could you give me a hint how these might be modified? Please give me a direction so that I may try it out.

    thank you.

    v = RBA::MessageBox::question("XSection snapshot", "New snapshot taken. Continue?", RBA::MessageBox::Yes + RBA::MessageBox::No)

    def pause(name = nil)
    
      if @batch
        return
      end
    
      name && @target_view.title = name
      finish_output_view
    
      v = RBA::MessageBox::question("XSection snapshot", "New snapshot taken. Continue?", RBA::MessageBox::Yes + RBA::MessageBox::No)
      if v != RBA::MessageBox::Yes
        raise "XSection script processing stopped."
      end
    
    end
    
Sign In or Register to comment.