kliment / Printrun

Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software
GNU General Public License v3.0
2.36k stars 995 forks source link

Error moving a single custom button #1328

Closed rockstorm101 closed 1 year ago

rockstorm101 commented 1 year ago

Steps to reproduce

  1. Fresh Pronterface run, i.e. no ~/.config/Printrun/pronsolerc file around.
  2. Create a custom button.
  3. Right click on new button and hit "Move right >>".

The following is printed to the Pronteface log (interestingly, nothing on the terminal):

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/wx/core.py", line 3427, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/test/printrun/pronterface.py", line 2155, in cbuttons_reload
    self.cbuttonssizer.Add(b, flag = wx.EXPAND)
wx._core.wxAssertionError: C++ assertion "CheckExpectedParentIs(w, m_containingWindow)" failed at ./src/common/sizer.cpp(850) in DoInsert(): Windows managed by the sizer associated with the given window must have this window as parent, otherwise they will not be repositioned correctly.

Please use the window wxPanel@0x3e9e910 ("panel") with which this sizer is associated, as the parent when creating the window wxStaticText@0x3feb500 ("staticText") managed by it.