PyAui few more errors

Hello (Andrea),

Did an update today and was playing around with the demo some more and found a few error conditions that can be reproduced.

  1. When trying the window switcher (Ctrl+Tab) there is a constant stream of these debug warnings to the console

10:24:17: Debug: wxColour::Set - couldn’t set to colour string '#0xec0xe90xd8’10:24:18: Debug: wxColour::Set - couldn’t set to colour string '#0xec0xe90xd8’10:24:18: Debug: wxColour::Set - couldn’t set to colour string ‘#0xec0xe90xd8
10:24:19: Debug: wxColour::Set - couldn’t set to colour string '#0xec0xe90xd8’10:24:20: Debug: wxColour::Set - couldn’t set to colour string '#0xec0xe90xd8’10:24:25: Debug: wxColour::Set - couldn’t set to colour string '#0xec0xe90xd8’10:24:25: Debug: wxColour::Set - couldn’t set to colour string '#0xec0xe90xd8’Traceback (most recent call last):

  1. The following steps will produce this traceback:

  2. Undock the Tree pane and drop it on to the “Text Pane with Prompt…” panel on the bottom to make a notebook

  3. Grab a tab from the notebook and drag it down to the new notebook at the bottom

  4. Undock the new notebook and redock it someplace else

  5. Observe the following traceback

File “C:\Documents and Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py”, line 2587, in OnActivate
self._owner_mgr.OnFloatingPaneActivated(self._pane_window)
File “C:\Documents and Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py”, line 7383, in OnFloatingPaneActivated
raise Exception(“Notebook tab not managed child”)
Exception: Notebook tab not managed childTraceback (most recent call last):
File “C:\Documents and Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py”, line 2587, in OnActivate
self._owner_mgr.OnFloatingPaneActivated(self._pane_window)
File “C:\Documents and Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py”, line 7383, in OnFloatingPaneActivated
raise Exception(“Notebook tab not managed child”)
Exception: Notebook tab not managed child

Thanks,

Cody

Hi Cody & All,

Hello (Andrea),

Did an update today and was playing around with the demo some more and found
a few error conditions that can be reproduced.

1) When trying the window switcher (Ctrl+Tab) there is a constant stream of
these debug warnings to the console

10:24:17: Debug: wxColour::Set - couldn't set to colour string
'#0xec0xe90xd8'10:24:18: Debug: wxColour::Set - couldn't set to colour
string '#0xec0xe90xd8'10:24:18: Debug: wxColour::Set - couldn't set to
colour string '#0xec0xe90xd8'
10:24:19: Debug: wxColour::Set - couldn't set to colour string
'#0xec0xe90xd8'10:24:20: Debug: wxColour::Set - couldn't set to colour
string '#0xec0xe90xd8'10:24:25: Debug: wxColour::Set - couldn't set to
colour string '#0xec0xe90xd8'10:24:25: Debug: wxColour::Set - couldn't set
to colour string '#0xec0xe90xd8'Traceback (most recent call last):

Yes, I am seeing it too... the SwitcherDialog is still quite new, so I
was expecting some bugs in it :smiley:

2) The following steps will produce this traceback:

1) Undock the Tree pane and drop it on to the "Text Pane with Prompt.."
panel on the bottom to make a notebook
2) Grab a tab from the notebook and drag it down to the new notebook at the
bottom
3) Undock the new notebook and redock it someplace else
4) Observe the following traceback

File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 2587, in
OnActivate
self._owner_mgr.OnFloatingPaneActivated(self._pane_window)
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 7383, in
OnFloatingPaneActivated
raise Exception("Notebook tab not managed child")
Exception: Notebook tab not managed childTraceback (most recent call last):
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 2587, in
OnActivate
self._owner_mgr.OnFloatingPaneActivated(self._pane_window)
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 7383, in
OnFloatingPaneActivated
raise Exception("Notebook tab not managed child")
Exception: Notebook tab not managed child

Yes, I am seeing that too... I am not sure the exception is correct in
this case, but I'll see what I can do to fix it.

Thank you for the bug report! Keep them coming! Also, features
suggestions are more than welcome :wink:

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Tue, Apr 14, 2009 at 4:35 PM, Cody Precord wrote:

Hi Cody & All,

···

On Tue, Apr 14, 2009 at 10:21 PM, Andrea Gavana wrote:

Hi Cody & All,

On Tue, Apr 14, 2009 at 4:35 PM, Cody Precord wrote:

Hello (Andrea),

Did an update today and was playing around with the demo some more and found
a few error conditions that can be reproduced.

1) When trying the window switcher (Ctrl+Tab) there is a constant stream of
these debug warnings to the console

10:24:17: Debug: wxColour::Set - couldn't set to colour string
'#0xec0xe90xd8'10:24:18: Debug: wxColour::Set - couldn't set to colour
string '#0xec0xe90xd8'10:24:18: Debug: wxColour::Set - couldn't set to
colour string '#0xec0xe90xd8'
10:24:19: Debug: wxColour::Set - couldn't set to colour string
'#0xec0xe90xd8'10:24:20: Debug: wxColour::Set - couldn't set to colour
string '#0xec0xe90xd8'10:24:25: Debug: wxColour::Set - couldn't set to
colour string '#0xec0xe90xd8'10:24:25: Debug: wxColour::Set - couldn't set
to colour string '#0xec0xe90xd8'Traceback (most recent call last):

Yes, I am seeing it too... the SwitcherDialog is still quite new, so I
was expecting some bugs in it :smiley:

2) The following steps will produce this traceback:

1) Undock the Tree pane and drop it on to the "Text Pane with Prompt.."
panel on the bottom to make a notebook
2) Grab a tab from the notebook and drag it down to the new notebook at the
bottom
3) Undock the new notebook and redock it someplace else
4) Observe the following traceback

File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 2587, in
OnActivate
self._owner_mgr.OnFloatingPaneActivated(self._pane_window)
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 7383, in
OnFloatingPaneActivated
raise Exception("Notebook tab not managed child")
Exception: Notebook tab not managed childTraceback (most recent call last):
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 2587, in
OnActivate
self._owner_mgr.OnFloatingPaneActivated(self._pane_window)
File "C:\Documents and
Settings\cjprecord\Desktop\pyaui\agw\aui\framemanager.py", line 7383, in
OnFloatingPaneActivated
raise Exception("Notebook tab not managed child")
Exception: Notebook tab not managed child

Yes, I am seeing that too... I am not sure the exception is correct in
this case, but I'll see what I can do to fix it.

Both issues should be fixed now in SVN. Please let me know if it
works, or if you discover anything else strange, or if you have a
feature request. Thank you!

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

Hello,

Both issues should be fixed now in SVN. Please let me know if it

works, or if you discover anything else strange, or if you have a

feature request. Thank you!

Confirmed as fixed.

Still mainly focusing on bugs but here are a few improvement ideas.

  1. Use drag images for tabs. When dragging a tab somewhere it would be nice if a drag image was shown of the tab as to give better feedback on what is being dragged.

  2. Double click on a notebook splitter sash to rejoin the notebook. If for example you split a notebook in two, it would be nice to be able to double click on the sash to cause the notebook to rejoin.

I like the window switcher dialog, but I also kind of like some things about the one I have in Editra as its a little simpler and less cumbersome. The one feature in my version that might be nice to add as an option to the pyaui one is the highlighting of panes as they are enumerated through in the dialog. You can see this by running Editra (enable and open some plugin subpanes), then on Windows by default Alt+1 will work like Alt+Tab for enumerating the panes.

Thanks,

Cody

Hi Cody & All,

Hello,

Both issues should be fixed now in SVN. Please let me know if it
works, or if you discover anything else strange, or if you have a
feature request. Thank you!

Confirmed as fixed.

Still mainly focusing on bugs but here are a few improvement ideas.

1) Use drag images for tabs. When dragging a tab somewhere it would be nice
if a drag image was shown of the tab as to give better feedback on what is
being dragged.

2) Double click on a notebook splitter sash to rejoin the notebook. If for
example you split a notebook in two, it would be nice to be able to double
click on the sash to cause the notebook to rejoin.

I like the window switcher dialog, but I also kind of like some things about
the one I have in Editra as its a little simpler and less cumbersome. The
one feature in my version that might be nice to add as an option to the
pyaui one is the highlighting of panes as they are enumerated through in the
dialog. You can see this by running Editra (enable and open some plugin
subpanes), then on Windows by default Alt+1 will work like Alt+Tab for
enumerating the panes.

Thank you for the very interesting feature requests, I have
implemented them in SVN as follows:

1) Use drag images for tabs: a new style (on by default) called
AUI_NB_DRAW_DND_TAB draws an image representation of the tab while
dragging. Depending on the value of AUI_NB_TAB_FLOAT (which allows a
tab to be floated as a pane), the image is displayed in the
AuiNotebook only (no AUI_NB_TAB_FLOAT style) or in the whole screen
(with AUI_NB_TAB_FLOAT style).

2) Double click on a notebook splitter sash to rejoin the notebook: a
new style (not on by default) called AUI_NB_SASH_DCLICK_UNSPLIT allows
to rejoin a splitted notebook when double-clicking on a sash. This
should work on all platforms (but I am not sure) with the following
exceptions:

a) On wxMSW, until the bug related to wx.FindWindowAtPoint
(wxTrac has been migrated to GitHub Issues - wxWidgets) is fixed, if one of the active
pages is actually disabled, double-clicking on a sash will not rejoin
the notebook. The other platforms should be unaffected;
b) If one of the pages in the splitted notebook has a size less than
2*SASH_SIZE (12 pixels or so), the rejoin may not work.

3) I have implemented the highlighting of panes in the Switcher dialog.

Please let me know if the modifications work on your platform or if
there is something you wish to see implemented differently.

Thanks for the testing, keep bug reports and feature requests coming!

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/

···

On Wed, Apr 15, 2009 at 3:32 PM, Cody Precord wrote:

Hello,

  1. Use drag images for tabs: a new style (on by default) called

AUI_NB_DRAW_DND_TAB draws an image representation of the tab while

dragging. Depending on the value of AUI_NB_TAB_FLOAT (which allows a

tab to be floated as a pane), the image is displayed in the

AuiNotebook only (no AUI_NB_TAB_FLOAT style) or in the whole screen

(with AUI_NB_TAB_FLOAT style).

Nice this works quite well and I think it adds a lot to the usability of the dnd. Noticed a few small glitches in it, if you drag the tab over/around the tab area so that the docking hint is briefly shown it will sometimes cause the background to not get erased and there will be parts for the drag image left on the tab area.

  1. Double click on a notebook splitter sash to rejoin the notebook: a

new style (not on by default) called AUI_NB_SASH_DCLICK_UNSPLIT allows

to rejoin a splitted notebook when double-clicking on a sash. This

should work on all platforms (but I am not sure) with the following

exceptions:

Works well, thanks.

  1. I have implemented the highlighting of panes in the Switcher dialog.

This works pretty well too. The flashing caused when toggling the transparency of the dialog when going through the notebook pages is a bit distracting. It might be better to leave the dialog slightly more opaque so that the label text can still clearly be read.

Please let me know if the modifications work on your platform or if

there is something you wish to see implemented differently.

At my windows machine right now, will check on others at home this weekend if I get time.

Thanks,

Cody

···

On Fri, Apr 17, 2009 at 10:02 AM, Andrea Gavana andrea.gavana@gmail.com wrote: