Found this one when testing on Windows this time and it is
reproducible in the demo with the following steps:
(unsplit on doubleclick is enabled in menu)
1) In the main notebook drag a tab and to the right and dock it to
split the notebook in two
2) Drag another tab from the left notebook into the new notebook on the right
3) Double click on the sash between the two notebooks
Traceback (most recent call last):
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 8750,
in OnLeftDClick
win.UnsplitDClick(part, sash_size, event.GetPosition())
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\auibook.py", line 4005, in
UnsplitDClick
page_info = src_tabs.GetPage(page)
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\auibook.py", line 1150, in
GetPage
raise Exception("Invalid Page index")
Exception: Invalid Page index
Let me know if this is fine or if trac items are easier for you to keep track of
Found this one when testing on Windows this time and it is
reproducible in the demo with the following steps:
(unsplit on doubleclick is enabled in menu)
1) In the main notebook drag a tab and to the right and dock it to
split the notebook in two
2) Drag another tab from the left notebook into the new notebook on the right
3) Double click on the sash between the two notebooks
Traceback (most recent call last):
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 8750,
in OnLeftDClick
win.UnsplitDClick(part, sash_size, event.GetPosition())
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\auibook.py", line 4005, in
UnsplitDClick
page_info = src_tabs.GetPage(page)
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\auibook.py", line 1150, in
GetPage
raise Exception("Invalid Page index")
Exception: Invalid Page index
Let me know if this is fine or if trac items are easier for you to keep track of
I managed to hack a bit the AUI code, and I ended up fixing few things:
- Fixed AuiNotebook unsplit exception you mentioned above;
- Removed style AUI_NB_SASH_DCLICK_UNSPLIT as it interferes with
common wx.Window styles: use SetSashDClickUnsplit and
GetSashDClickUnsplit methods to achieve the same result;
- Clicking on a AuiNotebook tab close button and dragging now does not
result in a drag operation.
The only issue remaining is to use different close button bitmaps when
the mouse is down, as you mentioned in some post earlier.
I'll be away for almost a couple of weeks starting on Saturday (I'm
moving to Greece), so if you find anything strange please do report
bugs on the Trac so that they don't get lost in a 2 weeks maze of
e-mails on my account.
I managed to hack a bit the AUI code, and I ended up fixing few things:
- Fixed AuiNotebook unsplit exception you mentioned above;
- Removed style AUI_NB_SASH_DCLICK_UNSPLIT as it interferes with
common wx.Window styles: use SetSashDClickUnsplit and
GetSashDClickUnsplit methods to achieve the same result;
- Clicking on a AuiNotebook tab close button and dragging now does not
result in a drag operation.
Thanks, your changes did fix these issues.
The only issue remaining is to use different close button bitmaps when
the mouse is down, as you mentioned in some post earlier.
I'll be away for almost a couple of weeks starting on Saturday (I'm
moving to Greece), so if you find anything strange please do report
bugs on the Trac so that they don't get lost in a 2 weeks maze of
e-mails on my account.
Will do
Thanks again,
Cody
···
On Thu, Feb 4, 2010 at 2:28 AM, Andrea Gavana <andrea.gavana@gmail.com> wrote: