Draggable/Resizable widgets/windows draw lines on adjacent monitor when being resized. (Issue #26661)

10 views
Skip to first unread message

Abigail Austin

unread,
Jul 6, 2026, 7:44:28 PM (2 days ago) Jul 6
to wx-...@googlegroups.com, Subscribed
ArachnidAbby created an issue (wxWidgets/wxWidgets#26661)

Description

Bug description:

When you resize a resizable widget (in this example AuiNotebook, but I've experienced the same thing on a SashWindow) it will cause lines to be continuously drawn to the left of the cursor while the resize is being performed.

Expected vs observed behaviour:

This simply shouldn't happen

Patch or snippet allowing to reproduce the problem:

# -*- coding: utf-8 -*-

###########################################################################
## Python code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
## http://www.wxformbuilder.org/
##
## PLEASE DO *NOT* EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc
import wx.aui

import gettext
_ = gettext.gettext

###########################################################################
## Class MyFrame1
###########################################################################

class MyFrame1 ( wx.Frame ):

    def __init__( self, parent ):
        wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 500,300 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )

        self.SetSizeHints( wx.DefaultSize, wx.DefaultSize )

        bSizer1 = wx.BoxSizer( wx.HORIZONTAL )

        self.m_auinotebook1 = wx.aui.AuiNotebook( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.aui.AUI_NB_DEFAULT_STYLE )
        self.m_panel3 = wx.Panel( self.m_auinotebook1, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
        bSizer4 = wx.BoxSizer( wx.VERTICAL )

        self.m_button8 = wx.Button( self.m_panel3, wx.ID_ANY, _(u"MyButton"), wx.DefaultPosition, wx.DefaultSize, 0 )
        bSizer4.Add( self.m_button8, 0, wx.ALL, 5 )


        self.m_panel3.SetSizer( bSizer4 )
        self.m_panel3.Layout()
        bSizer4.Fit( self.m_panel3 )
        self.m_auinotebook1.AddPage( self.m_panel3, _(u"a page"), False, wx.NullBitmap )
        self.m_panel4 = wx.Panel( self.m_auinotebook1, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
        bSizer5 = wx.BoxSizer( wx.VERTICAL )

        self.m_button10 = wx.Button( self.m_panel4, wx.ID_ANY, _(u"MyButton"), wx.DefaultPosition, wx.DefaultSize, 0 )
        bSizer5.Add( self.m_button10, 0, wx.ALL, 5 )


        self.m_panel4.SetSizer( bSizer5 )
        self.m_panel4.Layout()
        bSizer5.Fit( self.m_panel4 )
        self.m_auinotebook1.AddPage( self.m_panel4, _(u"a page"), False, wx.NullBitmap )

        bSizer1.Add( self.m_auinotebook1, 1, wx.EXPAND |wx.ALL, 5 )


        self.SetSizer( bSizer1 )
        self.Layout()

        self.Centre( wx.BOTH )

# non-generated (so you can easily run this example)
if __name__ == "__main__":
    app = wx.App()
    main_widget = MyFrame1()
    main_widget.Show()
    # Start the event loop.
    app.MainLoop()

The Does this in python and the wxFormBuilder preview.

To Reproduce:

  1. Position the window so there is a monitor to the left of it.
  2. Split the tabs in the notebook view so they are side by side
  3. start resizing the tab(s) and look on the monitor to your left. You should see lines appearing as you drag (while the mouse is held)

Platform and version information

  • wxWidgets version you use: 3.2.9 (according to the wxPython website)
  • wxWidgets port you use: wxPython
  • OS: Windows 11, Version: 10.0.26200 Build 26200 (according to system info)


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26661@github.com>

Abigail Austin

unread,
Jul 6, 2026, 7:49:47 PM (2 days ago) Jul 6
to wx-...@googlegroups.com, Subscribed
ArachnidAbby left a comment (wxWidgets/wxWidgets#26661)

https://github.com/user-attachments/assets/9d13e4b5-ea0d-45ca-9afc-583adb68c532

Here is a small video I took demonstrating it


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26661/4898660789@github.com>

VZ

unread,
Jul 6, 2026, 7:50:44 PM (2 days ago) Jul 6
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26661)

wxSashWindow is broken when using multiple monitors or high DPI and so needs to be avoided until it can be fixed. The AUI part is similar to #23982, please check if it's not exactly the same problem and if it is, let's close this one.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26661/4898665475@github.com>

Abigail Austin

unread,
Jul 6, 2026, 7:55:33 PM (2 days ago) Jul 6
to wx-...@googlegroups.com, Subscribed
ArachnidAbby left a comment (wxWidgets/wxWidgets#26661)

@vadz Are there any workarounds that do no involve making my own widgets? I would prefer to use the ones built-in instead of any of the pure-python widgets provided by wxPython we well, simply because I would expect that widgets written in c++ would be faster inherently.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26661/4898689178@github.com>

VZ

unread,
Jul 6, 2026, 7:57:47 PM (2 days ago) Jul 6
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26661)

I don't think there is any workaround/replacement/equivalent for wxSashWindow, although I also don't think speed is of any concern here.

wxAUI dragging needs to be fixed and hopefully will before 3.4.0.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26661/4898701254@github.com>

Abigail Austin

unread,
Jul 6, 2026, 8:00:32 PM (2 days ago) Jul 6
to wx-...@googlegroups.com, Subscribed

Closed #26661 as duplicate.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/26661/issue_event/27637146624@github.com>

Reply all
Reply to author
Forward
0 new messages